Yes, it works. <div>Thanks</div><div><br></div><div><br><br><div class="gmail_quote">2012/8/13 Godson Gera <span dir="ltr">&lt;<a href="mailto:godson.g@gmail.com" target="_blank">godson.g@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>You can use sched_api to do that. There is an example here.<br></div><div><br></div><div><a href="http://wiki.freeswitch.org/wiki/Mod_commands#sched_api" target="_blank">http://wiki.freeswitch.org/wiki/Mod_commands#sched_api</a></div>

<br><div class="gmail_quote"><div><div class="h5">On Mon, Aug 13, 2012 at 2:35 PM, cristian re <span dir="ltr">&lt;<a href="mailto:cristian.re.work@gmail.com" target="_blank">cristian.re.work@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi,<div><div>I have a question about originate in api_hangup_hook.</div><div>I&#39;m looking for call back the calling number after hang up, I made a test in dialplan but if I make a call with a mobile phone the originate is so fast that often goes to voicemail.</div>


<div>Is there a way to call back after some seconds?</div></div><div><br></div><div>My dialplan for this test is:</div><div><br></div><div><div>&lt;context name=&quot;cb_test&quot;&gt;</div><div>    &lt;extension name=&quot;cb_test&quot;&gt;</div>


<div>      &lt;condition&gt;</div><div>        &lt;action application=&quot;pre_answer&quot;/&gt;</div><div>        &lt;action application=&quot;set&quot; data=&quot;api_hangup_hook=originate sofia/external/${caller_id_number}@x.x.x.x CB000000&quot;/&gt;</div>


<div>        &lt;action application=&quot;sleep&quot; data=&quot;5000&quot;/&gt;</div><div>        &lt;action application=&quot;hangup&quot;/&gt;</div><div>      &lt;/condition&gt;</div><div>    &lt;/extension&gt;</div><div>


&lt;/context&gt;</div></div><div><br></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Thanks &amp; Regards,<br><div>Godson Gera<br></div><div><a href="http://godson.in" target="_blank">SIP Consultant</a></div>

</font></span><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>
Join Us At ClueCon - Aug 7-9, 2012<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></div>