<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">I have a simple Dialplan with two gateways to try,</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><div id="bloop_customfont" style="margin:0px">    &lt;condition field=&#39;destination_number&#39; expression=&#39;$&#39;&gt;</div><div id="bloop_customfont" style="margin:0px">     &lt;action application=&#39;set&#39; data=&#39;hangup_after_bridge=true&#39;/&gt;</div><div id="bloop_customfont" style="margin:0px">     &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;</div><div id="bloop_customfont" style="margin:0px">     &lt;action application=&quot;set&quot; data=&quot;disable_hold=true&quot;/&gt;</div><div id="bloop_customfont" style="margin:0px">     &lt;action application=&quot;set&quot; data=&quot;map_type=pbx&quot;/&gt;</div><div id="bloop_customfont" style="margin:0px">     &lt;action application=&quot;set&quot; data=&quot;map_id=10&quot;/&gt;</div><div id="bloop_customfont" style="margin:0px">     &lt;action application=&quot;set&quot; data=&quot;state=NC&quot;/&gt;</div><div id="bloop_customfont" style="margin:0px">     &lt;action application=&quot;set&quot; data=&quot;npa=910&quot;/&gt;</div><div id="bloop_customfont" style="margin:0px">     &lt;action application=&quot;set&quot; data=&quot;export_vars=map_type,map_id,state,npa,dispatcher_ip&quot;/&gt;</div><div id="bloop_customfont" style="margin:0px">     &lt;action application=&quot;set&quot; data=&quot;import=dispatcher_ip&quot;/&gt;</div><div id="bloop_customfont" style="margin:0px">     &lt;action application=&quot;set&quot; data=&quot;process_cdr=b_only&quot;/&gt;</div><div id="bloop_customfont" style="margin:0px">     &lt;action application=&quot;set&quot; data=&quot;bypass_media=true&quot;/&gt;</div><div id="bloop_customfont" style="margin:0px">     &lt;action application=&quot;limit_execute&quot; data=&quot;hash default <a href="http://5.9.50.206:5060">5.9.50.206:5060</a> 3 bridge [dispatcher_ip=5.9.50.206]sofia/external/92301@5.9.50.206:5060|[dispatcher_ip=10.211.55.26]sofia/external/<a href="http://92301@10.211.55.26:15080">92301@10.211.55.26:15080</a>&quot;/&gt;</div><div id="bloop_customfont" style="margin:0px">    &lt;/condition&gt;</div><div id="bloop_customfont" style="margin:0px"><br></div><div id="bloop_customfont" style="margin:0px">and I have tried to bridge the same with 2 lines of execute with hangup_after_bridge set to true.</div></div><div><br></div><div><div>     &lt;action application=&quot;limit_execute&quot; data=&quot;hiredis default <a href="http://5.9.50.206:5060">5.9.50.206:5060</a> 3 bridge [dispatcher_ip=5.9.50.206]sofia/external/<a href="http://92301@5.9.50.206:5060">92301@5.9.50.206:5060</a>&quot;/&gt;</div><div>     &lt;action application=&quot;limit_execute&quot; data=&quot;hiredis default <a href="http://10.211.55.26:15080">10.211.55.26:15080</a> 1 bridge [dispatcher_ip=10.211.55.26]sofia/external/92301@10.211.55.26:15080”/&gt;</div></div><div><br></div><div><br></div><div>For testing, the first IP in the bridge is not reachable, so I cancel the call after a few seconds. </div><div><br></div><div>2016-11-26 12:56:37.368968 [NOTICE] sofia.c:8234 Hangup sofia/external/<a href="mailto:91000@10.211.55.12">91000@10.211.55.12</a> [CS_EXECUTE] [ORIGINATOR_CANCEL]</div><div><br></div><div>which is fine, but the CS_DESTROY event is generated twice. Pastebin @ <a href="https://pastebin.freeswitch.org/view/707d6998">https://pastebin.freeswitch.org/view/707d6998</a> </div><div><br></div><div>This is causing mod_cdr_pg_csv to generate 2 CS_DESTROY events instead of 1 but the second one without actually trying the call. Here is the PB for the while call itself. <a href="https://pastebin.freeswitch.org/view/0fd51948">https://pastebin.freeswitch.org/view/0fd51948</a> Not able to figure out what’s going on. Already filed a Jira FS-9774 just in case.</div><div><br></div><div><br></div><div id="bloop_sign_1480241273898233856" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-- <br><br>Sent with Airmail</div>
</div></body></html>