<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Yes, that's the point</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Am 22.10.21 um 18:31 schrieb Gregor
      Nanger:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAC7ttFGHhsk9bwMLZ8S1n5JBex6c_RafaXXM4zObAkdgYSt0_w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">Is this an issue that we do not see missed call on
        the phone although call wasn't taken? And yes, we are using
        enterprise originate?
        <div dir="auto"><br>
        </div>
        <div dir="auto">Br, Gregor</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, 21 Oct 2021, 17:21
          Peter Steinbach, <<a href="mailto:lists@telefaks.de"
            moz-do-not-send="true">lists@telefaks.de</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div>
            <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" rel="noreferrer" moz-do-not-send="true">mailto:lists</a> (att) <a href="http://telefaks.de" target="_blank" rel="noreferrer" moz-do-not-send="true">telefaks.de</a>
Internet: <a href="http://www.telefaks.de" target="_blank" rel="noreferrer" moz-do-not-send="true">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"
                    rel="noreferrer" 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" rel="noreferrer"
                    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" 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></fieldset>
              <pre>_________________________________________________________________________

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

Professional FreeSWITCH Services
<a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer" moz-do-not-send="true">sales@freeswitch.com</a>
<a href="https://freeswitch.com" target="_blank" rel="noreferrer" moz-do-not-send="true">https://freeswitch.com</a>

Official FreeSWITCH Sites
<a href="https://freeswitch.com/oss" target="_blank" rel="noreferrer" moz-do-not-send="true">https://freeswitch.com/oss</a>
<a href="https://freeswitch.org/confluence" target="_blank" rel="noreferrer" moz-do-not-send="true">https://freeswitch.org/confluence</a>
<a href="https://cluecon.com" target="_blank" rel="noreferrer" moz-do-not-send="true">https://cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer" moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" rel="noreferrer" moz-do-not-send="true">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="noreferrer" moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="https://freeswitch.com" target="_blank" rel="noreferrer" moz-do-not-send="true">https://freeswitch.com</a></pre>
            </blockquote>
          </div>
_________________________________________________________________________<br>
          <br>
          The FreeSWITCH project is sponsored by SignalWire <a
            href="https://signalwire.com" rel="noreferrer noreferrer"
            target="_blank" moz-do-not-send="true">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
            noreferrer" target="_blank" moz-do-not-send="true">https://signalwire.community</a><br>
          <br>
          Professional FreeSWITCH Services<br>
          <a href="mailto:sales@freeswitch.com" target="_blank"
            rel="noreferrer" moz-do-not-send="true">sales@freeswitch.com</a><br>
          <a href="https://freeswitch.com" rel="noreferrer noreferrer"
            target="_blank" moz-do-not-send="true">https://freeswitch.com</a><br>
          <br>
          Official FreeSWITCH Sites<br>
          <a href="https://freeswitch.com/oss" rel="noreferrer
            noreferrer" target="_blank" moz-do-not-send="true">https://freeswitch.com/oss</a><br>
          <a href="https://freeswitch.org/confluence" rel="noreferrer
            noreferrer" target="_blank" moz-do-not-send="true">https://freeswitch.org/confluence</a><br>
          <a href="https://cluecon.com" rel="noreferrer noreferrer"
            target="_blank" moz-do-not-send="true">https://cluecon.com</a><br>
          <br>
          FreeSWITCH-users mailing list<br>
          <a href="mailto:FreeSWITCH-users@lists.freeswitch.org"
            target="_blank" rel="noreferrer" moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a><br>
          <a
            href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
            rel="noreferrer noreferrer" target="_blank"
            moz-do-not-send="true">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
          UNSUBSCRIBE:<a
            href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
            rel="noreferrer noreferrer" target="_blank"
            moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
          <a href="https://freeswitch.com" rel="noreferrer noreferrer"
            target="_blank" moz-do-not-send="true">https://freeswitch.com</a></blockquote>
      </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">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">https://signalwire.community</a>

Professional FreeSWITCH Services
<a class="moz-txt-link-abbreviated" href="mailto:sales@freeswitch.com">sales@freeswitch.com</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.com">https://freeswitch.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="https://freeswitch.com/oss">https://freeswitch.com/oss</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.org/confluence">https://freeswitch.org/confluence</a>
<a class="moz-txt-link-freetext" href="https://cluecon.com">https://cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">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">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.com">https://freeswitch.com</a></pre>
    </blockquote>
  </body>
</html>