<div dir="ltr">Thank you Peter and Christian. <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 22, 2021 at 7:19 AM Peter Steinbach <<a href="mailto:lists@telefaks.de">lists@telefaks.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <div>Just to mention: The patch was
      developed by Christian Berger from our client Foncloud. Thank you
      Christian!<br>
    </div>
    <div><br>
    </div>
    <div>Best regards</div>
    <div>Peter</div>
    <div><br>
    </div>
    <div><br>
    </div>
    <div>Am 21.10.21 um 17:20 schrieb Peter
      Steinbach:<br>
    </div>
    <blockquote type="cite">
      
      <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 cols="72">-- 
With kind regards
Peter Steinbach 

Telefaks Services GmbH
<a href="mailto:lists" target="_blank">mailto:lists</a> (att) <a href="http://telefaks.de" target="_blank">telefaks.de</a>
Internet: <a href="http://www.telefaks.de" target="_blank">www.telefaks.de</a>

</pre>
      <div>Am 22.05.19 um 21:14 schrieb Jai
        Rangi:<br>
      </div>
      <blockquote type="cite">
        
        <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">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">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">
              <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></fieldset>
        <pre>_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" target="_blank">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 href="https://signalwire.community" target="_blank">https://signalwire.community</a>

Professional FreeSWITCH Services
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a>
<a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a>

Official FreeSWITCH Sites
<a href="https://freeswitch.com/oss" target="_blank">https://freeswitch.com/oss</a>
<a href="https://freeswitch.org/confluence" target="_blank">https://freeswitch.org/confluence</a>
<a href="https://cluecon.com" target="_blank">https://cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a></pre>
      </blockquote>
    </blockquote>
  </div>

_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>