Look at execute_on_answer channel variable:
Hi,
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.
Simply, I don't have any idea how to achieve something like this:
- 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
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.
Could you please provide me witch some hints or code samples on how to achieve this behavior.
Best regards
Mariusz Sanitariusz
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org