<div dir="ltr"><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">uuid_bridge_continue_on_</span><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">cancel sounds like an API, not a dialplan tool..</span><div>
<font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial; border-collapse: separate; ">exec_after_bridge_app according to the wiki means once the bridge ENDS. So how about just using a hangup hook? </span><br clear="all">
</span></font></div><div><div dir="ltr"><span style="font-size: small; "><br></span></div><div dir="ltr"><span style="font-size: small; "><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://wiki.freeswitch.org/wiki/Variable_api_hangup_hook">http://wiki.freeswitch.org/wiki/Variable_api_hangup_hook</a></span></div>
<div dir="ltr"><br></div><div dir="ltr">-Avi Marcus</div><div dir="ltr"><br><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; ">718-989-9485 (USA)</span><br><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; ">054-844-3271 (Israel Kosher)</span><br>
<span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; ">077-228-5055 (Israel Landline)<br>020-3519-<span style="font-size:small">3</span>606 (UK)</span></div><br>
<br><br><div class="gmail_quote">On Thu, Aug 11, 2011 at 6:06 PM, Alec Glassford <span dir="ltr"><<a href="mailto:alec@efuse.co.uk">alec@efuse.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I need to run a LUA script after a Bridge to write call information to a MySQL DB.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The problem is the script is only running intermittently, maybe 1 in 10 calls.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I have tried the exec_after_bridge_app command, I’ve tried uuid_bridge_continue_on_cancel, but it neither works. I can provide output if necessary.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am bridging FreeTDM Sangoma A101 E1 ISDN30 calls to a SIP Provider, I do a DB lookup to find the correct Presentation number then bridge the call, below is from my Dialplan:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D"><condition field="destination_number" expression="^(\d{11})$"> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D"> <action application="lua" data="lookup02.lua"/> <u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D"> <action application="set" data="effective_caller_id_number=${Presentation}"/><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D"> <action application="set" data="effective_caller_id_name=${Presentation}"/><u></u><u></u></span></p><p class="MsoNormal">
<span style="font-family:"Courier New";color:#1F497D"> <action application="log" data="INFO Dialling $1 presenting ${Presentation} from dblookup"/><u></u><u></u></span></p><p class="MsoNormal">
<span style="font-family:"Courier New";color:#1F497D"> <action application="set" data="uuid_bridge_continue_on_cancel=true"/><u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D"> <action application="set" data="exec_after_bridge_app=lua"/><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D"> <action application="set" data="exec_after_bridge_arg=endcall01.lua"/><u></u><u></u></span></p><p class="MsoNormal">
<span style="font-family:"Courier New";color:#1F497D"> <action application="bridge" data="sofia/gateway/ProviderZZZ/$1" /><u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D"> <action application="lua" data="endcall01.lua"/><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D"> <action application="hangup" /><u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New";color:#1F497D"></condition><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Any help much appreciated<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><b><span lang="EN-US" style="color:#0080FF">Alec Glassford</span></b><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span>e<span style="color:#3366FF">fuse</span></span></b><span lang="EN-US"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt">Tel: 0844 847 9707<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Mob: 07540 417395<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt">Fax: 0844 847 9708</span><span><u></u><u></u></span></p><p class="MsoNormal">
<span lang="EN-US"><a href="http://www.efuse.co.uk/" title="blocked::http://www.efuse.co.uk/" target="_blank"><span style="font-size:10.0pt;color:black">www.efuse.co.uk</span></a><u></u><u></u></span></p><p class="MsoNormal">
<span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">This is an email from efuse, IT Solutions providers: <a href="http://www.efuse.co.uk/" title="http://www.efuse.co.uk/
www.efuse.co.uk" target="_blank"><span style="color:blue">www.efuse.co.uk</span></a></span><span lang="EN-US"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p><p class="MsoNormal">
<span lang="EN-US" style="font-size:10.0pt;font-family:Webdings;color:green">P </span><span lang="EN-US" style="font-size:10.0pt;color:green">Save a tree...please don't print this e-mail<i> unless you really need to</i> </span><span lang="EN-US" style="font-size:10.0pt"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:6.0pt"><span lang="EN-US" style="font-size:10.0pt;color:#98C4E7">Its contents are confidential and legally privileged and it is intended only for the use of the addressees named above. If you are not an addressee you must not read it and must not use any information contained in it nor copy it nor inform any person other than Efuse Solutions or the addressees of its existence or contents.<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:6.0pt"><span lang="EN-US" style="font-size:10.0pt;color:#98C4E7">If you have received this email and are not a named addressee please delete it and notify <a href="mailto:helpdesk@efuse.co.uk" title="mailto:helpdesk@efuse.co.uk" target="_blank"><span style="color:blue">support@efuse.co.uk</span></a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;color:#98C4E7">Please note that Efuse Solutions nor the sender accepts any responsibility for viruses and that it is your responsibility to scan any attachments. No contractual obligations may be established on behalf of Efuse Solutions by means of email communication.</span><span><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p></div></div><br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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>