[asterisk-bugs] [JIRA] (ASTERISK-23020) PJSip - Multihomed machine returning wrong IP address
xrobau (JIRA)
noreply at issues.asterisk.org
Tue Dec 17 15:53:02 CST 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-23020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=213079#comment-213079 ]
xrobau commented on ASTERISK-23020:
-----------------------------------
07:43:21.613784 IP (tos 0x68, ttl 64, id 65104, offset 0, flags [none], proto UDP (17), length 1189)
192.168.5.248.5062 > 192.168.5.247.sip: SIP, length: 1161
INVITE sip:*43 at 192.168.5.247 SIP/2.0
Via: SIP/2.0/UDP 192.168.5.248:5062;branch=z9hG4bK-4a2af3fd
From: "A12" <sip:300 at 192.168.5.247>;tag=f7c053c6f82d54d5o2
To: <sip:*43 at 192.168.5.247>
Call-ID: fff19f5a-a685e51 at 192.168.5.248
CSeq: 102 INVITE
Max-Forwards: 70
Authorization: Digest username="300",realm="asterisk",nonce="1387316601/3e8f20b92e1123089f3531bd82551258",uri="sip:*43 at 192.168.5.247",algorithm=MD5,response="fae1e9feb9455b29cbc29cd6a38c481c",opaque="792bfea338024808",qop=auth,nc=00000001,cnonce="9c2b5e4d"
Contact: "A12" <sip:300 at 192.168.5.248:5062>
Expires: 240
User-Agent: Cisco/SPA504G-7.5.1a
Content-Length: 399
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER, UPDATE
Supported: replaces
Content-Type: application/sdp
v=0
o=- 7132004 7132004 IN IP4 192.168.5.248
s=-
c=IN IP4 192.168.5.248
t=0 0
m=audio 16390 RTP/AVP 0 2 8 9 18 96 97 98 101
a=rtpmap:0 PCMU/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729a/8000
a=rtpmap:96 G726-40/8000
a=rtpmap:97 G726-24/8000
a=rtpmap:98 G726-16/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:30
a=sendrecv
07:43:21.615495 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 308)
192.168.5.247.sip > 192.168.5.248.5062: SIP, length: 280
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.5.248:5062;rport;received=192.168.5.248;branch=z9hG4bK-4a2af3fd
Call-ID: fff19f5a-a685e51 at 192.168.5.248
From: "A12" <sip:300 at 192.168.5.247>;tag=f7c053c6f82d54d5o2
To: <sip:*43 at 192.168.5.247>
CSeq: 102 INVITE
Content-Length: 0
07:43:21.617570 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 835)
192.168.5.247.sip > 192.168.5.248.5062: SIP, length: 807
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.5.248:5062;rport;received=192.168.5.248;branch=z9hG4bK-4a2af3fd
Call-ID: fff19f5a-a685e51 at 192.168.5.248
From: "A12" <sip:300 at 192.168.5.247>;tag=f7c053c6f82d54d5o2
To: <sip:*43 at 192.168.5.247>;tag=e0033f75-87a0-4fcd-b1ac-66306ca2cf5c
CSeq: 102 INVITE
Contact: <sip:192.168.15.5:5060>
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, REGISTER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 263
v=0
o=- 7132004 7132006 IN IP4 localhost.localdomain
s=Asterisk
c=IN IP4 192.168.15.5 **<-- NOTE THE INCORRECT IP ADDRESS RETURNED HERE **
t=0 0
m=audio 17940 RTP/AVP 8 101
c=IN IP4 192.168.15.5 **<-- NOTE THE INCORRECT IP ADDRESS RETURNED HERE **
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
07:43:22.117230 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 835)
192.168.5.247.sip > 192.168.5.248.5062: SIP, length: 807
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.5.248:5062;rport;received=192.168.5.248;branch=z9hG4bK-4a2af3fd
Call-ID: fff19f5a-a685e51 at 192.168.5.248
From: "A12" <sip:300 at 192.168.5.247>;tag=f7c053c6f82d54d5o2
To: <sip:*43 at 192.168.5.247>;tag=e0033f75-87a0-4fcd-b1ac-66306ca2cf5c
CSeq: 102 INVITE
Contact: <sip:192.168.15.5:5060>
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, REGISTER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 263
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
07:43:23.117789 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 835)
192.168.5.247.sip > 192.168.5.248.5062: SIP, length: 807
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.5.248:5062;rport;received=192.168.5.248;branch=z9hG4bK-4a2af3fd
Call-ID: fff19f5a-a685e51 at 192.168.5.248
From: "A12" <sip:300 at 192.168.5.247>;tag=f7c053c6f82d54d5o2
To: <sip:*43 at 192.168.5.247>;tag=e0033f75-87a0-4fcd-b1ac-66306ca2cf5c
CSeq: 102 INVITE
Contact: <sip:192.168.15.5:5060>
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, REGISTER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 263
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
07:43:25.117769 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 835)
192.168.5.247.sip > 192.168.5.248.5062: SIP, length: 807
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.5.248:5062;rport;received=192.168.5.248;branch=z9hG4bK-4a2af3fd
Call-ID: fff19f5a-a685e51 at 192.168.5.248
From: "A12" <sip:300 at 192.168.5.247>;tag=f7c053c6f82d54d5o2
To: <sip:*43 at 192.168.5.247>;tag=e0033f75-87a0-4fcd-b1ac-66306ca2cf5c
CSeq: 102 INVITE
Contact: <sip:192.168.15.5:5060>
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, REGISTER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 263
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
07:43:29.117727 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 835)
192.168.5.247.sip > 192.168.5.248.5062: SIP, length: 807
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.5.248:5062;rport;received=192.168.5.248;branch=z9hG4bK-4a2af3fd
Call-ID: fff19f5a-a685e51 at 192.168.5.248
From: "A12" <sip:300 at 192.168.5.247>;tag=f7c053c6f82d54d5o2
To: <sip:*43 at 192.168.5.247>;tag=e0033f75-87a0-4fcd-b1ac-66306ca2cf5c
CSeq: 102 INVITE
Contact: <sip:192.168.15.5:5060>
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, REGISTER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 263
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
07:43:33.117281 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 835)
192.168.5.247.sip > 192.168.5.248.5062: SIP, length: 807
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.5.248:5062;rport;received=192.168.5.248;branch=z9hG4bK-4a2af3fd
Call-ID: fff19f5a-a685e51 at 192.168.5.248
From: "A12" <sip:300 at 192.168.5.247>;tag=f7c053c6f82d54d5o2
To: <sip:*43 at 192.168.5.247>;tag=e0033f75-87a0-4fcd-b1ac-66306ca2cf5c
CSeq: 102 INVITE
Contact: <sip:192.168.15.5:5060>
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, REGISTER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 263
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
07:43:37.117887 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 835)
192.168.5.247.sip > 192.168.5.248.5062: SIP, length: 807
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.5.248:5062;rport;received=192.168.5.248;branch=z9hG4bK-4a2af3fd
Call-ID: fff19f5a-a685e51 at 192.168.5.248
From: "A12" <sip:300 at 192.168.5.247>;tag=f7c053c6f82d54d5o2
To: <sip:*43 at 192.168.5.247>;tag=e0033f75-87a0-4fcd-b1ac-66306ca2cf5c
CSeq: 102 INVITE
Contact: <sip:192.168.15.5:5060>
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, REGISTER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 263
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
07:43:41.118252 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 835)
192.168.5.247.sip > 192.168.5.248.5062: SIP, length: 807
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.5.248:5062;rport;received=192.168.5.248;branch=z9hG4bK-4a2af3fd
Call-ID: fff19f5a-a685e51 at 192.168.5.248
From: "A12" <sip:300 at 192.168.5.247>;tag=f7c053c6f82d54d5o2
To: <sip:*43 at 192.168.5.247>;tag=e0033f75-87a0-4fcd-b1ac-66306ca2cf5c
CSeq: 102 INVITE
Contact: <sip:192.168.15.5:5060>
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, REGISTER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 263
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
07:43:45.118803 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 835)
192.168.5.247.sip > 192.168.5.248.5062: SIP, length: 807
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.5.248:5062;rport;received=192.168.5.248;branch=z9hG4bK-4a2af3fd
Call-ID: fff19f5a-a685e51 at 192.168.5.248
From: "A12" <sip:300 at 192.168.5.247>;tag=f7c053c6f82d54d5o2
To: <sip:*43 at 192.168.5.247>;tag=e0033f75-87a0-4fcd-b1ac-66306ca2cf5c
CSeq: 102 INVITE
Contact: <sip:192.168.15.5:5060>
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, REGISTER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 263
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
^C
14 packets captured
14 packets received by filter
0 packets dropped by kernel
> 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
>
> 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
--
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