<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"> <condition field='destination_number' expression='$'></div><div id="bloop_customfont" style="margin:0px"> <action application='set' data='hangup_after_bridge=true'/></div><div id="bloop_customfont" style="margin:0px"> <action application="set" data="continue_on_fail=true"/></div><div id="bloop_customfont" style="margin:0px"> <action application="set" data="disable_hold=true"/></div><div id="bloop_customfont" style="margin:0px"> <action application="set" data="map_type=pbx"/></div><div id="bloop_customfont" style="margin:0px"> <action application="set" data="map_id=10"/></div><div id="bloop_customfont" style="margin:0px"> <action application="set" data="state=NC"/></div><div id="bloop_customfont" style="margin:0px"> <action application="set" data="npa=910"/></div><div id="bloop_customfont" style="margin:0px"> <action application="set" data="export_vars=map_type,map_id,state,npa,dispatcher_ip"/></div><div id="bloop_customfont" style="margin:0px"> <action application="set" data="import=dispatcher_ip"/></div><div id="bloop_customfont" style="margin:0px"> <action application="set" data="process_cdr=b_only"/></div><div id="bloop_customfont" style="margin:0px"> <action application="set" data="bypass_media=true"/></div><div id="bloop_customfont" style="margin:0px"> <action application="limit_execute" data="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>"/></div><div id="bloop_customfont" style="margin:0px"> </condition></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> <action application="limit_execute" data="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>"/></div><div> <action application="limit_execute" data="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”/></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>