Mediaproxy conntrack timeout

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Mediaproxy conntrack timeout

k1028
I upgraded OpenSIPS 1.3 with Mediaprxoy 1 to OpenSIPS 1.6 with Mediaproxy 2. ATA->OpenSIPS is working well. ATA->Tunnel Server->OpenSIPS get conntrack timeout via engage_media_proxy and use_media_proxy even call is connected with 2 way audio. I spend two days looking into this and still can't figure out the problem.

The dialog is created in OpenSIPS, SIP Trace looked good, Media-Relay see the SDP and the updated SDP. The stream is started but the conntrack rule is not inserted even with audio passing both direction and mediaproxy show no input or output octet

Debug from Media-Relay
debug: Added new stream: (audio) x.x.x.x:40325 (RTP: Unknown, RTCP: Unknown) <-> x.x.x.x:1112 <-> x.x.x.x:1114 <-> Unknown (RTP: Unknown, RTCP: Unknown)
debug: created new session 078@192.168.8.220: 078@x.x.x.x:5060 (111467078) --> 1510xxxxxxx@x.x.x.x:5060
debug: updating existing session 078@192.168.8.220: 078@x.x.x.x:5060 (111467078) --> 1510xxxxxxx@x.x.x.x:5060
debug: Received updated SDP answer
debug: Got initial answer from callee for stream: (audio) x.x.x.x:40325 (RTP: Unknown, RTCP: Unknown) <-> x.x.x.x:1112 <-> x.x.x.x:1114 <-> x.x.x.x:1792 (RTP: Unknown, RTCP: Unknown)
debug: Got traffic information for stream: (audio) x.x.x.x:40325 (RTP: Unknown, RTCP: Unknown) <-> x.x.x.x:1112 <-> x.x.x.x:1114 <-> x.x.x.x:1792 (RTP: x.x.x.x:1792, RTCP: Unknown)
debug: Got traffic information for stream: (audio) x.x.x.x:40325 (RTP: x.x.x.x:40325, RTCP: Unknown) <-> x.x.x.x:1112 <-> x.x.x.x:1114 <-> x.x.x.x:1792 (RTP: x.x.x.x:1792, RTCP: Unknown)
debug: updating existing session 078@192.168.8.220: 078@x.x.x.x:5060 (111467078) --> 1510xxxxxxx@x.x.x.x:5060
debug: Received updated SDP answer
debug: Unchanged stream: (audio) x.x.x.x:40325 (RTP: x.x.x.x:40325, RTCP: Unknown) <-> x.x.x.x:1112 <-> x.x.x.x:1114 <-> x.x.x.x:1792 (RTP: x.x.x.x:1792, RTCP: Unknown)
debug: expired session 078@192.168.8.220: 078@x.x.x.x:5060 (111467078) --> 1510xxxxxxx@x.x.x.x:5060


Debug from Media-Dispatcher
debug: Got statistics: {'all_streams_ice': False, 'from_tag': '111467076719582485', 'dialog_id': '484:1906238777', 'start_time': 1279841102.0999999, 'timed_out': True, 'call_id': '078@192.168.8.220', 'to_tag': 'as4b168bde', 'streams': [{'status': 'conntrack timeout', 'caller_codec': 'G729', 'post_dial_delay': 5.26600909233, 'callee_codec': 'G729', 'start_time': 0, 'caller_bytes': 0, 'callee_bytes': 0, 'caller_packets': 0, 'end_time': 60, 'callee_remote': 'x.x.x.x:1792', 'caller_remote': 'x.x.x.x:40325', 'media_type': 'audio', 'callee_local': 'x.x.x.x:1114', 'timeout_wait': 0, 'caller_local': 'x.x.x.x:1112', 'callee_packets': 0}], 'duration': 60, 'to_uri': '1510xxxxxxx@x.x.x.x:5060', 'from_uri': '078@x.x.x.x:5060', 'callee_ua': 'world', 'caller_ua': 'MobileDialer'}



Reply | Threaded
Open this post in threaded view
|

Re: Mediaproxy conntrack timeout

k1028
Sorry I forgot to mention I upgraded to OpenSIPS 1.6.2 with Mediaproxy 2.4.3. Hope someone can give me a hint thank you
Reply | Threaded
Open this post in threaded view
|

Re: Mediaproxy conntrack timeout

Saúl Ibarra Corretgé
In reply to this post by k1028
Hi,

On 23/07/10 01:38, k1028 wrote:

>
> I upgraded OpenSIPS 1.3 with Mediaprxoy 1 to OpenSIPS 1.6 with Mediaproxy 2.
> ATA->OpenSIPS is working well. ATA->Tunnel Server->OpenSIPS get conntrack
> timeout via engage_media_proxy and use_media_proxy even call is connected
> with 2 way audio. I spend two days looking into this and still can't figure
> out the problem.
>
> The dialog is created in OpenSIPS, SIP Trace looked good, Media-Relay see
> the SDP and the updated SDP. The stream is started but the conntrack rule is
> not inserted even with audio passing both direction and mediaproxy show no
> input or output octet
>

Is the audio going through MediaProxy? MediaProxy will wait to receive
one packet from each end before inserting the conntrack rule, so it
looks like MediaProxy it's not getting a packet from each end, else the
media information would have been updated.


Regards,

--
Saúl Ibarra Corretgé
AG Projects

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Mediaproxy conntrack timeout

k1028
I find the problem after sniffing the packet today. The problem is that the somehow the tunnel server sent the RTP to different port and that Mediaproxy 2 doesn't support Asymmetric client anymore.
Reply | Threaded
Open this post in threaded view
|

Re: Mediaproxy conntrack timeout

k1028
k1028 wrote
I find the problem after sniffing the packet today. The problem is that the somehow the tunnel server sent the RTP to different port and that Mediaproxy 2 doesn't support Asymmetric client anymore.
Please ignore my previous response. I triple looked into the sniffing and I am not a expert in this. What i can see is that the Tunnel server sending out of order sequence number on the same SSRC caused mediaproxy to change port.

64.x.x.x is tunnel sever, 74.x.x.x is mediaproxy, 54.x.x.x is asterisk.

64.x.x.x tunnel server send seq 4 and 5 to Mediaproxy on the same 40061 src and 1136 dst port  
74.x.x.x mediaproxy send seq 4 to asterisk on the same 1138 src and 13746 dst port
74.x.x.x mediaproxy send seq 5 to asterisk on a different src port 1024 and 13746 dst port
54.x.x.x asterisk sent seq 53534 to mediaproxy on src port 13746 and dst port 1024


4155 8.345361 64.x.x.x 74.x.x.x RTP PT=ITU-T G.729, SSRC=0x4C493D32, Seq=4, Time=4262923962
4156 8.345373 64.x.x.x 74.x.x.x RTP PT=ITU-T G.729, SSRC=0x4C493D32, Seq=5, Time=4262924122
4157 8.345566 74.x.x.x 54.x.x.x RTP PT=ITU-T G.729, SSRC=0x4C493D32, Seq=4, Time=4262923962
4159 8.345922 74.x.x.x 54.x.x.x RTP PT=ITU-T G.729, SSRC=0x4C493D32, Seq=5, Time=4262924122
4165 8.358769 54.x.x.x 74.x.x.x RTP PT=ITU-T G.729, SSRC=0x6004B08D, Seq=53534, Time=36800
4166 8.358877 74.x.x.x 54.x.x.x RTP PT=ITU-T G.729, SSRC=0x6004B08D, Seq=53534, Time=36800
4183 8.390847 64.x.x.x 74.x.x.x RTP PT=ITU-T G.729, SSRC=0x4C493D32, Seq=6, Time=4262924282
4184 8.390872 64.x.x.x 74.x.x.x RTP PT=ITU-T G.729, SSRC=0x4C493D32, Seq=7, Time=4262924442  
4185 8.390957 74.x.x.x 54.x.x.x RTP PT=ITU-T G.729, SSRC=0x4C493D32, Seq=6, Time=4262924282
4186 8.391016 74.x.x.x 54.x.x.x RTP PT=ITU-T G.729, SSRC=0x4C493D32, Seq=7, Time=4262924442
Reply | Threaded
Open this post in threaded view
|

Re: Mediaproxy conntrack timeout

k1028
I finally figured out the problem by changing the nat setting on asterisk from nat=yes always assume NAT to nat=never.