It might be the location of your single quotes. Try something a little different, like this:
originate sofia/external/1000@somewhere.com &javascript('hello.js /opt/freeswitch/sounds/2.mp3')
If that doesn't work then keep tinkering. If you still need more help then I recommend putting your console output into pastebin.freeswitch.org and linking back here in this thread. Be sure to use "FreeSWITCH Log" as the syntax highlighting.
-MCOn Thu, Aug 30, 2012 at 9:02 PM, Khue Nguyen Minh <khuenm@vega.com.vn> wrote:
_________________________________________________________________________Hi all,I want make outbound call to a user with command:originate sofia/external/1000@somewhere.com '&javascript(hello.js /opt/freeswitch/sounds/2.mp3)'my javascript will play file /opt/freeswitch/sounds/2.mp3.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?ThanksKhue Nguyen.
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org