Yes Mr. Collins, I've tried with shed_api. But I was not able to control, if the user reject the call.<br><br>I made a shed_api to originate a call to 1000 and If it is answered, I'll transfer the call to 9097 (So it comes to my program, refer the dialplan in my question). But what happens if the user 1000, reject the call. I can't control that.<br>
If the user 1000, reject the call, I need to call the user after some time. <br><br>Any way to do this!!<br><br><div class="gmail_quote">On Mon, Nov 23, 2009 at 11:21 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br><div class="gmail_quote"><div><div></div><div class="h5">On Mon, Nov 23, 2009 at 3:25 AM, lakshmanan ganapathy <span dir="ltr"><<a href="mailto:lakindia89@gmail.com" target="_blank">lakindia89@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>I'm using perl ESL to control the call in freeswitch.<br>I'm having the following scenario, but not able to get it right.<br><br>Dialplan:<br><extension name="outbound_soc"><br> <condition field="destination_number" expression="^9097$"><br>
<action application="set" data="continue_on_fail=true"/><br> <action application="socket" data="<a href="http://192.168.1.222:8447" target="_blank">192.168.1.222:8447</a> async full"/><br>
</condition><br></extension><br><br><br>1. User A calls to an extention (1000).<br>2. My ESL program will be running, and it answers the call.<br>3. Then the program will get a number from the user.<br>4. It will hangup the call.<br>
5. The program has to call to the number that was given by the user.<br><br>In the above scenario, I was able to do until the 4th step. After hangup the call, if I say originate it is not working.<br>Any ideas on how to do this in ESL.<br>
<br></blockquote></div></div><div><br>I want to make sure I understand what the script is supposed to be doing. The caller will key in a phone number to your script and your script will collect those digits. The script will then hangup on the caller and originate a completely new call? Perhaps you could use sched_api to schedule a new originate command for a few seconds into the future and then hangup?<br>
-MC<br></div></div><br>
<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>