Hi, new to javascript. I tried to pass two arguments into javascript,

<action application="javascript" data="test.js $1 $2"/>


In test.js, I tried to use argv[1]  to retrieve $1 and argv[2] to retrieve
$2, however, the javascript test.js complained about argv[] as undefined
variables. How to retrieve the passing arguments in a javascript same as the
case above. Thanks,
_______________________________________________
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