<div dir="ltr">Hi,<div style>Is it possible that this could be a problem in the script. But when I call using a normal SIP Client like X-Lite, it works well. This only happens when the request comes on websocket. Is there something to be handled specially when handling requests like ACK over websocket?</div>
<div style>The reference is more or less taken from <a href="https://gist.github.com/jesusprubio/4066845">https://gist.github.com/jesusprubio/4066845</a></div><div style><br></div><div style>--- Jayesh</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Jun 19, 2013 at 2:14 PM, Jayesh Nambiar <span dir="ltr"><<a href="mailto:jayesh1017@gmail.com" target="_blank">jayesh1017@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 dir="ltr">Hi Daniel,<div>I checked using the kamcmd command and I see the webrtc connection active. The ACK comes from the webrtc client but somehow kamailio is unable to create a via header and forward the request. The ACK coming from webrtc client is as follows:</div>

<div><br></div><div><div>SEND: ACK sip:1223@126.128.68.8:5065;transport=udp SIP/2.0</div><div>Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKJ0Qsiuh94B2slPLp19qH;rport</div><div>From: "Jayesh"<<a href="mailto:sip%3A1000001001@ghanti.com" target="_blank">sip:1000001001@ghanti.com</a>>;tag=vsTKsfB1ZR8EkHTPqzyc</div>

<div>To: <<a href="mailto:sip%3A1223@ghanti.com" target="_blank">sip:1223@ghanti.com</a>>;tag=UQ9veX0vUg7QS</div><div>Contact: "Jayesh"<sip:1000001001@df7jal23ls0d.invalid;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;+sip.ice;language="en,fr"</div>

<div>Call-ID: 2c76d5ee-e9d0-7f22-8be2-76e80b4ab48b</div><div>CSeq: 42684 ACK</div><div>Content-Length: 0</div><div>Route: <sip:126.128.68.9:5060;lr;sipml5-outbound;transport=udp></div><div>Max-Forwards: 70</div><div>

Proxy-Authorization: Digest username="1000001001",realm="<a href="http://ghanti.com" target="_blank">ghanti.com</a>",nonce="UcFsQ1HBaxc84k4N1J00fpVDj9G57x5p",uri="sip:1223@126.128.68.8:5065;transport=udp",response="5b18a2182c335315875224f2244fb48b",algorithm=MD5</div>

<div>Route: <sip:126.128.68.9:8080;transport=ws;r2=on;lr=on;ftag=vsTKsfB1ZR8EkHTPqzyc;nat=yes></div><div>Route: <sip:126.128.68.9;r2=on;lr=on;ftag=vsTKsfB1ZR8EkHTPqzyc;nat=yes></div><div>User-Agent: IM-client/OMA1.0 sipML5-v1.2013.03.27</div>

<div>Organization: Doubango Telecom</div><div><br></div><div>Where <a href="http://126.128.68.9:5060" target="_blank">126.128.68.9:5060</a> is the Kamailio; <a href="http://126.128.68.8:5065" target="_blank">126.128.68.8:5065</a> is a freeswitch playing music and the request is received on <a href="http://126.128.68.9:8080" target="_blank">126.128.68.9:8080</a> which is kamailio acting as a websocket server.</div>

<div>Also the connection between Kamailio and Freeswitch is UDP. I am not able to use the websocket module just because of this small problem caused in signaling. Any help is really appreciated. Could it be related to the nathelper module?</div>

<div><br></div><div>Thanks,</div><div><br></div><div>--- Jayesh</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Tue, Jun 18, 2013 at 2:17 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Hello,<div><div><br>
    <br>
    <div>On 6/14/13 4:52 PM, Jayesh Nambiar
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>Hello All,</div>
        <div>I have a setup which is SIPML5 ->
          Kamailio(Websocket) -> Freeswitch. All I am trying to do is
          initiate a call from SIPML5 and Play a Music file from
          freeswitch. This works, but the call hangs up after 30 seconds
          due to ACK timeout from from the SIPML5.</div>
        <div><br>
        </div>
        <div>What I can see is the SIPML5 from Chrome does send
          an ACK on websocket, but I see the following error in kamailio
          syslog:</div>
        <div><br>
        </div>
        <div><b>via_builder(): TCP/TLS connection (id: 0) for WebSocket
            could not be found</b></div>
        <div><b>ERROR: <core> [msg_translator.c:1725]:
            build_req_buf_from_sip_req(): could not create Via header</b></div>
        <div><b>ERROR: <core> [forward.c:607]: forward_request():
            ERROR: forward_request: building failed</b></div>
        <div><b>ERROR: sl [sl_funcs.c:371]: sl_reply_error(): ERROR:
            sl_reply_error used: I'm terribly sorry, server error
            occurred (1/SL)</b></div>
        <div><br>
        </div>
        <div>Can someone help me understand what I am missing here and
          why kamailio is not able to create a VIA header to forward
          this request towards freeswitch. I have built a simple config
          file by following <a href="https://gist.github.com/jesusprubio/4066845" target="_blank">https://gist.github.com/jesusprubio/4066845</a>
          as reference.<br>
        </div>
        <div><br>
        </div>
        <div>Any help in understanding this is really appreciated.</div>
      </div>
    </blockquote></div></div>
    looks like the web rtc connection was down (closed by one side or
    interrupted by the network). You can check with kamcmd the list of
    active connections.<br>
    <br>
    Cheers,<br>
    Daniel<span><font color="#888888"><br>
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
  * <a href="http://asipto.com/u/katu" target="_blank">http://asipto.com/u/katu</a> *</pre>
  </font></span></div>

<br></div></div>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>