[Freeswitch-users] Hangup hooks on B legs

Avi Marcus avi at avimarcus.net
Wed Aug 3 21:56:00 MSD 2011


If the channel is hung up, then it's hung up.. that's what the hangup
hook is, afaik.
If you look at the wiki page for this:
http://wiki.freeswitch.org/wiki/Variable_session_in_hangup_hook
it only says that you can "access" the variable, not that the channel
still exists or that you can set them.
Why do you need to use a hangup hook to set a variable? can't you set
it at the start? Or import B leg into A leg's CDRs?

-Avi Marcus

718-989-9485 (USA)
054-844-3271 (Israel Kosher)
077-228-5055 (Israel Landline)
020-3519-3606 (UK)



On Wed, Aug 3, 2011 at 8:47 PM, Isaac Jurado <ijurado at econcept.es> wrote:
> On Wed, Aug 3, 2011 at 7:39 PM, Avi Marcus <avi at avimarcus.net> wrote:
>>
>> I'm not sure exactly what you are trying to do, but yes, the ${uuid}
>> is expanded at the time of the "hunt" in the dialplan, before the
>> second leg was even created.
>
> My original intention was to set a channel variable from the
> api_hangup_hook:
>
> <action application="export" data="nolocal:api_hangup_hook=uuid_setvar
> ${uuid} fooooo baaaaar"/>
>
> But as the expanded ${uuid} does not exist, the uuid_setvar command
> complains.
>
> Cheers.
>
> --
> Isaac Jurado
> Internet Busines Solutions eConcept
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> 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
>



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