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

invite to gateway without registration goes to another wrong host

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mod_sofia
    • Labels:
      None
    • Environment:
      debian testing x86-64, builded from git 735d98710cb48f5ecdf5c01b05f212a47bc9fe9e (5 apr 2012)
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • uname:
      Linux server9 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64 GNU/Linux
    • Userland:
      GNU/Linux
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      735d98710cb48f5ecdf5c01b05f212a47bc9fe9e
    • GIT Master Revision hash::
      735d98710cb48f5ecdf5c01b05f212a47bc9fe9e
    • Target Version:
      1.9

      Description

      I have same issue with build from 18 feb 2012.
      Calls (invite) through gateway without registration goes to another host -

      gateway without registration:
      <include>
       <gateway name="mcm">
        <param name="username" value="none"/>
        <param name="password" value="none"/>
        <param name="realm" value="95.128.224.36"/>
        <param name="register" value="false"/>
       </gateway>
      </include>

      another gateway:
        <gateway name="79272361150">
         <param name="username" value="79272361150"/>
         <param name="realm" value="multifon.ru"/>
         <param name="password" value="DDDDDDDDD"/>
         <param name="expire-seconds" value="90"/>
         <param name="register" value="true"/>
         <param name="register-transport" value="udp"/>
         <param name="ping" value="20"/>
         <param name="stun-enabled" value="false"/>
        </gateway>

      listed in fs_cli -x 'sofia status':
                  external::mcm gateway sip:none@95.128.224.36 NOREG


      dialplan:
      <action application="bridge" data="{absolute_codec_string=G729}sofia/gateway/mcm/89050257199"/>


      problem:
      invite goes to another host 193.201.229.35 (ip addr of another gateway), not 95.128.224.36

      what i see in sip invite:
      - in route - wrong gateway
      Route: <sip:gw+79272361150@193.201.229.35:5060;transport=udp;lr>;gw=79272361150
      - and in contact - rigth gateway
      Contact: <sip:gw+mcm@149.126.23.150:5080;transport=udp;gw=mcm>

      full sip invite:

      Via: SIP/2.0/UDP 149.126.23.111:5080;rport;branch=z9hG4bK0pQ24743FZcgD
      Route: <sip:gw+79272361150@193.201.229.35:5060;transport=udp;lr>;gw=79272361150
      Max-Forwards: 69
      From: "Anton" <sip:none@95.128.224.36;transport=udp>;tag=cB34p87y8jHQN
      To: <sip:89050257111@95.128.224.36>
      Call-ID: 61ad2156-fe7a-122f-96a7-6cf0490bfc2c
      CSeq: 26738813 INVITE
      Contact: <sip:gw+mcm@149.126.23.111:5080;transport=udp;gw=mcm>
      User-Agent: FreeSWITCH-mod_sofia/1.1.beta1-git-735d987 2012-04-05 08-18-55 +0000
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY
      Supported: timer, precondition, path, replaces
      Allow-Events: talk, hold, refer
      Content-Type: application/sdp
      Content-Disposition: session
      Content-Length: 206
      X-FS-Support: update_display,send_info
      Remote-Party-ID: "Anton" <sip:273@95.128.224.36>;party=calling;screen=yes;privacy=off

        Attachments

        1. example.xml
          0.6 kB
        2. freeswitch.log
          114 kB
        3. full_log.txt
          46 kB
        4. full_log2.txt
          46 kB
        5. INVITE.txt
          8 kB
        6. OPTIONS.txt
          1 kB
        7. sip.pcapng
          6 kB
        8. sipp_scenario.xml
          1 kB

          Issue Links

            Activity

              People

              • Assignee:
                anthm Anthony Minessale II
                Reporter:
                fr.butch Anton F.
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: