[OpenSIPS-Users] MediaProxy – reINVITE with SDP in 200 OK – ACK causes problem
Daniel Nihlén
daniel at room40.se
Tue Feb 7 13:34:15 CET 2012
Hi everyone,
We are having some trouble with MediaProxy when SDP info (contact address and port) is changed in ACK for a reINVITE. It’s an AS (Broadworks) that sends INVITE that media should be proxied for. First the call is initiated with media on hold then an ACK of a reINVITE sets new media address and unholds the call.
The problem is that MediaProxy seems to have locked to the address where it first received media and ignores media from the address that the reINVITE changes to.
Scenario is (SDP in INVITE/200 ok; 80.72.7.144 is the MediaProxy):
1. Call is started on hold:
(audio) 0.0.0.0:50026 ON HOLD (RTP: Unknown, RTCP: Unknown) <-> 80.72.7.144:50212 <-> 80.72.7.144:50214 <-> 130.244.51.60:19642 (RTP: Unknown, RTCP: Unknown)
2. RTP traffic is received on 80.72.7.144:50212 I guess MediaProxy 'locks' to that peer address:
debug: Got traffic information for stream: (audio) 0.0.0.0:50026 ON HOLD (RTP: 80.72.7.145:50026, RTCP: Unknown) <-> 80.72.7.144:50212 <-> 80.72.7.144:50214 <-> 130.244.51.60:19642 (RTP: Unknown, RTCP: Unknown)
3. reINVITE (no SDP in INVITE) changes media parameters in ACK (and unHolds the stream) 0.0.0.0:50026 is replaced with 80.72.7.188:13708.
debug: Got initial answer from caller for stream: (audio) 80.72.7.188:13708 (RTP: 80.72.7.145:50026, RTCP: Unknown) <-> 80.72.7.144:50212 <-> 80.72.7.144:50214 <-> 130.244.51.60:19642 (RTP: Unknown, RTCP: Unknown)
4. RTP traffic is recived from the last address set in SDP.
Feb 7 00:38:47 sbc-media04 media-relay[10580]: debug: Got traffic information for stream: (audio) 80.72.7.188:13708 (RTP: 80.72.7.145:50026, RTCP: Unknown) <-> 80.72.7.144:50212 <-> 80.72.7.144:50214 <-> 130.244.51.60:19642 (RTP: 130.244.51.60:19642, RTCP: Unknown)
MediaProxy never sends any RTP to 80.72.7.188:13708 but instead continues to send RTP to 80.72.7.145:50026 even after reINIVTE.
Any way to get MediaProxy to unlock/forget that it has locked an address for a stream?
Full trace is at http://dl.dropbox.com/u/1798100/callconly/index.html
The media proxy output is at http://dl.dropbox.com/u/1798100/603_media04_log.txt
Thanks a lot
Daniel Nihlén
More information about the Users
mailing list