<div dir="ltr">The wiki tells you alternative syntaxes:<div><a href="http://wiki.freeswitch.org/wiki/Mod_commands#originate">http://wiki.freeswitch.org/wiki/Mod_commands#originate</a></div><div><br></div><div>e.g. <span style="background-color:rgb(249,249,249);line-height:1.1em">originate sofia/example/<a href="mailto:1000@somewhere.com">1000@somewhere.com</a> &javascript(test.js)</span></div>
<div><br></div><div>... but if the quotes doesn't work, the next wiki entry is wrong...</div><div><br clear="all"><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small">-Avi</span></span></div>
<br><br><div class="gmail_quote">On Fri, Aug 31, 2012 at 8:53 AM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It might be the location of your single quotes. Try something a little different, like this:<br><br><i><b>originate sofia/external/<a href="mailto:1000@somewhere.com" target="_blank">1000@somewhere.com</a> &javascript('hello.js /opt/freeswitch/sounds/2.mp3')</b></i><br>
<br>If that doesn't work then keep tinkering. If you still need more help then I recommend putting your console output into <a href="http://pastebin.freeswitch.org" target="_blank">pastebin.freeswitch.org</a> and linking back here in this thread. Be sure to use "FreeSWITCH Log" as the syntax highlighting.<br>
<br>-MC<br><br><div class="gmail_quote"><div><div class="h5">On Thu, Aug 30, 2012 at 9:02 PM, Khue Nguyen Minh <span dir="ltr"><<a href="mailto:khuenm@vega.com.vn" target="_blank">khuenm@vega.com.vn</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">
Hi all,<div><br></div><div>I want make outbound call to a user with command:</div><div><br></div><div><i><b>originate sofia/external/<a href="mailto:1000@somewhere.com" target="_blank">1000@somewhere.com</a> '&javascript(hello.js /opt/freeswitch/sounds/2.mp3)'</b></i></div>
<div><br></div><div>my javascript will play file /opt/freeswitch/sounds/2.mp3.</div><div><br></div><div>The call make successful but hangup immediately. I see log in fs_cli and see this line "No Dialplan on answer channel". How I can fix this problem?</div>
<div><br></div><div>Thanks</div><span><font color="#888888"><div>Khue Nguyen.</div>
</font></span><br></div></div>_________________________________________________________________________<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><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>
</font></span><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></div>