[Tsung] Jabber testing - Trying to retrieve Vcards

Megan Chinburg megan.chinburg at jivesoftware.com
Tue Dec 19 20:24:48 CET 2006


So I have gone back over the documentation, read through some of the Erlang
Manual, and I am still not having any luck retrieving a users own vcard.  If
anyone has any suggestions, please let me know.

I have extended the ts_jabber_common.erl module to include the following
function:

vcard_get(#jabber{username=Name, domain=Domain})->
        list_to_binary([
        "<iq 
        from='", Name, "@" , Domain,"'
        type='get' 
        id='", ts_msg_server:get_id(list),"'>",
        "<vCard xmlns='vcard-temp'></vcard></id>"]).

I can see in my log/tsung.dump file the following information:

Send:{1166,396117,175664}:<5386.52.0>:<iq from='user1 at servername¹ type='get'
id='10'><vCard xmlns='vcard-temp'></vcard></id>
Recv:{1166,396117,182033}:<5386.52.0>:</stream:stream> <-----I don¹t know if
this is the response from server or not

However, I am not seeing what I expect to see in the server log.  I¹m
looking for the following, but I don¹t see it:

RCV: <iq id="10" from="user1@ servername" type="get"><vCard
xmlns="vcard-temp"/></iq>
SENT: <iq type="result" id="10" to="user1@ servername"><vCard
xmlns="vcard-temp"/></iq>
    
In fact, I don¹t see anything in the server log that indicates that request
was ever received, but according to Tsung it is indeed being sent.

Ideas?

Thanks
--Megan


On 12/15/06 12:15 AM, "Mickaël Rémond" <mickael.remond at process-one.net>
wrote:

> Hello,
> 
> Le 15 déc. 06 à 00:22, Megan Chinburg a écrit :
> 
>> However, I have not been able to get the dynamic sub to work, perhaps I¹m
>> missing something?
>>  
>>      <request subst="true"><jabber type="raw" ack="no_ack"
>>          data="&lt;iq
>>          to='ts_user_server:get_unique_id at servername'
>>          type='get'
>>          id='v3'&gt;
>>        &lt;vCard xmlns='vcard-temp'/&gt;
>>      &lt;/iq&gt;"></jabber></request>
> 
> Did you use percent signs ?
> 
> From the documentation:
> 
> http://www.process-one.net/en/projects/tsung/docs/user_manual.html#htoc38
> 
> Those mark-up are of the form %%Module:Function%%. Substitutions are executed
> on a request-by-request basis, only if the request tag has the attribute
> subst="true".
> 
> <session name="rec20040316-08:47" probability="100" type="ts_http">
>  <request subst="true">
>   <http url="/echo?id=%%ts_user_server:get_unique_id%%" method="GET">
>   </http></request>
> </session>
> 
>  
> -- 
> Mickaël Rémond
>  http://www.process-one.net/
> 
>  
> 
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.process-one.net/pipermail/tsung-users/attachments/20061219/36c8d0e4/attachment.html


More information about the Tsung-users mailing list