[Tsung] Jabber testing - Trying to retrieve Vcards

Nicolas Niclausse nicolas at niclux.org
Wed Dec 20 14:05:02 CET 2006


Megan Chinburg wrote:
> 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>"]).


it's </iq>, not </id> ! :)

--
Nicolas



More information about the Tsung-users mailing list