Look at execute_on_answer channel variable:<div><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#The_execute_on_family">http://wiki.freeswitch.org/wiki/Channel_Variables#The_execute_on_family</a></div><div><br></div>
<div>-MC<br><br><div class="gmail_quote">On Wed, Nov 30, 2011 at 6:13 AM, Mariusz Sanitariusz <span dir="ltr"><<a href="mailto:msanitariusz@gmail.com">msanitariusz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>I'm writing a script (in Python, but I'll be grateful for examples in any language) processing incoming calls and I'm stuck at the final point of my script.<br>Simply, I don't have any idea how to achieve something like this:<br>
- at the end of my script I have to call (bridge, originate, forgive me my lack of knowledge) a group of users (one at the time and after the specified timeout, if that user doesn't answer, try another user from that group of users and so on) and when an user answers a call I have to get an information on which user answered and pass that information via HTTP request to a web service and it has to be done at the moment of some user answering, not after the call has ended<br>
The problem is that I don't know how to get information about which user has answered the phone and make a HTTP request just after the call has been answered.<br>Could you please provide me witch some hints or code samples on how to achieve this behavior.<br>
Best regards<span class="HOEnZb"><font color="#888888"><br>Mariusz Sanitariusz<br>
</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>
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>