<div dir="ltr"><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#api_hangup_hook">api_hangup_hook</a> probably does what you want.<div>See also: <a href="http://wiki.freeswitch.org/wiki/Variable_session_in_hangup_hook">Variable_session_in_hangup_hook</a></div>
<div><br></div><div>If you want to handle actual media, that won't work -- the call is hung up already.</div><div>You can do an export nolocal:<a href="http://wiki.freeswitch.org/wiki/Variable_transfer_after_bridge">transfer_after_bridge</a> to send the B leg to a specific extension after the A leg hangs up.</div>
<div><br clear="all"><div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi Marcus</span></div></div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">BestFone</span></div>
<br><br><div class="gmail_quote">On Mon, Mar 11, 2013 at 8:07 PM, Nick Vines <span dir="ltr"><<a href="mailto:jnvines@gmail.com" target="_blank">jnvines@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 dir="ltr">Hangup_after_bridge might be what you are looking for. Set it to false, then you can do some more stuff after the bridge action. Remember to hangup the call though. <div><div><pre style="line-height:1.1em;background-color:rgb(249,249,249);border:1px dashed rgb(47,111,171);padding:1em">
<action application="set" data="hangup_after_bridge=false"/></pre></div><div class="gmail_extra">-bridge</div><div class="gmail_extra"><pre style="line-height:1.1em;background-color:rgb(249,249,249);border:1px dashed rgb(47,111,171);padding:1em">
<action application="hangup" data="SOME_REASON"/></pre></div><div class="gmail_extra">-execute script</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Mar 11, 2013 at 10:55 AM, Archana Venugopan <span dir="ltr"><<a href="mailto:a.venugopan@mundio.com" target="_blank">a.venugopan@mundio.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5">
<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p>Hi,<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>As like execute-on-answer do we have execute on hangup? I need to run lua script in hangup. Please let me know. Thanks.<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Regards,<u></u><u></u></p>
<p>Archana<u></u><u></u></p>
<p><u></u> <u></u></p>
</div>
</div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></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>
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></div></div>