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/[email protected] '&javascript(test.js myArg1 myArg2)'
thanks!

2009-11-09
god.nirvana
_______________________________________________
FreeSWITCH-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

_______________________________________________
FreeSWITCH-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to