<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>I wanted to report an error/typo in the confluence wiki related to 'originate', and its use together with the socket application.  <br></div><div><br></div><div>Apologies, I don't have access to the wiki, but thought this was worth passing on, so here it is:</div><div><ul><li><span class="gmail-gI"><span><a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_commands-originate">https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_commands-originate</a></span></span></li></ul><div><div>The wiki example for ring_ready also includes the socket application and is written as:</div><div><ul><li><pre>originate {return_ring_ready=true}sofia/gateway/someprovider/919246461929 &socket(<a href="http://127.0.0.1:8082">127.0.0.1:8082</a> async full)</pre></li></ul><div>however this hangs forever if used as written. Eventually, after several hours of hair tearing and googling, I stumbled on this thread:</div><div><ul><li><a href="https://freeswitch.org/jira/si/jira.issueviews:issue-html/FS-3591/FS-3591.html">https://freeswitch.org/jira/si/jira.issueviews:issue-html/FS-3591/FS-3591.html</a></li></ul><div>Indeed this is the problem.  The correct syntax for the socket component is:<br></div><div><ul><li><pre>&socket('<a href="http://127.0.0.1:8082">127.0.0.1:8082</a> async full')</pre></li><ul><li>Specifically single quotes around the command so that it is treated as a single string.</li></ul></ul><div>After making this change there is no more hanging on the outbound calls and all events come through in a timely fashion.</div><div><br></div><div>Cheers,</div><div>Joe<br></div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div></div></div></div></div>