<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    we have some Problems with the right signalling of missed calls when
    calling multiple phones in parallel<br>
    <br>
    Here's the scenario:<br>
    Phone no 49 is calling a group with 2170 and 3275 with the following
    dialstring<br>
    <br>
    <tt><action application="bridge"
      data="{default_language=de,ignore_early_media=true,global_to_originate_</tt><tt>1=true,caller_cc=49,callee_cc=49,routing_flags=INT-ONSYSTEM-RELIA0-QUAL0-T38NOLAST-CALLG-CALLG5003-UUID,call_timeout=60,originate_timeout=60,origination_caller_id_number=49,effective_caller_id_number=49,caller_uuid=7f49c581-cf47-429d-85a0-365d00ff031c,origination_uuid=59eee5e0-c0bc-0135-7dc9-00505600a1a5,sip_invite_domain=flex.mydomain.de,<a class="moz-txt-link-abbreviated" href="mailto:customer_id=261}user/2170@flex.mydomain.de:_">customer_id=261}user/2170@flex.mydomain.de:_</a>:{default_language=de,ignore_early_media=true,global_to_originate_1=true,caller_cc=49,callee_cc=49,routing_flags=INT-ONSYSTEM-RELIA0-QUAL0-T38NOLAST-CALLG-CALLG5003-UUID,call_timeout=60,originate_timeout=60,origination_caller_id_number=49,effective_caller_id_number=49,caller_uuid=7f49c581-cf47-429d-85a0-365d00ff031c,origination_uuid=59f07af0-c0bc-0135-7dca-00505600a1a5,sip_invite_domain=flex.mydomain.de,<a class="moz
 -txt-link
-abbreviated" href="mailto:customer_id=261}user/3275@flex.mydomain.de">customer_id=261}user/3275@flex.mydomain.de</a>"
      /></tt><br>
    <br>
    Destination dialstrings are seperated by ":_:" ("Enterprise
    Origination"). We use curly brackets instead of "<" as we
    sometimes have to insert asserted identy tags into the dialstring.<br>
    <br>
    We checked 3 versions of Freeswitch for this<br>
    <ul>
      <li>Version  Feb 2016 shows missed calls on both phones. Even if
        one phone answers, the other phone one still shows a missed call
        (reason for upgrading to newer Freeswitch)</li>
      <li>Version  Aug 2017 never shows missed call, see logs and hangup
        message below<br>
      </li>
      <li>Version  10/Dec 2017(yesterday) never shows missed call, as
        above<br>
      </li>
    </ul>
    So for the 2 never Freeswitch Versions, here are the logs at hangup<br>
    <tt>2017-12-11 17:07:46.022450 [DEBUG] sofia.c:7283 Channel
      <a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/49@flex.mydomain.de:5060">sofia/internal/49@flex.mydomain.de:5060</a> entering state
      [terminated][487]</tt><tt><br>
    </tt><tt>2017-12-11 17:07:46.022450 [NOTICE] sofia.c:8474 Hangup
      sofia/internal/<b>49</b>@flex.mydomain.de:5060 [CS_EXECUTE] <b>[ORIGINATOR_CANCEL]</b></tt><tt><br>
    </tt><tt>2017-12-11 17:07:46.042331 [NOTICE]
      switch_ivr_originate.c:3627 Hangup sofia/internal/<b>2170</b>@94.xx.xxx.xx:42170
      [CS_CONSUME_MEDIA] <b>[LOSE_RACE]</b></tt><tt><br>
    </tt><tt>2017-12-11 17:07:46.042331 [DEBUG]
      switch_ivr_originate.c:3852 Originate Cancelled by originator
      termination Cause: 487 [ORIGINATOR_CANCEL]</tt><tt><br>
    </tt><tt>2017-12-11 17:07:46.042331 [NOTICE]
      switch_ivr_originate.c:2866 Cannot create outgoing channel of type
      [user] cause: [LOSE_RACE]</tt><tt><br>
    </tt><tt>2017-12-11 17:07:46.042331 [DEBUG]
      switch_ivr_originate.c:3863 Originate Resulted in Error Cause: 502
      [LOSE_RACE]</tt><tt><br>
    </tt><tt>2017-12-11 17:07:46.042331 [DEBUG]
      switch_core_state_machine.c:584
      (<a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/2170@94.xx.xxx.xx:42170">sofia/internal/2170@94.xx.xxx.xx:42170</a>) Running State Change
      CS_HANGUP (Cur 3 Tot 22)</tt><tt><br>
    </tt><tt>2017-12-11 17:07:46.042331 [DEBUG]
      switch_core_state_machine.c:850
      (<a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/2170@94.xx.xxx.xx:42170">sofia/internal/2170@94.xx.xxx.xx:42170</a>) Callstate Change RINGING
      -> HANGUP</tt><tt><br>
    </tt><tt>2017-12-11 17:07:46.042331 [DEBUG]
      switch_core_state_machine.c:852
      (<a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/2170@94.xx.xxx.xx:42170">sofia/internal/2170@94.xx.xxx.xx:42170</a>) State HANGUP</tt><tt><br>
    </tt><tt>2017-12-11 17:07:46.042331 [DEBUG] mod_sofia.c:449 Channel
      <a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/2170@94.xx.xxx.xx:42170">sofia/internal/2170@94.xx.xxx.xx:42170</a> hanging up, cause:
      LOSE_RACE</tt><tt><br>
    </tt><tt>2017-12-11 17:07:46.042331 [NOTICE]
      switch_ivr_originate.c:3627 Hangup sofia/internal/<b>3275</b>@94.xx.xxx.xx:43275
      [CS_CONSUME_MEDIA] [<b>LOSE_RACE</b>]</tt><tt><br>
    </tt><tt>2017-12-11 17:07:46.042331 [DEBUG]
      switch_ivr_originate.c:3852 Originate Cancelled by originator
      termination Cause: 487 [ORIGINATOR_CANCEL]</tt><tt><br>
    </tt><tt>2017-12-11 17:07:46.042331 [NOTICE]
      switch_ivr_originate.c:2866 Cannot create outgoing channel of type
      [user] cause: [LOSE_RACE]</tt><tt><br>
    </tt><tt>2017-12-11 17:07:46.042331 [DEBUG]
      switch_ivr_originate.c:3863 Originate Resulted in Error Cause: 502
      [LOSE_RACE]</tt><tt><br>
    </tt><br>
    Here is the Cancel message for one of the called phones:<br>
    <tt>U 2017/12/11 17:07:46.045120 144.xx.xxx.xx:5060 ->
      94.xx.xxx.xx:42170</tt><tt><br>
    </tt><tt><b>CANCEL sip:2170</b>@94.xx.xxx.xx:42170 SIP/2.0.</tt><tt><br>
    </tt><tt>Via: SIP/2.0/UDP
      144.xx.xxx.xx;rport;branch=z9hG4bK07r3ce94cvjpp.</tt><tt><br>
    </tt><tt>Max-Forwards: 70.</tt><tt><br>
    </tt><tt>From: "Test"
      <a class="moz-txt-link-rfc2396E" href="mailto:sip:49@flex.mydomain.de"><sip:49@flex.mydomain.de></a>;tag=mQS1eFDpp1peS.</tt><tt><br>
    </tt><tt>To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:2170@94.xx.xxx.xx:42170"><sip:2170@94.xx.xxx.xx:42170></a>.</tt><tt><br>
    </tt><tt>Call-ID: 4238b5a7-5930-1236-b2ab-00505600a1a5.</tt><tt><br>
    </tt><tt>CSeq: 116168167 CANCEL.</tt><tt><br>
    </tt><tt><b>Reason: SIP;cause=200;text="Call completed elsewhere"</b>.</tt><tt><br>
    </tt><tt>Content-Length: 0.</tt><tt><br>
      <br>
    </tt>Any hints why this happens, or anyone has this scenario
    working?<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
With kind regards
Peter Steinbach 

Telefaks Services GmbH
<a class="moz-txt-link-freetext" href="mailto:lists">mailto:lists</a> (att) telefaks.de
Internet: <a class="moz-txt-link-abbreviated" href="http://www.telefaks.de">www.telefaks.de</a>

</pre>
  </body>
</html>