[Freeswitch-users] javascript parameter

Rob Forman rob4manhere at gmail.com
Mon Nov 9 08:19:27 PST 2009


You can check the numbers of arguments passed with argc, and access  
them via argv[0], argv[1], etc.

Its hinted at on the main Javascript wiki page, and also detailed in  
the FAQ.

http://wiki.freeswitch.org/wiki/Javascript_FAQ



On Nov 8, 2009, at 10:34 AM, god.nirvana wrote:

> hi all:
>       how can i get the value of the myArg1 myArg2 in test.js.
> like this       originate sofia/example/1000 at somewhere.com  
> '&javascript(test.js myArg1 myArg2)'
> thanks!
>
> 2009-11-09
> god.nirvana
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091109/1117c449/attachment-0002.html 


More information about the FreeSWITCH-users mailing list