Hi Chad,<div><br></div><div>I used node version 0.9.3-pre. This is config.json:</div><div><div>{</div><div> "fsw": {</div><div> "host": "192.168.0.24",</div><div> "port": 8021,</div>
<div> "password": "ClueCon"</div><div> },</div><div> "server": {</div><div> "host": "192.168.0.24",</div><div> "port": 8181,</div><div>
"provider": "<a href="http://sms-proxy.yourprovider.com">sms-proxy.yourprovider.com</a>",</div><div> "from": "from_number@from_host",</div><div> "profile": "external"</div>
<div> }</div><div>}</div><div><br></div><div>and chatplan:</div><div><div><?xml version="1.0" encoding="utf-8"?></div><div><include></div><div> <context name="default"></div>
<div><br></div><div> <extension name="demo"></div><div> <condition field="to" expression="^(.*)$"></div><div> </div><div> <action application="fire" data=""/></div>
<div> </div><div> </condition></div><div> </extension></div><div><br></div><div> </context></div><div></include></div></div><div><br></div><div>Brs,</div><div>Khue.</div><br><div class="gmail_quote">
2012/10/15 Chad Engler <span dir="ltr"><<a href="mailto:Chad.Engler@patlive.com" target="_blank">Chad.Engler@patlive.com</a>></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:"Calibri","sans-serif";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:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">-Chad<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> 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:"Calibri","sans-serif";color:#1f497d">Khue,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p></div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Chad<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <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('Can\'t set headers after they are sent.');<u></u><u></u></p></div><div><p class="MsoNormal"> ^<u></u><u></u></p>
</div><div><p class="MsoNormal">Error: Can'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 ["1000" <<a href="mailto:sip%3A1000@192.168.0.24" target="_blank">sip:1000@192.168.0.24</a>>;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"><FONT size=2 face=Arial>how are you?</FONT><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& 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 <<a href="mailto:Chad.Engler@patlive.com" target="_blank">Chad.Engler@patlive.com</a>><u></u><u></u></p><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hello,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Chad</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <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 "MESSAGE" 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>