<div dir="ltr">Hi, <div> I solved this. The issue was on the client side. I needed to confirm acceptance of the message on the client side and respond to FreeSWITCH:<div><br></div><div><a href="http://www.sipml5.org/docgen/index.html#acceptMessageFunc">http://www.sipml5.org/docgen/index.html#acceptMessageFunc</a><br></div><div><br></div><div> After doing that FreeSWITCH no longer hangs, and confirms that the messages was sent successfully in the log.</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 9, 2015 at 11:52 AM, Question Answer <span dir="ltr"><<a href="mailto:questions.looking.for.answers@gmail.com" target="_blank">questions.looking.for.answers@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,<div> I have successfully configured a SIPml5 client in Chrome to communicate with a local FreeSWITCH server.</div><div> It is possible to successfully make calls, and use most applications in the freeswitch dial plan.</div><div> </div><div> Problem: I cannot figure out how to successfully send a custom SIP message from FreeSWITCH [via either the CLI or the dialplan] to the web client.</div><div> The client actually *receives* the message, but FreeSWITCH then hangs for about 10s, times out and reports: 'Error! Message Not Sent Sent'.</div><div><br></div><div> I run the following command from the CLI:</div><div><br></div><div><font face="monospace, monospace">freeswitch> chat sip|<a href="mailto:1001@192.168.59.103" target="_blank">1001@192.168.59.103</a>|<a href="mailto:1000@172.17.0.19" target="_blank">1000@172.17.0.19</a>|test test test</font></div><div><div><font face="monospace, monospace">send 764 bytes to ws/[192.168.59.3]:51933 at 09:48:10.190253:</font></div><div><font face="monospace, monospace"> ------------------------------------------------------------------------</font></div><div><font face="monospace, monospace"> MESSAGE <a href="http://sip:1000@192.168.59.3:51933" target="_blank">sip:1000@192.168.59.3:51933</a> SIP/2.0</font></div><div><font face="monospace, monospace"> Via: SIP/2.0/WS 172.17.0.19:5066;branch=z9hG4bKFpeyg98ZZ240r</font></div><div><font face="monospace, monospace"> Route: <<a href="http://sip:1000@192.168.59.3:51933" target="_blank">sip:1000@192.168.59.3:51933</a>>;rtcweb-breaker=yes;transport=ws</font></div><div><font face="monospace, monospace"> Max-Forwards: 70</font></div><div><font face="monospace, monospace"> From: "1001" <<a href="mailto:sip%3A1001@192.168.59.103" target="_blank">sip:1001@192.168.59.103</a>>;tag=U9prcNXypBBUr</font></div><div><font face="monospace, monospace"> To: <<a href="http://sip:1000@192.168.59.3:51933" target="_blank">sip:1000@192.168.59.3:51933</a>>;rtcweb-breaker=yes;transport=ws</font></div><div><font face="monospace, monospace"> Call-ID: 5b3c7d7c-8149-422c-9f0f-f1b3dd3661f2</font></div><div><font face="monospace, monospace"> CSeq: 70061165 MESSAGE</font></div><div><font face="monospace, monospace"> Contact: <sip:172.17.0.19></font></div><div><font face="monospace, monospace"> User-Agent: FreeSWITCH-mod_sofia/1.5.15b+git~20150106T091916Z~f48ec61d54~64bit</font></div><div><font face="monospace, monospace"> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE</font></div><div><font face="monospace, monospace"> Supported: timer, path, replaces</font></div><div><font face="monospace, monospace"> Content-Type: text/html</font></div><div><font face="monospace, monospace"> Content-Length: 14</font></div><div><font face="monospace, monospace"> X-FS-Sending-Message: 4a972b6a-3c72-4ba1-b7a4-de2d07760380</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> test test test</font></div><div><font face="monospace, monospace"> ------------------------------------------------------------------------</font></div></div><div><font face="monospace, monospace">[~10 seconds pass...]</font></div><div><font face="monospace, monospace">Error! Message Not Sent<br></font></div><div><font face="monospace, monospace">...</font></div><div><font face="monospace, monospace">freeswitch></font></div><div><br></div><div><font face="monospace, monospace">--------------------------------------------------------------------------------</font></div><div><font face="monospace, monospace">But on the client side, in the Chrome developer console, I can see the following log messages:</font></div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">SIPml-api.js?svn=222:1 __tsip_transport_ws_onmessage</font></div><div><font face="monospace, monospace">2015-01-09 11:37:09.647SIPml-api.js?svn=222:1 recv=MESSAGE <a href="http://sip:1000@192.168.59.3:52190" target="_blank">sip:1000@192.168.59.3:52190</a> SIP/2.0</font></div><div><font face="monospace, monospace">Via: SIP/2.0/WS 172.17.0.19:5066;branch=z9hG4bKKtK1QNcem6XBQ</font></div><div><font face="monospace, monospace">From: "1001"<<a href="mailto:sip%3A1001@192.168.59.103" target="_blank">sip:1001@192.168.59.103</a>>;tag=29gZHme856Fmc</font></div><div><font face="monospace, monospace">To: <<a href="http://sip:1000@192.168.59.3:52190" target="_blank">sip:1000@192.168.59.3:52190</a>>;rtcweb-breaker=yes;transport=ws</font></div><div><font face="monospace, monospace">Contact: <sip:172.17.0.19></font></div><div><font face="monospace, monospace">Call-ID: 210f6e1f-0415-450b-bbb3-7725a6a37434</font></div><div><font face="monospace, monospace">CSeq: 70061168 MESSAGE</font></div><div><font face="monospace, monospace">Content-Type: text/html</font></div><div><font face="monospace, monospace">Content-Length: 14</font></div><div><font face="monospace, monospace">Route: <<a href="http://sip:1000@192.168.59.3:52190" target="_blank">sip:1000@192.168.59.3:52190</a>></font></div><div><font face="monospace, monospace">Max-Forwards: 70</font></div><div><font face="monospace, monospace">User-Agent: FreeSWITCH-mod_sofia/1.5.15b+git~20150106T091916Z~f48ec61d54~64bit</font></div><div><font face="monospace, monospace">Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REGISTER,REFER,NOTIFY,PUBLISH,SUBSCRIBE</font></div><div><font face="monospace, monospace">Supported: timer,path,replaces</font></div><div><font face="monospace, monospace">X-FS-Sending-Message: 4a972b6a-3c72-4ba1-b7a4-de2d07760380</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">test test test</font></div><div><font face="monospace, monospace">2015-01-09 11:37:09.647SIPml-api.js?svn=222:1 State machine: tsip_dialog_generic_Started_2_Incoming_X_iMessage</font></div><div><font face="monospace, monospace">2015-01-09 11:37:09.649SIPml-api.js?svn=222:1 ==stack event = i_new_message XXX test test test</font></div><div><font face="monospace, monospace">2015-01-09 11:37:09.649call.htm:964 test test test</font></div></div><div><font face="monospace, monospace">----------------------------------------------------------------------------------</font></div><div><br></div><div>That is, the message is correctly received by the client, but FreeSWITCH doesn't seem to 'realise' this.</div><div>Perhaps I need to be sending some kind explicit confirmation back from the simpml5 client application?</div><div><br></div><div>Or perhaps there is some kind of mismatch with the SIP profile? I have set the freeswitch log level to Debug, but the above is the only message I see, which is not particularly helpful.</div><div><br></div><div>Any insights would be appreciated!</div></div>
</blockquote></div><br></div>