"It doesn't work" is a big vague. Could you be more specific?
-MC

On Mon, Sep 3, 2012 at 6:49 PM, Khue Nguyen Minh <khuenm@vega.com.vn> wrote:
Hi Avi,

My javascript work normal (I tested it in a xml dialplan). I still try with originate sofia/external/1000@somewhere.com &javascript('hello.js /opt/freeswitch/sounds/2.mp3') but It doesn't work.

Brs,
Khue Nguyen.

2012/8/31 Avi Marcus <avi@avimarcus.net>
The wiki tells you alternative syntaxes:

e.g. originate sofia/example/1000@somewhere.com &javascript(test.js)

... but if the quotes doesn't work, the next wiki entry is wrong...

-Avi
McAfee SiteAdvisor Warning
This e-mail message contains potentially unsafe links to these sites:
ostag.org more info...
freeswitchsolutions.com more info...


On Fri, Aug 31, 2012 at 8:53 AM, Michael Collins <msc@freeswitch.org> wrote:
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.

-MC

On 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?

Thanks
Khue 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



_________________________________________________________________________
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



_________________________________________________________________________
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