from the CLI:<div><br></div><div>&gt; luarun script.lua<br><br><div class="gmail_quote">On Wed, May 5, 2010 at 6:17 PM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt;</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>
&gt; 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>
&gt; -- make the call<br>
&gt; session = freeswitch.Session(DIALSTRING_PREFIX .. phone_num)<br>
&gt; session:setVariable(&quot;caller_id_number&quot;, phone_num)<br>
&gt; session:setVariable(&quot;playback_terminators&quot;, &quot;#&quot;);<br>
&gt; session:setHangupHook(&quot;hangup&quot;);<br>
&gt; session:setInputCallback(&quot;my_cb&quot;, &quot;arg&quot;);<br>
&gt;<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>