[Tsung] Send to Service

Jason Tucker jasonwtucker at gmail.com
Mon Feb 26 22:20:00 CET 2007


I think the variable names may be a bit misleading here... in this
section, "Service" is the variable that's holding the domain name.
"Username" is the username prefix, "Dest" is the index number for the
destination user, and "Service" is the domain.

For example, if your test is configured with the username prefix of
"testuser" and the domain "foo.com", then

Username, Dest, "@", Service  =  testuser123 at foo.com

__Jason

On 2/26/07, Jon Steer <jon.steer at gmail.com> wrote:
> In the TSung sources there is a command to send to another service
>
>  message(Dest, #jabber{data=Data, username=Username}, Service) when
> is_list(Data) ->
>      put(previous, Dest),
>      list_to_binary([
>                      "<message
> id='",ts_msg_server:get_id(list), "' to='",
>                      Username, Dest, "@", Service,
>                      "'><body>",Data, "</body></message>"]).
>
> As I don't grok Erlang, I can't seem to translate this into a valid stanza
> that Tsung will parse..
>  What should it be?
>
>   thanks,
>   jon
>
> --
>
> "Whereever you go, there you are"
> _______________________________________________
> Tsung-users mailing list
> Tsung-users at lists.process-one.net
> https://lists.process-one.net/mailman/listinfo/tsung-users
>
>


More information about the Tsung-users mailing list