<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I need to run a LUA script after a Bridge to write call information to a MySQL DB.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>The problem is the script is only running intermittently, maybe 1 in 10 calls.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I have tried the exec_after_bridge_app command, I&#8217;ve tried uuid_bridge_continue_on_cancel, but it neither works.&nbsp; I can provide output if necessary.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></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:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>&lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d{11})$&quot;&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;lua&quot; data=&quot;lookup02.lua&quot;/&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_number=${Presentation}&quot;/&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_name=${Presentation}&quot;/&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;log&quot; data=&quot;INFO Dialling $1 presenting ${Presentation} from dblookup&quot;/&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;uuid_bridge_continue_on_cancel=true&quot;/&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;exec_after_bridge_app=lua&quot;/&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;exec_after_bridge_arg=endcall01.lua&quot;/&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/ProviderZZZ/$1&quot; /&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;lua&quot; data=&quot;endcall01.lua&quot;/&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;hangup&quot; /&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>&lt;/condition&gt;<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Any help much appreciated<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='mso-fareast-language:EN-GB'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-family:"Arial","sans-serif";color:#0080FF;mso-fareast-language:EN-GB'>Alec Glassford</span></b><span lang=EN-US style='mso-fareast-language:EN-GB'><o:p></o:p></span></p><p class=MsoNormal><b><span style='font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>e<span style='color:#3366FF'>fuse</span></span></b><span lang=EN-US style='mso-fareast-language:EN-GB'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>Tel:&nbsp; 0844 847 9707<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>Mob: 07540 417395<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>Fax: 0844 847 9708</span><span style='mso-fareast-language:EN-GB'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-GB'><a href="http://www.efuse.co.uk/" title="blocked::http://www.efuse.co.uk/"><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>www.efuse.co.uk</span></a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-GB'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'>This is an email from efuse, IT Solutions providers: <a href="http://www.efuse.co.uk/" title="http://www.efuse.co.uk/&#10;www.efuse.co.uk"><span style='color:blue'>www.efuse.co.uk</span></a></span><span lang=EN-US style='mso-fareast-language:EN-GB'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-GB'>&nbsp;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:Webdings;color:green;mso-fareast-language:EN-GB'>P </span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:green;mso-fareast-language:EN-GB'>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;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:6.0pt'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#98C4E7;mso-fareast-language:EN-GB'>Its contents are confidential and legally privileged and it is intended only for the use of the addressees named above.&nbsp; 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.<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:6.0pt'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#98C4E7;mso-fareast-language:EN-GB'>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"><span style='color:blue'>support@efuse.co.uk</span></a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#98C4E7;mso-fareast-language:EN-GB'>Please note that Efuse Solutions nor the sender accepts any responsibility for viruses and that it is your responsibility to scan any attachments.&nbsp; No contractual obligations may be established on behalf of Efuse Solutions by means of email communication.</span><span style='mso-fareast-language:EN-GB'><o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>