[Freeswitch-users] 2 CS_DESTROY events without trying the second one in the bridge
Muhammad Naseer Bhatti
nbhatti at gmail.com
Sun Nov 27 13:21:48 MSK 2016
I have a simple Dialplan with two gateways to try,
<condition field='destination_number' expression='$'>
<action application='set' data='hangup_after_bridge=true'/>
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="disable_hold=true"/>
<action application="set" data="map_type=pbx"/>
<action application="set" data="map_id=10"/>
<action application="set" data="state=NC"/>
<action application="set" data="npa=910"/>
<action application="set"
data="export_vars=map_type,map_id,state,npa,dispatcher_ip"/>
<action application="set" data="import=dispatcher_ip"/>
<action application="set" data="process_cdr=b_only"/>
<action application="set" data="bypass_media=true"/>
<action application="limit_execute" data="hash default 5.9.50.206:5060
3 bridge [dispatcher_ip=5.9.50.206]sofia/external/92301 at 5.9.50.206:5060
|[dispatcher_ip=10.211.55.26]sofia/external/92301 at 10.211.55.26:15080"/>
</condition>
and I have tried to bridge the same with 2 lines of execute with
hangup_after_bridge set to true.
<action application="limit_execute" data="hiredis default
5.9.50.206:5060 3 bridge [dispatcher_ip=5.9.50.206]sofia/external/
92301 at 5.9.50.206:5060"/>
<action application="limit_execute" data="hiredis default
10.211.55.26:15080 1 bridge
[dispatcher_ip=10.211.55.26]sofia/external/92301 at 10.211.55.26:15080”/>
For testing, the first IP in the bridge is not reachable, so I cancel the
call after a few seconds.
2016-11-26 12:56:37.368968 [NOTICE] sofia.c:8234 Hangup sofia/external/
91000 at 10.211.55.12 [CS_EXECUTE] [ORIGINATOR_CANCEL]
which is fine, but the CS_DESTROY event is generated twice. Pastebin @
https://pastebin.freeswitch.org/view/707d6998
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. https://pastebin.freeswitch.org/view/0fd51948 Not able
to figure out what’s going on. Already filed a Jira FS-9774 just in case.
--
Sent with Airmail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20161127/5d21f97c/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list