Hi Ruud, Hi Adrian,
Thanks a lot for the quick feedback ;-).
About using private IP addresses: i did not know there might be some
limitations here, but i do not see why it should be an issue unless some
specific code prevents from using such addresses. Of course, i'm aware
that usually (but not only) media proxy is used along with NAT / NAT
traversal, which always implies hiding private addresses.
>From Adrian's email i understand that media proxy is only dedicated to NAT
traversal and cannot be used as a "pure" media proxy (one might want to
force RTP proxy on one box without NAT and with private IP addresses).
According to me, NAT detection was performed by opensips only (nat
traversal and nathelper modules) but if you tell me that media proxy also
holds internal mechanisms for NAT detection, that's ok.
Just for information, so far, all previous tests with forced media proxy,
without NAT and using private IPs, are all OK, even with parallel call
forking from TDM to SIP.
=> can you confirm that media proxy can not be used as a 'forced" media
proxy, without NAT ?
=> If no, will it work if i use only public addresses with media proxy,
avoiding its NAT detection mechanism ?
According to the answer given to the above 2 questions, I will try to
upgrade my platform accordingly and will come back to you with the
results. Meanwhile, please find hereafter some answers for Ruud's email...
The objectives on my side are to place a call from a sip user to 2 TDM
users by parallel-forking this call to 2 different media gateways (please
check the context details i put in the first email).
So, sip user is calling [email protected] which is registered in 2
locations in opensips. Opensips forks the call to both gateways and it
rings on both TDM phones.
When i pick up with one gateway (the working one), it always works: i mean
opensips receives a 200OK/SDP from the gateway and sends a CANCEL to the
other one, and then media is established.
When i pick up with the other gateway, it nevers work: i mean opensips
receives a 200OK/SDP from the gateway and sends a CANCEL to the other one,
and then media is NOT established because IP addresses used by media proxy
are wrong (check my previous email or provided mediaproxy logs).
I think there is some wrong information update between opensips and media
proxy at some point, either with the 183/SDP messages or 200OK, because
the IP @ of one gateway is taken as RTP IP to reach the other gateway.
Please find the media proxy logs below and let me know if you need
anything else.
Thanks a lot again,
Regards,
Erwan.
PS : i can provide network traces if required.
MEDIAPROXY RELAY
===================
PICK-UP user behind with MGW 10.0.0.2 (working)
==========================================
debug: Received new SDP offer
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50072
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50073
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50074
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50075
debug: Added new stream: (audio) 192.168.2.223:5298 (RTP: Unknown, RTCP:
Unknown) <-> 192.168.2.233:50072 <-> 192.168.2.233:50074 <-> Unknown (RTP:
Unknown, RTCP: Unknown)
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50076
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50077
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50078
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50079
debug: Added new stream: (video) 192.168.2.223:5300 (RTP: Unknown, RTCP:
Unknown) <-> 192.168.2.233:50076 <-> 192.168.2.233:50078 <-> Unknown (RTP:
Unknown, RTCP: Unknown)
debug: created new session
[email protected]:
[email protected] (7ED810FBDF34536891ED7A7C7B958FA9) -->
[email protected]
debug: Got traffic information for stream: (audio) 192.168.2.223:5298
(RTP: Unknown, RTCP: Unknown) <-> 192.168.2.233:50072 <->
192.168.2.233:50074 <-> Unknown (RTP: 10.0.0.2:19098, RTCP: Unknown)
debug: updating existing session
[email protected]:
[email protected] (7ED810FBDF34536891ED7A7C7B958FA9) -->
[email protected]
debug: Received updated SDP answer
debug: Got initial answer from callee for stream: (audio)
192.168.2.223:5298 (RTP: Unknown, RTCP: Unknown) <-> 192.168.2.233:50072
<-> 192.168.2.233:50074 <-> 10.0.0.2:19098 (RTP: 10.0.0.2:19098, RTCP:
Unknown)
debug: Stream explicitly rejected: (video) 192.168.2.223:5300 (RTP:
Unknown, RTCP: Unknown) <-> 192.168.2.233:50076 <-> 192.168.2.233:50078
<-> Unknown (RTP: Unknown, RTCP: Unknown)
(Port 50076 Closed)
(Port 50077 Closed)
(Port 50078 Closed)
(Port 50079 Closed)
debug: Got traffic information for stream: (audio) 192.168.2.223:5298
(RTP: Unknown, RTCP: Unknown) <-> 192.168.2.233:50072 <->
192.168.2.233:50074 <-> 10.0.0.2:19098 (RTP: 10.0.0.2:19098, RTCP:
10.0.1.1:19163)
debug: Got traffic information for stream: (audio) 192.168.2.223:5298
(RTP: 192.168.2.223:5298, RTCP: Unknown) <-> 192.168.2.233:50072 <->
192.168.2.233:50074 <-> 10.0.0.2:19098 (RTP: 10.0.0.2:19098, RTCP:
10.0.1.1:19163)
debug: Got traffic information for stream: (audio) 192.168.2.223:5298
(RTP: 192.168.2.223:5298, RTCP: 192.168.2.223:5299) <->
192.168.2.233:50072 <-> 192.168.2.233:50074 <-> 10.0.0.2:19098 (RTP:
10.0.0.2:19098, RTCP: 10.0.1.1:19163)
debug: removing session
[email protected]:
[email protected] (7ED810FBDF34536891ED7A7C7B958FA9) -->
[email protected]
(Port 50072 Closed)
(Port 50073 Closed)
(Port 50074 Closed)
(Port 50075 Closed)
PICK-UP user behind MGW 10.0.1.1 (not working)
=========================================
debug: Received new SDP offer
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50080
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50081
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50082
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50083
debug: Added new stream: (audio) 192.168.2.223:5304 (RTP: Unknown, RTCP:
Unknown) <-> 192.168.2.233:50080 <-> 192.168.2.233:50082 <-> Unknown (RTP:
Unknown, RTCP: Unknown)
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50084
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50085
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50086
mediaproxy.mediacontrol.StreamListenerProtocol starting on 50087
debug: Added new stream: (video) 192.168.2.223:5306 (RTP: Unknown, RTCP:
Unknown) <-> 192.168.2.233:50084 <-> 192.168.2.233:50086 <-> Unknown (RTP:
Unknown, RTCP: Unknown)
debug: created new session
[email protected]:
[email protected] (EA301B072FD4D18C5A3638A83D916B25) -->
[email protected]
debug: Got traffic information for stream: (audio) 192.168.2.223:5304
(RTP: Unknown, RTCP: Unknown) <-> 192.168.2.233:50080 <->
192.168.2.233:50082 <-> Unknown (RTP: 10.0.0.2:19560, RTCP: Unknown)
debug: updating existing session
[email protected]:
[email protected] (EA301B072FD4D18C5A3638A83D916B25) -->
[email protected]
debug: Received updated SDP answer
debug: Got initial answer from callee for stream: (audio)
192.168.2.223:5304 (RTP: Unknown, RTCP: Unknown) <-> 192.168.2.233:50080
<-> 192.168.2.233:50082 <-> 10.0.1.1:16910 (RTP: 10.0.0.2:19560, RTCP:
Unknown)
debug: Stream explicitly rejected: (video) 192.168.2.223:5306 (RTP:
Unknown, RTCP: Unknown) <-> 192.168.2.233:50084 <-> 192.168.2.233:50086
<-> Unknown (RTP: Unknown, RTCP: Unknown)
(Port 50084 Closed)
(Port 50085 Closed)
(Port 50086 Closed)
(Port 50087 Closed)
debug: Got traffic information for stream: (audio) 192.168.2.223:5304
(RTP: Unknown, RTCP: Unknown) <-> 192.168.2.233:50080 <->
192.168.2.233:50082 <-> 10.0.1.1:16910 (RTP: 10.0.0.2:19560, RTCP:
10.0.0.2:19561)
debug: Got traffic information for stream: (audio) 192.168.2.223:5304
(RTP: 192.168.2.223:5304, RTCP: Unknown) <-> 192.168.2.233:50080 <->
192.168.2.233:50082 <-> 10.0.1.1:16910 (RTP: 10.0.0.2:19560, RTCP:
10.0.0.2:19561)
debug: Got traffic information for stream: (audio) 192.168.2.223:5304
(RTP: 192.168.2.223:5304, RTCP: 192.168.2.223:5305) <->
192.168.2.233:50080 <-> 192.168.2.233:50082 <-> 10.0.1.1:16910 (RTP:
10.0.0.2:19560, RTCP: 10.0.0.2:19561)
debug: removing session
[email protected]:
[email protected] (EA301B072FD4D18C5A3638A83D916B25) -->
[email protected]
(Port 50080 Closed)
(Port 50081 Closed)
(Port 50082 Closed)
(Port 50083 Closed)
MEDIAPROXY DISPATCHER
==========================
PICK-UP user behind with MGW 10.0.0.2 (working)
==========================================
debug: Issuing "update" command to relay at 192.168.2.233
debug: Issuing "update" command to relay at 192.168.2.233
debug: Issuing "remove" command to relay at 192.168.2.233
debug: Got statistics: {'from_tag': '7ED810FBDF34536891ED7A7C7B958FA9',
'dialog_id': None, 'start_time': 1244015369.8499999, 'timed_out': False,
'call_id': '[email protected]',
'to_tag': 'F6C72F2C-4DA', 'streams': [{'status': 'rejected',
'caller_codec': 'Unknown', 'post_dial_delay': None, 'callee_codec':
'Unknown', 'start_time': 0, 'caller_bytes': 0, 'callee_bytes': 0,
'caller_packets': 0, 'end_time': 0, 'callee_remote': 'Unknown',
'caller_remote': 'Unknown', 'media_type': 'video', 'callee_local':
'192.168.2.233:50078', 'timeout_wait': 0, 'caller_local':
'192.168.2.233:50076', 'callee_packets': 0}, {'status': 'closed',
'caller_codec': 'Unknown(13)', 'post_dial_delay': 0.54064583778399999,
'callee_codec': 'G711u', 'start_time': 0, 'caller_bytes': 50000,
'callee_bytes': 50800, 'caller_packets': 250, 'end_time': 5,
'callee_remote': '10.0.0.2:19098', 'caller_remote': '192.168.2.223:5298',
'media_type': 'audio', 'callee_local': '192.168.2.233:50074',
'timeout_wait': 0, 'caller_local': '192.168.2.233:50072',
'callee_packets': 254}], 'duration': 5, 'to_uri': '[email protected]',
'from_uri': '[email protected]', 'callee_ua':
'Cisco-SIPGateway/IOS-12.x', 'caller_ua': 'Kapanga Softphone Desktop
1.00/2172f+1213709005_001CBFA9A746_001C233756B9_005056C00001_005056C00008'}
PICK-UP user behind MGW 10.0.1.1 (not working)
=========================================
debug: Issuing "update" command to relay at 192.168.2.233
debug: Issuing "update" command to relay at 192.168.2.233
debug: Issuing "remove" command to relay at 192.168.2.233
debug: Got statistics: {'from_tag': 'EA301B072FD4D18C5A3638A83D916B25',
'dialog_id': None, 'start_time': 1244015394.48, 'timed_out': False,
'call_id': '[email protected]',
'to_tag': 'C286F9C8-F9F', 'streams': [{'status': 'rejected',
'caller_codec': 'Unknown', 'post_dial_delay': None, 'callee_codec':
'Unknown', 'start_time': 0, 'caller_bytes': 0, 'callee_bytes': 0,
'caller_packets': 0, 'end_time': 0, 'callee_remote': 'Unknown',
'caller_remote': 'Unknown', 'media_type': 'video', 'callee_local':
'192.168.2.233:50086', 'timeout_wait': 0, 'caller_local':
'192.168.2.233:50084', 'callee_packets': 0}, {'status': 'closed',
'caller_codec': 'Unknown(13)', 'post_dial_delay': 0.54059290885900002,
'callee_codec': 'G711u', 'start_time': 0, 'caller_bytes': 49936,
'callee_bytes': 0, 'caller_packets': 250, 'end_time': 5, 'callee_remote':
'10.0.0.2:19560', 'caller_remote': '192.168.2.223:5304', 'media_type':
'audio', 'callee_local': '192.168.2.233:50082', 'timeout_wait': 0,
'caller_local': '192.168.2.233:50080', 'callee_packets': 0}], 'duration':
5, 'to_uri': '[email protected]', 'from_uri': '[email protected]',
'callee_ua': 'Cisco-SIPGateway/IOS-12.x', 'caller_ua': 'Kapanga Softphone
Desktop
1.00/2172f+1213709005_001CBFA9A746_001C233756B9_005056C00001_005056C00008'}
*********************************
This message and any attachments (the "message") are confidential and intended
solely for the addressees.
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration.
France Telecom Group shall not be liable for the message if altered, changed or
falsified.
If you are not the intended addressee of this message, please cancel it
immediately and inform the sender.
********************************_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users