[Freeswitch-users] Hangup Cause in LUA Hangup Hook

Michael Collins msc at freeswitch.org
Thu Feb 9 21:56:42 MSK 2012


Sorry for the delayed response. I'm 99% sure that you want this:
http://wiki.freeswitch.org/wiki/Lua#Special_Case:_env_object

-MC

On Wed, Feb 8, 2012 at 4:08 AM, Gerald Weber <gerald.weber at besharp.at>wrote:

> Hello,****
>
> ** **
>
> is there a way to get the HangupCause in a HangupHook in LUA ?****
>
> following commands return nil:****
>
> s:getVariable("hangup_cause")****
>
> s:getVariable("hangup_cause_q850")****
>
> ** **
>
> s:hangupCause() returns “NONE”****
>
> ** **
>
> I know I can set api_hangup_hook and use the env object to get the channel
> vars, but i think that’s a litte overkill to use 2 scripts for 1 Call.****
>
> ** **
>
> Thx****
>
> gw****
>
> ** **
>
> _________________________________________________________________________
> 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/20120209/13b3dc53/attachment-0001.html 


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