<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-text-html" lang="x-western"> Hello all,<br>
      <br>
      I have been trying forever to get this Cisco 7970 to work properly
      with our freeswitch (latest git).&nbsp; The phone will register fine,
      and it will make outbound calls perfectly.&nbsp; The problem is with
      inbound calls to this phone, where FS tries to contact it on the
      wrong UDP port.&nbsp; The entire system here is on a local lan, and NAT
      has been disabled via --nonat cmd line FS parameter.<br>
      <br>
      Here is what it looks like when registered:<br>
      <br>
      sofia status profile internal reg<br>
      <br>
      <tt>Call-ID:&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <a class="moz-txt-link-abbreviated"
          href="mailto:00181844-c24f0002-25f0dff2-c470b5a7@192.168.2.59">00181844-c24f0002-25f0dff2-c470b5a7@192.168.2.59</a><br>
        User:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <a class="moz-txt-link-abbreviated"
          href="mailto:15@x.y.com">15@x.y.com</a><br>
        Contact:&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "user" <a class="moz-txt-link-rfc2396E"
href="sip:15@192.168.2.59:5060;transport=udp;fs_nat=yes;fs_path=sip%3A15%40192.168.2.59%3A49320%3Btransport%3Dudp">&lt;sip:15@192.168.2.59:5060;transport=udp;fs_nat=yes;fs_path=sip%3A15%40192.168.2.59%3A49320%3Btransport%3Dudp&gt;</a><br>
        Agent:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Cisco-CP7970G/8.5.2<br>
        Status:&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Registered(UDP-NAT)(unknown) EXP(2011-12-22
        21:31:47) EXPSECS(724)<br>
        Host:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; x.y.com<br>
        IP:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 192.168.2.59<br>
        Port:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 49165<br>
        Auth-User:&nbsp; &nbsp;&nbsp;&nbsp; 15<br>
        Auth-Realm: &nbsp;&nbsp;&nbsp; x.y.com<br>
      </tt><br>
      <br>
      FS tries to contact the phone using the fs_path, which is getting
      set incorrectly.&nbsp; I'm not why FS thinks the fs_path should be
      different, as it appears the Cisco is sending proper Contact
      header in the sip requests/responses.<br>
      Also, we have a bunch of ATA's on the same lan which all work fine
      (meaning the fs_path is correct).&nbsp; I tried chaning the
      NDLB-force-rport param in the internal context, but didn't seems
      to change anything.<br>
      Here are the SIP traces which show what's happening.&nbsp; Any ideas of
      what's going on would be appreciated.<tt> <br>
        <br>
        Thanks,<br>
        Matt<br>
        <br>
        192.168.2.59 is the cisco phone.&nbsp;&nbsp; <br>
        192.168.2.1 is FS (listening on port 5070).<br>
        <br>
        recv 713 bytes from udp/[192.168.2.59]:49320 at 02:28:01.712338:<br>
        &nbsp;&nbsp;
        ------------------------------------------------------------------------<br>
        &nbsp;&nbsp; REGISTER <a class="moz-txt-link-freetext" href="sip:x.y.com">sip:x.y.com</a>
        SIP/2.0<br>
        &nbsp;&nbsp; Via: SIP/2.0/UDP 192.168.2.59:5060;branch=z9hG4bKd9e43394<br>
        &nbsp;&nbsp; From: <a class="moz-txt-link-rfc2396E" href="sip:15@x.y.com">&lt;sip:15@x.y.com&gt;</a>;tag=00181844c24f0002a0bb4968-7b2b7dd4<br>
        &nbsp;&nbsp; To: <a class="moz-txt-link-rfc2396E" href="sip:15@x.y.com">&lt;sip:15@x.y.com&gt;</a><br>
        &nbsp;&nbsp; Call-ID: <a class="moz-txt-link-abbreviated"
          href="mailto:00181844-c24f0002-eb21e8a8-77681214@192.168.2.59">00181844-c24f0002-eb21e8a8-77681214@192.168.2.59</a><br>
        &nbsp;&nbsp; Max-Forwards: 70<br>
        &nbsp;&nbsp; Date: Fri, 23 Dec 2011 02:28:00 GMT<br>
        &nbsp;&nbsp; CSeq: 101 REGISTER<br>
        &nbsp;&nbsp; User-Agent: Cisco-CP7970G/8.5.2<br>
        &nbsp;&nbsp; Contact: <a class="moz-txt-link-rfc2396E"
          href="sip:15@192.168.2.59:5060;transport=udp">&lt;sip:15@192.168.2.59:5060;transport=udp&gt;</a>;+sip.instance="&lt;urn:uuid:00000000-0000-0000-0000-00181844c24f&gt;";+u.sip!model.ccm.cisco.com="30006"<br>
        &nbsp;&nbsp; Supported: (null),X-cisco-xsi-7.0.1<br>
        &nbsp;&nbsp; Content-Length: 0<br>
        &nbsp;&nbsp; Reason: SIP;cause=200;text="cisco-alarm:20
        Name=SEP00181844C24F Load=SIP70.8-5-2S Last=phone-keypad"<br>
        &nbsp;&nbsp; Expires: 3600</tt><br>
      <br>
      <tt>send 689 bytes to udp/[192.168.2.59]:5060 at 02:28:01.715057:<br>
        &nbsp;&nbsp;
        ------------------------------------------------------------------------<br>
        &nbsp;&nbsp; SIP/2.0 401 Unauthorized<br>
        &nbsp;&nbsp; Via: SIP/2.0/UDP 192.168.2.59:5060;branch=z9hG4bKd9e43394<br>
        &nbsp;&nbsp; From: <a class="moz-txt-link-rfc2396E" href="sip:15@x.y.com">&lt;sip:15@x.y.com&gt;</a>;tag=00181844c24f0002a0bb4968-7b2b7dd4<br>
        &nbsp;&nbsp; To: <a class="moz-txt-link-rfc2396E" href="sip:15@x.y.com">&lt;sip:15@x.y.com&gt;</a>;tag=Qv2N52egZ2teH<br>
        &nbsp;&nbsp; Call-ID: <a class="moz-txt-link-abbreviated"
          href="mailto:00181844-c24f0002-eb21e8a8-77681214@192.168.2.59">00181844-c24f0002-eb21e8a8-77681214@192.168.2.59</a><br>
        &nbsp;&nbsp; CSeq: 101 REGISTER<br>
        &nbsp;&nbsp; User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-8059cdc
        2011-12-22 14-03-32 -0600<br>
        &nbsp;&nbsp; Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE,
        INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
        &nbsp;&nbsp; Supported: timer, precondition, path, replaces<br>
        &nbsp;&nbsp; WWW-Authenticate: Digest realm="x.y.com",
        nonce="fae142ab-8b00-4ac7-89d7-04955e8714f6", algorithm=MD5,
        qop="auth"<br>
        &nbsp;&nbsp; Content-Length: 0</tt><br>
      <br>
      <tt>recv 958 bytes from udp/[192.168.2.59]:49320 at
        02:28:01.725802:<br>
        &nbsp;&nbsp;
        ------------------------------------------------------------------------<br>
        &nbsp;&nbsp; REGISTER <a class="moz-txt-link-freetext" href="sip:x.y.com">sip:x.y.com</a>
        SIP/2.0<br>
        &nbsp;&nbsp; Via: SIP/2.0/UDP 192.168.2.59:5060;branch=z9hG4bK18d5a468<br>
        &nbsp;&nbsp; From: <a class="moz-txt-link-rfc2396E" href="sip:15@x.y.com">&lt;sip:15@x.y.com&gt;</a>;tag=00181844c24f0002a0bb4968-7b2b7dd4<br>
        &nbsp;&nbsp; To: <a class="moz-txt-link-rfc2396E" href="sip:15@x.y.com">&lt;sip:15@x.y.com&gt;</a><br>
        &nbsp;&nbsp; Call-ID: <a class="moz-txt-link-abbreviated"
          href="mailto:00181844-c24f0002-eb21e8a8-77681214@192.168.2.59">00181844-c24f0002-eb21e8a8-77681214@192.168.2.59</a><br>
        &nbsp;&nbsp; Max-Forwards: 70<br>
        &nbsp;&nbsp; Date: Fri, 23 Dec 2011 02:28:00 GMT<br>
        &nbsp;&nbsp; CSeq: 102 REGISTER<br>
        &nbsp;&nbsp; User-Agent: Cisco-CP7970G/8.5.2<br>
        &nbsp;&nbsp; Contact: <a class="moz-txt-link-rfc2396E"
          href="sip:15@192.168.2.59:5060;transport=udp">&lt;sip:15@192.168.2.59:5060;transport=udp&gt;</a>;+sip.instance="&lt;urn:uuid:00000000-0000-0000-0000-00181844c24f&gt;";+u.sip!model.ccm.cisco.com="30006"<br>
        &nbsp;&nbsp; Authorization: Digest username="15",realm="x.y.com",uri=<a
          class="moz-txt-link-rfc2396E" href="sip:x.y.com">"sip:x.y.com"</a>,response="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",nonce="fae142ab-8b00-4ac7-89d7-04955e8714f6",cnonce="4f2a64d4",qop=auth,nc=00000001,algorithm=MD5<br>
        &nbsp;&nbsp; Supported: (null),X-cisco-xsi-7.0.1<br>
        &nbsp;&nbsp; Content-Length: 0<br>
        &nbsp;&nbsp; Reason: SIP;cause=200;text="cisco-alarm:20
        Name=SEP00181844C24F Load=SIP70.8-5-2S Last=phone-keypad"<br>
        &nbsp;&nbsp; Expires: 3600<br>
      </tt><br>
      <tt>send 649 bytes to udp/[192.168.2.59]:5060 at 02:28:01.737460:<br>
        &nbsp;&nbsp;
        ------------------------------------------------------------------------<br>
        &nbsp;&nbsp; SIP/2.0 200 OK<br>
        &nbsp;&nbsp; Via: SIP/2.0/UDP 192.168.2.59:5060;branch=z9hG4bK18d5a468<br>
        &nbsp;&nbsp; From: <a class="moz-txt-link-rfc2396E" href="sip:15@x.y.com">&lt;sip:15@x.y.com&gt;</a>;tag=00181844c24f0002a0bb4968-7b2b7dd4<br>
        &nbsp;&nbsp; To: <a class="moz-txt-link-rfc2396E" href="sip:15@x.y.com">&lt;sip:15@x.y.com&gt;</a>;tag=SeN78rgQSm7Kr<br>
        &nbsp;&nbsp; Call-ID: <a class="moz-txt-link-abbreviated"
          href="mailto:00181844-c24f0002-eb21e8a8-77681214@192.168.2.59">00181844-c24f0002-eb21e8a8-77681214@192.168.2.59</a><br>
        &nbsp;&nbsp; CSeq: 102 REGISTER<br>
        &nbsp;&nbsp; Contact: <a class="moz-txt-link-rfc2396E"
          href="sip:15@192.168.2.59:5060;transport=udp">&lt;sip:15@192.168.2.59:5060;transport=udp&gt;</a>;expires=3600<br>
        &nbsp;&nbsp; Date: Fri, 23 Dec 2011 02:28:01 GMT<br>
        &nbsp;&nbsp; User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-8059cdc
        2011-12-22 14-03-32 -0600<br>
        &nbsp;&nbsp; Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE,
        INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
        &nbsp;&nbsp; Supported: timer, precondition, path, replaces<br>
        &nbsp;&nbsp; Content-Length: 0<br>
      </tt><br>
      <b>--------------- OK, so far so good.. phone is now
        registered..&nbsp;&nbsp; Now look how FS tries to contact it.. sending
        notify's here:&nbsp; Note the port it tries to use, 49320 in this
        case.</b><br>
      <br>
      <tt>send 1034 bytes to udp/[192.168.2.59]:49320 at
        02:28:01.837149:<br>
        &nbsp;&nbsp;
        ------------------------------------------------------------------------<br>
        &nbsp;&nbsp; NOTIFY <a class="moz-txt-link-freetext"
href="sip:15@192.168.2.59:5060;transport=udp;fs_nat=yes;fs_path=sip:15%40192.168.2.59:49320%3Btransport%3Dudp">sip:15@192.168.2.59:5060;transport=udp;fs_nat=yes;fs_path=sip:15%40192.168.2.59:49320%3Btransport%3Dudp</a>
        SIP/2.0<br>
        &nbsp;&nbsp; Via: SIP/2.0/UDP
        192.168.2.1:5070;rport;branch=z9hG4bKv92r0r53rQKNa<br>
        &nbsp;&nbsp; Route: <a class="moz-txt-link-rfc2396E"
          href="sip:15@192.168.2.59:49320">&lt;sip:15@192.168.2.59:49320&gt;</a>;transport=udp<br>
        &nbsp;&nbsp; Max-Forwards: 70<br>
        &nbsp;&nbsp; From: <a class="moz-txt-link-rfc2396E"
          href="sip:15@192.168.2.1">&lt;sip:15@192.168.2.1&gt;</a>;tag=U07rcFjyK6KSF<br>
        &nbsp;&nbsp; To: <a class="moz-txt-link-rfc2396E"
          href="sip:15@192.168.2.1">&lt;sip:15@192.168.2.1&gt;</a><br>
        &nbsp;&nbsp; Call-ID: 93e179d6-a7b0-122f-d396-5254003b348b<br>
        &nbsp;&nbsp; CSeq: 21967576 NOTIFY<br>
        &nbsp;&nbsp; Contact: <a class="moz-txt-link-rfc2396E"
          href="sip:mod_sofia@192.168.2.1:5070">&lt;sip:mod_sofia@192.168.2.1:5070&gt;</a><br>
        &nbsp;&nbsp; User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-8059cdc
        2011-12-22 14-03-32 -0600<br>
        &nbsp;&nbsp; Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE,
        INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
        &nbsp;&nbsp; Supported: timer, precondition, path, replaces<br>
        &nbsp;&nbsp; Event: message-summary<br>
        &nbsp;&nbsp; Allow-Events: talk, hold, presence, dialog, line-seize,
        call-info, sla, include-session-description, presence.winfo,
        message-summary, refer<br>
        &nbsp;&nbsp; Subscription-State: terminated;reason=timeout<br>
        &nbsp;&nbsp; Content-Type: application/simple-message-summary<br>
        &nbsp;&nbsp; Content-Length: 69<br>
        &nbsp;&nbsp; <br>
        &nbsp;&nbsp; Messages-Waiting: no<br>
        &nbsp;&nbsp; Message-Account: <a class="moz-txt-link-freetext"
          href="sip:15@x.y.com">sip:15@x.y.com</a></tt><br>
      <br>
      <b>The phone never responds, as FS is supposed to contact it on
        port 5060, but FS is trying to use the same port that phone sent
        is SIP messages on.&nbsp; Here is a sample INVITE:</b><br>
      <br>
      <tt>send 1229 bytes to udp/[192.168.2.59]:49320 at
        02:38:15.217775:<br>
        &nbsp;&nbsp;
        ------------------------------------------------------------------------<br>
        &nbsp;&nbsp; INVITE <a class="moz-txt-link-freetext"
          href="sip:15@192.168.2.59:5060;transport=udp">sip:15@192.168.2.59:5060;transport=udp</a>
        SIP/2.0<br>
        &nbsp;&nbsp; Via: SIP/2.0/UDP
        192.168.2.1:5070;rport;branch=z9hG4bK0D8U748HDUc0r<br>
        &nbsp;&nbsp; Route: <a class="moz-txt-link-rfc2396E"
          href="sip:15@192.168.2.59:49320">&lt;sip:15@192.168.2.59:49320&gt;</a>;transport=udp<br>
        &nbsp;&nbsp; Max-Forwards: 69<br>
        &nbsp;&nbsp; From: "x x x" <a class="moz-txt-link-rfc2396E"
          href="sip:11@192.168.2.1">&lt;sip:11@192.168.2.1&gt;</a>;tag=63X9ZrB5K886e<br>
        &nbsp;&nbsp; To: <a class="moz-txt-link-rfc2396E"
          href="sip:15@192.168.2.59:5060;transport=udp">&lt;sip:15@192.168.2.59:5060;transport=udp&gt;</a><br>
        &nbsp;&nbsp; Call-ID: 00e33727-a7b2-122f-d396-5254003b348b<br>
        &nbsp;&nbsp; CSeq: 21967883 INVITE<br>
        &nbsp;&nbsp; Contact: <a class="moz-txt-link-rfc2396E"
          href="sip:mod_sofia@192.168.2.1:5070">&lt;sip:mod_sofia@192.168.2.1:5070&gt;</a><br>
        &nbsp;&nbsp; User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-8059cdc
        2011-12-22 14-03-32 -0600<br>
        &nbsp;&nbsp; Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE,
        INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
        &nbsp;&nbsp; Supported: timer, precondition, path, replaces<br>
        &nbsp;&nbsp; Allow-Events: talk, hold, presence, dialog, line-seize,
        call-info, sla, include-session-description, presence.winfo,
        message-summary, refer<br>
        &nbsp;&nbsp; Content-Type: application/sdp<br>
        &nbsp;&nbsp; Content-Disposition: session<br>
        &nbsp;&nbsp; Content-Length: 204<br>
        &nbsp;&nbsp; X-FS-Support: update_display,send_info<br>
        &nbsp;&nbsp; Remote-Party-ID: "x x x" <a class="moz-txt-link-rfc2396E"
          href="sip:11@192.168.2.1">&lt;sip:11@192.168.2.1&gt;</a>;party=calling;screen=yes;privacy=off<br>
        &nbsp;&nbsp; <br>
        &nbsp;&nbsp; v=0<br>
        &nbsp;&nbsp; o=FreeSWITCH 1324545412 1324545413 IN IP4 192.168.2.1<br>
        &nbsp;&nbsp; s=FreeSWITCH<br>
        &nbsp;&nbsp; c=IN IP4 192.168.2.1<br>
        &nbsp;&nbsp; t=0 0<br>
        &nbsp;&nbsp; m=audio 62482 RTP/AVP 18 0 8 101 13<br>
        &nbsp;&nbsp; a=rtpmap:101 telephone-event/8000<br>
        &nbsp;&nbsp; a=fmtp:101 0-16<br>
        &nbsp;&nbsp; a=ptime:20</tt><br>
      <br>
    </div>
  </body>
</html>