[SR-Users] RTPEngine IPv4 to IPv6 bridging returning c=IN IP4 0.0.0.0 on answer?

Anthony Messina amessina at messinet.com
Wed Feb 25 02:20:15 CET 2015


This is probably very likely a configuration issue on my part, but I wanted to 
check before reporting an RTPEngine bug...

Thank you for any pointers or suggestions.

This is a multi-homed server where

em1: INTERNAL_IPv4 & GLOBAL_IPv6
em2: EXTERNAL_IPv4

Note that below, the IPv6 address on my server is the same on priv and pub and 
is reachable from "internal" and "external" endpoints.  I have it set this way 
as I eventually want to use ICE and have it create the proper IPv4/IPv6 
candidates regardless of the RTPEngine --interface.

I'm running RTPEngine with the following:

/usr/sbin/rtpengine
	--table=0
	--interface=pub/EXTERNAL_IPv4
	--interface=pub/GLOBAL_IPv6
	--interface=priv/INTERNAL_IPv4
	--interface=priv/GLOBAL_IPv6
	--listen-ng=127.0.0.1:12221
	--tos=184
	--log-level=7
	--pidfile=/run/rtpengine/rtpengine.test.pid

I'm trying to bridge an IPv4-initated call to an IPv6 carrier. The call seems 
to flow properly until the carrier's SDP is passed through RTPEngine on 
answer.  The snippets are here, and I have attached the full log.

[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] Received command 'answer' from 
127.0.0.1:38786
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] Dump for 'answer' from 127.0.0.1:38786: { 
"sdp": "v=0
o=FreeSWITCH 1424799070 1424799071 IN IP6 CARRIER_IPv6
s=FreeSWITCH
c=IN IP6 CARRIER_IPv6
t=0 0
m=audio 24308 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=rtcp:24309 IN IP6 CARRIER_IPv6


The CARRIER_IPv6 gets converted as follows with 0.0.0.0 in place of what 
should be the address of my RTPEngine instance.  Shouldn't it be returning the 
IPv4 address of my RTPEngine instance (either priv or pub as called from 
Kamailio)?

[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] Replying to 'answer' from 127.0.0.1:38786
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] Response dump for 'answer' to 
127.0.0.1:38786: { "sdp": "v=0
o=FreeSWITCH 1424799070 1424799071 IN IP4 0.0.0.0
s=FreeSWITCH
c=IN IP4 0.0.0.0
t=0 0
m=audio 38914 RTP/SAVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
a=rtcp:38915
a=crypto:1 AES_CM_128_HMAC_SHA1_80 
inline:Jby5IPt4WlNySLd66eK+Mcky8yJeUwp7dWH7W3aO

-- 
Anthony - https://messinet.com/ - https://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
-------------- next part --------------
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] Received command 'offer' from 127.0.0.1:58756
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] Dump for 'offer' from 127.0.0.1:58756: { "sdp": "v=0
o=- 3633812192 3633812192 IN IP4 10.77.79.126
s=pjmedia
c=IN IP4 10.77.79.126
t=0 0
m=audio 4026 RTP/SAVP 9 0 3 101
c=IN IP4 10.77.79.126
a=rtcp:4035 IN IP4 10.77.79.126
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:5V+25NfiCnmOm0VP3XZl3Oy7Tyjz3ld79iNYRfXY
a=crypto:2 AES_CM_128_HMAC_SHA1_32 inline:C05Kkfq04ZouqcDs8lYnXHJmYWzD/OfMKs6teHnv
a=ice-ufrag:72388323
a=ice-pwd:76248 ...
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] ... 5c2
a=candidate:Ha4d4f7e 1 UDP 2130706431 10.77.79.126 4026 typ host
a=candidate:Ha4d4f7e 2 UDP 2130706430 10.77.79.126 4035 typ host
", "ICE": "remove", "address-family": "IP6", "direction": [ "pub", "pub" ], "flags": [ "trust-address" ], "replace": [ "origin", "session-connection" ], "transport-protocol": "RTP/AVP", "call-id": "TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y", "rec
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] Creating new call
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] getting monologue for tag 'Y4dPBOeyOScxFc9fBmK0XgblAhZgW2qv' in call 'TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y'
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] creating new monologue
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] tagging monologue with 'Y4dPBOeyOScxFc9fBmK0XgblAhZgW2qv'
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] creating new monologue
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] this= other=Y4dPBOeyOScxFc9fBmK0XgblAhZgW2qv
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] processing media stream #1
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] allocating new call_media for stream #1
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] allocating new call_media for stream #1
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] allocating new endpoint map
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] attempting to open port 38892
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] port locked
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] attempting to open port 38893
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] port locked
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] Opened ports 38892..38893 for media relay
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] allocating stream_fds for 2 ports
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] allocating 2 new packet_streams
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] allocating 2 new packet_streams
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] allocating new wildcard endpoint map
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] attempting to open port 38914
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] port locked
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] attempting to open port 38915
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] port locked
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] Opened ports 38914..38915 for media relay
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] allocating stream_fds for 2 ports
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] Replying to 'offer' from 127.0.0.1:58756
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] Response dump for 'offer' to 127.0.0.1:58756: { "sdp": "v=0
o=- 3633812192 3633812192 IN IP6 2001:55c:dc00::3
s=pjmedia
c=IN IP6 2001:55c:dc00::3
t=0 0
m=audio 38892 RTP/AVP 9 0 3 101
c=IN IP6 2001:55c:dc00::3
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv
a=rtcp:38893
", "result": "ok" }
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] Received command 'answer' from 127.0.0.1:38786
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] Dump for 'answer' from 127.0.0.1:38786: { "sdp": "v=0
o=FreeSWITCH 1424799070 1424799071 IN IP6 2607:5300:60:1F93::
s=FreeSWITCH
c=IN IP6 2607:5300:60:1F93::
t=0 0
m=audio 24308 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=rtcp:24309 IN IP6 2607:5300:60:1F93::
", "ICE": "remove", "flags": [ "trust-address" ], "replace": [ "origin", "session-connection" ], "transport-protocol": "RTP/SAVP", "call-id": "TdBe4 ...
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] ... MJa1DC4teIllJkqq6U-PAw9Zh4y", "received-from": [ "IP6", "2607:5300:60:1F93:0:0:0:0" ], "from-tag": "Y4dPBOeyOScxFc9fBmK0XgblAhZgW2qv", "to-tag": "mcv490Q832H7D", "command": "answer" }
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] getting dialogue for tags 'Y4dPBOeyOScxFc9fBmK0XgblAhZgW2qv'<>'mcv490Q832H7D' in call 'TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y'
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] tagging monologue with 'mcv490Q832H7D'
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] this=Y4dPBOeyOScxFc9fBmK0XgblAhZgW2qv other=mcv490Q832H7D
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] processing media stream #1
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] found existing call_media for stream #1
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] found existing call_media for stream #1
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] found a wildcard endpoint map and filling it in
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] allocating 0 new packet_streams
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] allocating 0 new packet_streams
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] Replying to 'answer' from 127.0.0.1:38786
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y] Response dump for 'answer' to 127.0.0.1:38786: { "sdp": "v=0
o=FreeSWITCH 1424799070 1424799071 IN IP4 0.0.0.0
s=FreeSWITCH
c=IN IP4 0.0.0.0
t=0 0
m=audio 38914 RTP/SAVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
a=rtcp:38915
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:Jby5IPt4WlNySLd66eK+Mcky8yJeUwp7dWH7W3aO
", "result": "ok" }
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y port 38892] Confirmed peer address as [2607:5300:60:1f93::]:24308
[TdBe4MJa1DC4teIllJkqq6U-PAw9Zh4y port 38893] Confirmed peer address as [2607:5300:60:1f93::]:24309
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150224/cb91ea1c/attachment.sig>


More information about the sr-users mailing list