[Freeswitch-users] how to access session variables after hangup???

Michael Collins msc at freeswitch.org
Wed Mar 17 10:50:49 PDT 2010


On Sun, Mar 14, 2010 at 1:01 PM, rentmycoder rentmycoder <
rentmycoder at gmail.com> wrote:

> > Pass them as arguments to your luarun hangup hook.
> And what about variables are not available before the call setup (like
> uuid), only during the call progress or after the hangup???
> I would need to access the originate_disposition variable...
>
> >> 'luarun hangup.lua ${originate_disposition}'
> >> 2010-03-14 18:25:08.122511 [CRIT] switch_channel.c:759 Invalid data
> (${api_hangup_hook} contains a variable)
> any other hint???
>

Use the magic env object, which is an event object with all the chan vars
for the channel that just hung up. More info here:
http://wiki.freeswitch.org/wiki/Lua#Special_Case:_env_object
-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100317/f1f69125/attachment-0002.html 


More information about the FreeSWITCH-users mailing list