[Freeswitch-users] Run few script commands after the user answers the call (during that call)

Michael Collins msc at freeswitch.org
Wed Nov 30 19:14:49 MSK 2011


Look at execute_on_answer channel variable:
http://wiki.freeswitch.org/wiki/Channel_Variables#The_execute_on_family

-MC

On Wed, Nov 30, 2011 at 6:13 AM, Mariusz Sanitariusz <msanitariusz at gmail.com
> wrote:

> 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111130/f4cf71bc/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list