<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Just to mention: The patch was
developed by Christian Berger from our client Foncloud. Thank you
Christian!<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Best regards</div>
<div class="moz-cite-prefix">Peter</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Am 21.10.21 um 17:20 schrieb Peter
Steinbach:<br>
</div>
<blockquote type="cite"
cite="mid:26f9382e-1c6c-6da0-0b49-3db8633668c2@telefaks.de">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Hello,</p>
<p><br>
</p>
<p>this is a long lasting issue I firstly posted in 2017 and
lastly saw in 2019 in this thread, and I am happy to announce,
that we have found a solution for this.</p>
<p>Here is the patch, which works pretty well in our environment<br>
</p>
<p><tt>===================================================================================================<br>
</tt></p>
<p><tt>--- freeswitch_orig/src/switch_ivr_originate.c
2021-10-20 12:51:04.863328041 +0200<br>
+++ freeswitch/src/switch_ivr_originate.c 2021-10-20
12:54:15.764616280 +0200<br>
@@ -1789,7 +1789,13 @@<br>
if (cancel_cause && *cancel_cause > 0) {<br>
handles[i].cancel_cause = *cancel_cause;<br>
} else {<br>
- handles[i].cancel_cause = SWITCH_CAUSE_LOSE_RACE;<br>
+ if ((hp!=NULL) &&
(hp->cause==SWITCH_CAUSE_SUCCESS)) { //Was this call taken
by another destination?<br>
+ //Yes, the race was lost<br>
+ handles[i].cancel_cause =
SWITCH_CAUSE_LOSE_RACE;<br>
+ } else {<br>
+ //No, something else happened, probably
Originator Cancel <br>
+ handles[i].cancel_cause =
SWITCH_CAUSE_ORIGINATOR_CANCEL;<br>
+ }<br>
}<br>
}<br>
</tt><tt>===================================================================================================</tt></p>
<p><br>
</p>
<p>Can someone retest this and check this in?</p>
<br>
<pre class="moz-signature" cols="72">--
With kind regards
Peter Steinbach
Telefaks Services GmbH
<a class="moz-txt-link-freetext" href="mailto:lists" moz-do-not-send="true">mailto:lists</a> (att) telefaks.de
Internet: <a class="moz-txt-link-abbreviated" href="http://www.telefaks.de" moz-do-not-send="true">www.telefaks.de</a>
</pre>
<div class="moz-cite-prefix">Am 22.05.19 um 21:14 schrieb Jai
Rangi:<br>
</div>
<blockquote type="cite"
cite="mid:CAPfjz3hJNH4rhbeMb3LkboN2NC3VQoW890cVr8i4UJbdRTjgkg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<div dir="ltr">
<div>All,</div>
<div>Running into a small issue with group calling, when the
original caller hang up, phones dont show that call as
missed call, cause of wrong reason code from freeswitch. <br>
</div>
<div>Scenario: <br>
</div>
<div>
<ul>
<li>Caller -> FS (Groupcall) to 101 and 102</li>
<li>Phones ring</li>
<li>Caller hangup</li>
<li>Phones should see missed calls, <br>
</li>
<li>But free-switch send cancel with Reason:
SIP;cause=200;text="Call completed elsewhere", where is
should send Reason:
SIP;cause=487;text="ORIGINATOR_CANCEL".<br>
</li>
</ul>
</div>
<div>Here is what my bridge data. <br>
</div>
<div><br>
</div>
<div dir="ltr">bridge(<all_threads=true,absolute_codec_string=PCMU,PCMA,G729,group_confirm_file=playback
/usr/local/freeswitch/sound/ivr/1443458342.wav,group_confirm_key=exec>{sip_cid_type=rpid,ignore_early_media=true,originate_timeout=30}[leg_timeout=20
]user/101@192.168.5.50:_:[ignore_early_media=true,leg_timeout=20 ]user/<a
href="mailto:102@192.168.5.50" target="_blank"
moz-do-not-send="true">102@192.168.5.50</a>)</div>
<div dir="ltr"><br>
</div>
<div>If I send</div>
<div>bridge(<all_threads=true,absolute_codec_string=PCMU,PCMA,G729,group_confirm_file=playback
/usr/local/freeswitch/sound/ivr/1443458342.wav,group_confirm_key=exec>{sip_cid_type=rpid,ignore_early_media=true,originate_timeout=30}[leg_timeout=20
]user/<a href="mailto:101@192.168.5.50" target="_blank"
moz-do-not-send="true">101@192.168.5.50</a></div>
<div><br>
</div>
<div>Everything works fine. <br>
</div>
<div>I see some old posts but no resolution. <br>
</div>
<div>Freeswitch version on Debian 8.9 <br>
</div>
<div>FreeSWITCH (Version 1.6.16 git 3da6bd0 2017-04-07
16:49:13Z 64bit)</div>
<div><br>
</div>
<div>Any idea or suggestion for workaround? </div>
<div><br>
</div>
<div>Jai <br>
</div>
<div><br>
</div>
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><font color="#888888">
<div> <span></span><br>
</div>
</font><br>
<br>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire <a class="moz-txt-link-freetext" href="https://signalwire.com" moz-do-not-send="true">https://signalwire.com</a>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time <a class="moz-txt-link-freetext" href="https://signalwire.community" moz-do-not-send="true">https://signalwire.community</a>
Professional FreeSWITCH Services
<a class="moz-txt-link-abbreviated" href="mailto:sales@freeswitch.com" moz-do-not-send="true">sales@freeswitch.com</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.com" moz-do-not-send="true">https://freeswitch.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="https://freeswitch.com/oss" moz-do-not-send="true">https://freeswitch.com/oss</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.org/confluence" moz-do-not-send="true">https://freeswitch.org/confluence</a>
<a class="moz-txt-link-freetext" href="https://cluecon.com" moz-do-not-send="true">https://cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org" moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" moz-do-not-send="true">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.com" moz-do-not-send="true">https://freeswitch.com</a></pre>
</blockquote>
</blockquote>
</body>
</html>