UUID of the newly originated call?
Dear friends, I am trying with ESL outbound socket. I'm trying to make a call when I receive ANSWER event. Now, I would want to do something like, * Receive the events only for this uuid - I have done by registering all events and filtering only for this uuid($uuid). * If it is CHANNEL_ANSWER, originate a new call. Now, How can I get the uuid of the new call and receive events for this new call.? I want to receive the events for both uuids. -- View this message in context: http://www.nabble.com/UUID-of-the-newly-originated-call--tp25751228p25751228... Sent from the Freeswitch-users mailing list archive at Nabble.com.
Hi, 2009/10/5 Nagalenoj <nagalenoj@gmail.com>:
* Receive the events only for this uuid - I have done by registering all events and filtering only for this uuid($uuid). * If it is CHANNEL_ANSWER, originate a new call.
it's a "filter in", not "filter out" :)
Now, How can I get the uuid of the new call and receive events for this new call.? I want to receive the events for both uuids.
You can specify the UUID of an originated call by doing the following: * Use create_uuid to generate a UUID to use. * This will allow you to kill an originated call before it is answered by using uuid_kill. * The UUID of the answered call leg will not be the same UUID as the origination_uuid specified (Each call leg always gets its own UUID) originate [origination_uuid=...]user/100@domain.name.com shamelessly ripped from http://wiki.freeswitch.org/wiki/Mod_commands#originate at least it worked for me. Beni.
participants (2)
-
Benedikt Fraunhofer
-
Nagalenoj