<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You can check the numbers of arguments passed with argc, and access them via argv[0], argv[1], etc.<div><br></div><div>Its hinted at on the main Javascript wiki page, and also detailed in the FAQ.</div><div><br></div><div><a href="http://wiki.freeswitch.org/wiki/Javascript_FAQ">http://wiki.freeswitch.org/wiki/Javascript_FAQ</a></div><div><br></div><div><br></div><div><br><div><div>On Nov 8, 2009, at 10:34 AM, god.nirvana wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; font-family: verdana; font-size: 10pt; "><div><font size="2" face="Verdana">hi all:</font></div><div> how can i get the value of the myArg1 myArg2 in test.js.</div><div>like this originate<span class="Apple-converted-space"> </span><a href="mailto:sofia/example/1000@somewhere.com">sofia/example/1000@somewhere.com</a><span class="Apple-converted-space"> </span>'&javascript(test.js myArg1 myArg2)'<br>thanks!</div><div><font size="2" face="Verdana"></font> </div><div align="left"><font color="#c0c0c0" size="2" face="Verdana">2009-11-09</font></div><font size="2" face="Verdana"><hr align="left" size="2" style="width: 122px; height: 2px; "><div><font color="#c0c0c0" size="2" face="Verdana"><span>god.nirvana</span></font></div></font>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div></blockquote></div><br></div></body></html>