[Tsung] Need Info: XMPP Over BOSH

pawan singh pkumar.te at gmail.com
Mon Nov 11 08:03:19 CET 2013

Hi Zhihui,

Thanks for the reply..!!!!

I tried with existing source code in ts_bosh.erl (i.e. which comes with the
TSung 1.5 source base):

connect(Host, Port, Opts, Type) when Type =:= 'tcp' ; Type =:= 'ssl' ->
    Parent = self(),

    Path = "httpbind/http-bind/",

    Pid = spawn(fun() -> loop(Host, Port, Path, Opts, Type, Parent) end),
    ?DebugF("connect ~p ~p ~p ~p",[Host, Port, self(), Pid]),
    {ok, Pid


Only change was with Path where I replaced Path value from "http-bind" to
"/httpbind/http-bind" to match with our XMPP Server. With this change also,
I get the error "no_bosh_connection". Not sure if there are any other
changes are recommended. If yes, please let me know ASAP.

Appreciate your reply soon :)

*Thanks & Regards,*

On Mon, Nov 11, 2013 at 12:11 PM, Zhihui Jiao <jzhihui521 at gmail.com> wrote:

> 在 2013年11月11日,下午2:40,Zhihui Jiao <jzhihui521 at gmail.com> 写道:
> 在 2013年11月11日,下午1:59,pawan singh <pkumar.te at gmail.com> 写道:
> Hi TSung Users,
> I need more information on XMPP Over BOSH using TSung 1.5.
> I posted the issue description on TSung forum however I didn't see any
> response from anyone. Kindly go through the issue description and respond
> me back with some resolution.
> https://www.process-one.net/en/forum/viewthread/799/
> I don’t think you can change the when condition to “bosh” and “bosh_ssh”,
> the error stack just tell you
> the exact reason. The types “tcp” and “ssh” are used to create the socket:
> “bosh" will create the raw socket,
> and the “bosh_ssh” will create socket will ssl, you can check the function
> “connect" in both ts_bosh.erl and ts_bosh_ssh.erl.
> Zhihui
>  sorry for typo: bosh_ssl, ts_bosh_ssl.erl
> Zhihui

PawanKumar Singh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.process-one.net/pipermail/tsung-users/attachments/20131111/ad319753/attachment-0001.html>

More information about the Tsung-users mailing list