[Freeswitch-users] how to: get session variable after api_hangup_hook
Michael Collins
msc at freeswitch.org
Tue Jun 5 21:56:41 MSD 2012
Are you setting session_in_hangup_hook?
http://wiki.freeswitch.org/wiki/Channel_Variables#session_in_hangup_hook
-MC
On Tue, Jun 5, 2012 at 8:33 AM, cristian re <cristian.re.work at gmail.com>wrote:
> Hello,
>
> I write a custom cpp module for freeswitch that exposes an API:
>
> SWITCH_ADD_API(commands_api_interface, "my_hangup", "my_hangup",
> my_hangup_api , MY_HANGUP_USAGE);
>
> I want to call this api from dialplan (after bridge hangup) for reading
> the variable "billmsec".
> I put this into my dialplan:
>
> <action application="set" data="session_in_hangup_hook=true"/>
> <action application="set" data="api_hangup_hook=my_hangup_api"/>
>
> After hangup freeswitch call correctly my API but I have not figured out
> how to get the variable.
>
>
>
>
>
>
> _________________________________________________________________________
> 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
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> 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/20120605/5204c1dd/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list