from the CLI:<div><br></div><div>> luarun script.lua<br><br><div class="gmail_quote">On Wed, May 5, 2010 at 6:17 PM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">How are you running this script?<br>
<font color="#888888"><br>
/b<br>
</font><div class="im"><br>
On May 5, 2010, at 8:13 PM, Neil Patel wrote:<br>
<br>
> I was testing a luascript that I am using to initiate calls from the command line using luarun. Here is the relevant snippet of the script:<br>
> -- make the call<br>
> session = freeswitch.Session(DIALSTRING_PREFIX .. phone_num)<br>
> session:setVariable("caller_id_number", phone_num)<br>
> session:setVariable("playback_terminators", "#");<br>
> session:setHangupHook("hangup");<br>
> session:setInputCallback("my_cb", "arg");<br>
><br>
<br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>