<div dir="ltr">Hi <span style="font-family:arial,sans-serif;font-size:13px;font-weight:bold;white-space:nowrap">Zhihui,</span><div><br></div><div>Thanks for the reply..!!!!</div><div><br></div><div>I tried with existing source code in ts_bosh.erl (i.e. which comes with the TSung 1.5 source base): </div>

<pre style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:18px"><div class="" id="LC76" style="padding-left:10px"><span class="" style="color:rgb(153,0,0);font-weight:bold">connect</span><span class="">(</span><span class="" style="color:rgb(0,128,128)">Host</span><span class="">,</span> <span class="" style="color:rgb(0,128,128)">Port</span><span class="">,</span> <span class="" style="color:rgb(0,128,128)">Opts</span><span class="">,</span> <span class="" style="color:rgb(0,128,128)">Type</span><span class="">)</span> <span class="" style="font-weight:bold">when</span> <span class="" style="color:rgb(0,128,128)">Type</span> <span class="" style="font-weight:bold">=:=</span> <span class="">'tcp'</span> <span class="">;</span> <span class="" style="color:rgb(0,128,128)">Type</span> <span class="" style="font-weight:bold">=:=</span> <span class="">'ssl'</span> <span class="" style="font-weight:bold">-></span></div>

<div class="" id="LC77" style="padding-left:10px">    <span class="" style="color:rgb(0,128,128)">Parent</span> <span class="" style="font-weight:bold">=</span> <span class="">self</span><span class="">(),</span></div><div class="" id="LC78" style="padding-left:10px">

    <span class="" style="color:rgb(0,128,128)">Path</span> <span class="" style="font-weight:bold">=</span> <span class="" style="color:rgb(221,17,68)">"httpbind/http-bind/"</span><span class="">,</span></div>
<div class="" id="LC79" style="padding-left:10px">
    <span class="" style="color:rgb(0,128,128)">Pid</span> <span class="" style="font-weight:bold">=</span> <span class="" style="color:rgb(0,134,179)">spawn</span><span class="">(</span><span class="" style="font-weight:bold">fun</span><span class="">()</span> <span class="" style="font-weight:bold">-></span> <span class="">loop</span><span class="">(</span><span class="" style="color:rgb(0,128,128)">Host</span><span class="">,</span> <span class="" style="color:rgb(0,128,128)">Port</span><span class="">,</span> <span class="" style="color:rgb(0,128,128)">Path</span><span class="">,</span> <span class="" style="color:rgb(0,128,128)">Opts</span><span class="">,</span> <span class="" style="color:rgb(0,128,128)">Type</span><span class="">,</span> <span class="" style="color:rgb(0,128,128)">Parent</span><span class="">)</span> <span class="" style="font-weight:bold">end</span><span class="">),</span></div>

<div class="" id="LC80" style="padding-left:10px">    <span class="" style="font-weight:bold">?</span><span class="" style="color:rgb(0,128,128)">DebugF</span><span class="">(</span><span class="" style="color:rgb(221,17,68)">"connect </span><span class="" style="color:rgb(221,17,68)">~p</span><span class="" style="color:rgb(221,17,68)"> </span><span class="" style="color:rgb(221,17,68)">~p</span><span class="" style="color:rgb(221,17,68)"> </span><span class="" style="color:rgb(221,17,68)">~p</span><span class="" style="color:rgb(221,17,68)"> </span><span class="" style="color:rgb(221,17,68)">~p</span><span class="" style="color:rgb(221,17,68)">"</span><span class="">,[</span><span class="" style="color:rgb(0,128,128)">Host</span><span class="">,</span> <span class="" style="color:rgb(0,128,128)">Port</span><span class="">,</span> <span class="">self</span><span class="">(),</span> <span class="" style="color:rgb(0,128,128)">Pid</span><span class="">]),</span></div>

<div class="" id="LC81" style="padding-left:10px">    <span class="">{</span><span class="">ok</span><span class="">,</span> <span class="" style="color:rgb(0,128,128)">Pid</span></div></pre><div><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px">}.</span></div>

<div><br></div><div>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.</div>

<div><br></div><div>Appreciate your reply soon :)</div><div><br></div><div><b>Thanks & Regards,</b></div><div><b>Pawan</b></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 11, 2013 at 12:11 PM, Zhihui Jiao <span dir="ltr"><<a href="mailto:jzhihui521@gmail.com" target="_blank">jzhihui521@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div>在 2013年11月11日,下午2:40,Zhihui Jiao <<a href="mailto:jzhihui521@gmail.com" target="_blank">jzhihui521@gmail.com</a>> 写道:</div>

<div><div class="h5"><br><blockquote type="cite"><div style="word-wrap:break-word"><br><div><div>在 2013年11月11日,下午1:59,pawan singh <<a href="mailto:pkumar.te@gmail.com" target="_blank">pkumar.te@gmail.com</a>> 写道:</div>

<br><blockquote type="cite"><div dir="ltr">Hi TSung Users,<div><br></div><div>I need more information on XMPP Over BOSH using TSung 1.5.</div><div>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.</div>



<div><a href="https://www.process-one.net/en/forum/viewthread/799/" target="_blank">https://www.process-one.net/en/forum/viewthread/799/</a><br><div><br></div></div></div></blockquote></div><div><br></div>I don’t think you can change the when condition to “bosh” and “bosh_ssh”, the error stack just tell you<div>

the exact reason. The types “tcp” and “ssh” are used to create the socket: “bosh" will create the raw socket,</div><div>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.<br>

<div><div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">

<div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">

<br></div><div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">

Zhihui</div></div>
</div>
<br></div></div></blockquote></div></div></div><br><div>
<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">

<div style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:-webkit-auto;font-variant:normal;text-transform:none;font-style:normal;white-space:normal;font-family:Helvetica;font-weight:normal;word-spacing:0px">

sorry for typo: bosh_ssl, ts_bosh_ssl.erl<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:-webkit-auto;font-variant:normal;text-transform:none;font-style:normal;white-space:normal;font-family:Helvetica;font-weight:normal;word-spacing:0px">

Zhihui</div></font></span></div>
</div>
<br></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Yours,</div>PawanKumar Singh
</div>