Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-9970

Sofia detecting nat on packet from proxy, based on contact address instead of via

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.14
    • Fix Version/s: None
    • Component/s: mod_sofia
    • Security Level: public
    • Labels:
      None
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • uname:
      Linux dal-tanker-dev.ipa.corp.telnyx.com 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 8 jessie
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      FreeSWITCH Version 1.6.14+git~20170111T050257Z~e460bf8539~64bit (git e460bf8 2017-01-11 05:02:57Z 64bit)
    • GIT Master Revision hash::
      N/A
    • FSS Support Agreement Customer Number and Company name:
      Telnyx LLC

      Description

      1. call is established using TCP on the a-leg
      2. FS is restarted
      3. sofia recover
      4. FS closes the original TCP connection
      5. FS sends a re-invite on the a-leg to recover the call using UDP instead of TCP

      https://pastebin.freeswitch.org/view/5946fce8
      1. a_33fe9554-001c-44f9-9cd6-860e40b7d64f.cdr.json
        6 kB
        Rogelio Perez
      2. reinv6.pcap
        27 kB
        Rogelio Perez

        Activity

        Hide
        mikej Mike Jerris added a comment -
        i have a patch to test... almost for sure those 2 settings should not be set as well. Lets try my patch and see if it fixes it
        Show
        mikej Mike Jerris added a comment - i have a patch to test... almost for sure those 2 settings should not be set as well. Lets try my patch and see if it fixes it
        Hide
        anthm Anthony Minessale II added a comment -
        2017-01-25 18:38:39.413983 [DEBUG] sofia.c:11123 Setting NAT mode based on nat.auto

        Did you also comment out any apply-nat-acl lines from the profile?
        Show
        anthm Anthony Minessale II added a comment - 2017-01-25 18:38:39.413983 [DEBUG] sofia.c:11123 Setting NAT mode based on nat.auto Did you also comment out any apply-nat-acl lines from the profile?
        Hide
        rogelio.telnyx Rogelio Perez added a comment -
        Anthony, I commented the following line but I still see variable_sip_nat_detected: true

            <!-- <param name="apply-nat-acl" value="nat.auto"/> -->
        Show
        rogelio.telnyx Rogelio Perez added a comment - Anthony, I commented the following line but I still see variable_sip_nat_detected: true     <!-- <param name="apply-nat-acl" value="nat.auto"/> -->
        Hide
        anthm Anthony Minessale II added a comment -
        you didn't get a new log but if you look in your logs for

        Setting NAT mode based on

        That will tell you why
        Show
        anthm Anthony Minessale II added a comment - you didn't get a new log but if you look in your logs for Setting NAT mode based on That will tell you why
        Hide
        rogelio.telnyx Rogelio Perez added a comment -
        I deleted the acl line and restarted FS but I still see this:

        [DEBUG] sofia.c:11123 Setting NAT mode based on nat.auto
        Show
        rogelio.telnyx Rogelio Perez added a comment - I deleted the acl line and restarted FS but I still see this: [DEBUG] sofia.c:11123 Setting NAT mode based on nat.auto

          People

          • Assignee:
            mikej Mike Jerris
            Reporter:
            rogelio.telnyx Rogelio Perez
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development