[asterisk-bugs] [JIRA] (ASTERISK-23020) PJSip - Multihomed machine returning wrong IP address

Matt Jordan (JIRA) noreply at issues.asterisk.org
Tue Dec 17 17:11:03 CST 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Jordan updated ASTERISK-23020:
-----------------------------------

    Description: 
Multihomed machine has two interfaces:

eth0.10 = 192.168.15.5/24  (default gateway via this int)
eth0.20 = 192.168.5.247/24 

Phone endpoint is connected to eth0.20, with the IP Address 192.168.5.248

Connecting works fine, but in the OK packet returned from the server, the wrong IP address is handed back:

{noformat}
        v=0
        o=- 7132004 7132006 IN IP4 localhost.localdomain
        s=Asterisk
        c=IN IP4 192.168.15.5
        t=0 0
        m=audio 17940 RTP/AVP 8 101
        c=IN IP4 192.168.15.5
        a=rtpmap:8 PCMA/8000
        a=rtpmap:101 telephone-event/8000
        a=fmtp:101 0-16
        a=ptime:20
        a=maxptime:150
        a=sendrecv
{noformat}

This causes the phone to try to connect to the wrong IP address which is not reachable from the other network.

Larger TCPdump attached

  was:
Multihomed machine has two interfaces:

eth0.10 = 192.168.15.5/24  (default gateway via this int)
eth0.20 = 192.168.5.247/24 

Phone endpoint is connected to eth0.20, with the IP Address 192.168.5.248

Connecting works fine, but in the OK packet returned from the server, the wrong IP address is handed back:


        v=0
        o=- 7132004 7132006 IN IP4 localhost.localdomain
        s=Asterisk
        c=IN IP4 192.168.15.5
        t=0 0
        m=audio 17940 RTP/AVP 8 101
        c=IN IP4 192.168.15.5
        a=rtpmap:8 PCMA/8000
        a=rtpmap:101 telephone-event/8000
        a=fmtp:101 0-16
        a=ptime:20
        a=maxptime:150
        a=sendrecv

This causes the phone to try to connect to the wrong IP address which is not reachable from the other network.

Larger TCPdump attached

    
> PJSip - Multihomed machine returning wrong IP address
> -----------------------------------------------------
>
>                 Key: ASTERISK-23020
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23020
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip
>    Affects Versions: 12.0.0-beta2
>            Reporter: xrobau
>         Attachments: sip_trace.txt
>
>
> Multihomed machine has two interfaces:
> eth0.10 = 192.168.15.5/24  (default gateway via this int)
> eth0.20 = 192.168.5.247/24 
> Phone endpoint is connected to eth0.20, with the IP Address 192.168.5.248
> Connecting works fine, but in the OK packet returned from the server, the wrong IP address is handed back:
> {noformat}
>         v=0
>         o=- 7132004 7132006 IN IP4 localhost.localdomain
>         s=Asterisk
>         c=IN IP4 192.168.15.5
>         t=0 0
>         m=audio 17940 RTP/AVP 8 101
>         c=IN IP4 192.168.15.5
>         a=rtpmap:8 PCMA/8000
>         a=rtpmap:101 telephone-event/8000
>         a=fmtp:101 0-16
>         a=ptime:20
>         a=maxptime:150
>         a=sendrecv
> {noformat}
> This causes the phone to try to connect to the wrong IP address which is not reachable from the other network.
> Larger TCPdump attached

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list