<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>