[Tsung] tsung.xml type values
Nicolas Niclausse
nicolas at niclux.org
Mon Aug 28 11:24:00 CEST 2006
Ling Forum ecrivait le 24.08.2006 07:39:
Hello,
> Do Tsung supports the extended tags (ie., user defined tags) in the
> message ?
> I mean, in the following line in tsung.xml,
> <request> <jabber type="chat" ack="no_ack" size="16"
> destination="online"></jabber> </request>
>
> 1) I want to change the "type" value to user defined one. Is it supported ?
No. (In fact yes, but you need to edit the source code ts_jabber_common.erl)
> 2) Or only standard jabber messages supported ? Is it possible to list
> all possible types that tsung supporting?
You have to read the code, sorry (ts_jabber_common.erl)
> basically i want to know all the "iq" related things...
#grep iq: ts_jabber_common.erl| grep get_message
trunk/src/tsung
get_message(#jabber{type = 'presence:subscribe'}) -> %% must be called
AFTER iq:roster:add
get_message(#jabber{type = 'iq:roster:add', id=Id, dest =
online,username=User,domain=Domain}) ->
get_message(#jabber{type = 'iq:roster:add',dest =
offline,username=User,domain=Domain})->
get_message(#jabber{type = 'iq:roster:rename'})-> %% must be called AFTER
iq:roster:add
get_message(#jabber{type = 'iq:roster:remove'})-> %% must be called AFTER
iq:roster:add
get_message(#jabber{type = 'iq:roster:get', id =
Id,username=User,domain=Domain}) ->
--
Nicolas
More information about the Tsung-users
mailing list