what happens in the media stream prior to the call being answered? <br>-MC<br><br><div class="gmail_quote">On Thu, Nov 8, 2012 at 4:31 PM, Jim Daley <span dir="ltr">&lt;<a href="mailto:jim.daley1223@yahoo.com" target="_blank">jim.daley1223@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div>I hope this is the right place to ask this question.</div>

<div> </div>
<div>I am running freeswitch using LUA. <var></var>I&#39;m doing outbound calling for a load tester.</div>
<div> </div>
<div>I have a number that when you call it you need to enter 2654# before the call get&#39;s answered. So I need a way of dialing DTMF digits before the other end answers. I tried to just sleep and send_dtmf after the session.ready but that doesn&#39;t work.</div>

<div> </div>
<div>Is there a way to do this. Sample code below...thanks</div>
<div> </div><span lang="EN"><span lang="EN">
<div>if (session:ready()) then</div>
<div>session:answer();</div>
<div>session:setVariable(&quot;CallCmp&quot;, &quot;Script_dcetest1&quot;)</div>
<div>session:setVariable(&quot;PromptFail&quot;, &quot;Script_dcetest1&quot;) ;</div>
<div>api = freeswitch.API();</div>
<div>session:sleep(1000);</div>
<div></div>
<div>--status = session:getVariable(&quot;SilenceStatus&quot;);</div>
<div></div>
<div>session:execute(&quot;wait_for_silence&quot;, &quot;200 30 20 20000&quot;); --</div>
<div></div>
<div>-- Continue in english, press 2</div>
<div>status = session:getVariable(&quot;SilenceStatus&quot;); -- This will get past langauge and main menu prompts</div>
<div>if((status == &quot;unset&quot;)and(session:ready())) then </div>
<div>session:execute(&quot;send_dtmf&quot;, &quot;2@100&quot;); --@ determines dtmf length, enter NPI</div></span></span></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>