Are you setting session_in_hangup_hook?<br><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#session_in_hangup_hook">http://wiki.freeswitch.org/wiki/Channel_Variables#session_in_hangup_hook</a><br>-MC<br><br><div class="gmail_quote">
On Tue, Jun 5, 2012 at 8:33 AM, cristian re <span dir="ltr"><<a href="mailto:cristian.re.work@gmail.com" target="_blank">cristian.re.work@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div><div>Hello,</div><div><br></div><div>I write a custom cpp module for freeswitch that exposes an API:</div><div><br></div><div>SWITCH_ADD_API(commands_api_interface, "my_hangup", "my_hangup", my_hangup_api , MY_HANGUP_USAGE);</div>
<div><br></div><div>I want to call this api from dialplan (after bridge hangup) for reading the variable "billmsec".</div><div>I put this into my dialplan:</div><div><br></div><div><action application="set" data="session_in_hangup_hook=true"/></div>
<div><action application="set" data="api_hangup_hook=my_hangup_api"/></div><div><br></div><div>After hangup freeswitch call correctly my API but I have not figured out how to get the variable.</div>
</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>