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@somewhere.com '&javascript(test.js myArg1 myArg2)'
thanks!
 
2009-11-09

god.nirvana
_______________________________________________
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