Hi Chad,<div><br></div><div>I used node version 0.9.3-pre. This is config.json:</div><div><div>{</div><div>    &quot;fsw&quot;: {</div><div>        &quot;host&quot;: &quot;192.168.0.24&quot;,</div><div>        &quot;port&quot;: 8021,</div>
<div>        &quot;password&quot;: &quot;ClueCon&quot;</div><div>    },</div><div>    &quot;server&quot;: {</div><div>        &quot;host&quot;: &quot;192.168.0.24&quot;,</div><div>        &quot;port&quot;: 8181,</div><div>
        &quot;provider&quot;: &quot;<a href="http://sms-proxy.yourprovider.com">sms-proxy.yourprovider.com</a>&quot;,</div><div>        &quot;from&quot;: &quot;from_number@from_host&quot;,</div><div>        &quot;profile&quot;: &quot;external&quot;</div>
<div>    }</div><div>}</div><div><br></div><div>and chatplan:</div><div><div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</div><div>&lt;include&gt;</div><div>  &lt;context name=&quot;default&quot;&gt;</div>
<div><br></div><div>    &lt;extension name=&quot;demo&quot;&gt;</div><div>      &lt;condition field=&quot;to&quot; expression=&quot;^(.*)$&quot;&gt;</div><div>      </div><div>        &lt;action application=&quot;fire&quot; data=&quot;&quot;/&gt;</div>
<div>       </div><div>      &lt;/condition&gt;</div><div>    &lt;/extension&gt;</div><div><br></div><div>  &lt;/context&gt;</div><div>&lt;/include&gt;</div></div><div><br></div><div>Brs,</div><div>Khue.</div><br><div class="gmail_quote">
2012/10/15 Chad Engler <span dir="ltr">&lt;<a href="mailto:Chad.Engler@patlive.com" target="_blank">Chad.Engler@patlive.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">It would also be nice to see your config.json in the root of the chatty directory.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">-Chad<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Chad Engler <br>
<b>Sent:</b> Monday, October 15, 2012 8:48 AM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> RE: [Freeswitch-users] How to send sip MESSAGE from script<u></u><u></u></span></p></div></div><div class="im"><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Khue,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">What version of node are you running? Can I also see your chatplan?<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p></div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Chad<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Khue Nguyen Minh<br>
<b>Sent:</b> Friday, October 12, 2012 11:44 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] How to send sip MESSAGE from script<u></u><u></u></span></p></div><div><div class="h5"><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">Hi Chad,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I installed node-esl and tried it. But, I have some error:<u></u><u></u></p></div>
<div><ol start="1" type="1"><li class="MsoNormal">When I enter url: <a href="http://my_ip:8181" target="_blank">http://my_ip:8181</a>, chatty stopped immediately with error:<u></u><u></u></li></ol></div><blockquote style="margin-left:30.0pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div><p class="MsoNormal">http.js:650<u></u><u></u></p></div><div><p class="MsoNormal">    throw new Error(&#39;Can\&#39;t set headers after they are sent.&#39;);<u></u><u></u></p></div><div><p class="MsoNormal">          ^<u></u><u></u></p>
</div><div><p class="MsoNormal">Error: Can&#39;t set headers after they are sent.<u></u><u></u></p></div><div><p class="MsoNormal">    at ServerResponse.OutgoingMessage.setHeader (http.js:650:11)<u></u><u></u></p></div><div>
<p class="MsoNormal">    at ServerResponse.res.setHeader (/opt/englercj-node-esl-50aba9e/examples/chatty/node_modules/express/node_modules/connect/lib/patch.js:59:22)<u></u><u></u></p></div><div><p class="MsoNormal">    at SendStream.type (/opt/englercj-node-esl-50aba9e/examples/chatty/node_modules/express/node_modules/connect/node_modules/send/lib/send.js:444:7)<u></u><u></u></p>
</div><div><p class="MsoNormal">    at SendStream.send (/opt/englercj-node-esl-50aba9e/examples/chatty/node_modules/express/node_modules/connect/node_modules/send/lib/send.js:343:8)<u></u><u></u></p></div><div><p class="MsoNormal">
    at /opt/englercj-node-esl-50aba9e/examples/chatty/node_modules/express/node_modules/connect/node_modules/send/lib/send.js:319:10<u></u><u></u></p></div><div><p class="MsoNormal">    at Object.oncomplete (fs.js:308:15)<u></u><u></u></p>
</div><div><p class="MsoNormal">    at process._makeCallback (node.js:248:20)<u></u><u></u></p></div></blockquote><ol start="1" type="1"><li class="MsoNormal">In fs_cli have error:<u></u><u></u></li></ol><blockquote style="margin-left:30.0pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div><p class="MsoNormal">2012-10-13 06:56:01.476306 [WARNING] sofia_presence.c:204 Not sending to local box for  <a href="mailto:9910@192.168.0.24" target="_blank">9910@192.168.0.24</a><u></u><u></u></p></div><div><p class="MsoNormal">
2012-10-13 06:56:01.476306 [ERR] sofia_presence.c:253 Chat proto [sip]<u></u><u></u></p></div><div><p class="MsoNormal">from [&quot;1000&quot; &lt;<a href="mailto:sip%3A1000@192.168.0.24" target="_blank">sip:1000@192.168.0.24</a>&gt;;tag=7700467a]<u></u><u></u></p>
</div><div><p class="MsoNormal">to [<a href="mailto:9910@192.168.0.24" target="_blank">9910@192.168.0.24</a>]<u></u><u></u></p></div><div><p class="MsoNormal">&lt;FONT size=2 face=Arial&gt;how are you?&lt;/FONT&gt;<u></u><u></u></p>
</div><div><p class="MsoNormal">Nobody to send to: Profile internal<u></u><u></u></p></div></blockquote><div><p class="MsoNormal">please help me fix it.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p>
</div><div><p class="MsoNormal">Thanks&amp; Best regards,<u></u><u></u></p></div><div><p class="MsoNormal">Khue<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p>
<div><p class="MsoNormal">2012/10/12 Chad Engler &lt;<a href="mailto:Chad.Engler@patlive.com" target="_blank">Chad.Engler@patlive.com</a>&gt;<u></u><u></u></p><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hello,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Check out <a href="https://github.com/englercj/node-esl" target="_blank">https://github.com/englercj/node-esl</a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thanks,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Chad</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Khue Nguyen Minh<br>
<b>Sent:</b> Friday, October 12, 2012 5:01 AM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> [Freeswitch-users] How to send sip MESSAGE from script</span><u></u><u></u></p></div><div><div><p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Hi all,<u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">I want send message &quot;MESSAGE&quot; to caller from javascript. How I can do it, please guide me?<u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Brs,<u></u><u></u></p></div><div><p class="MsoNormal">Khue.<u></u><u></u></p></div></div></div></div></div><p class="MsoNormal" style="margin-bottom:12.0pt">
<br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><u></u><u></u></p>
</div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>