[OpenSIPS-Users] MediaProxy switches RTP source port for no apparent reason.

Daniel Nihlén daniel at room40.se
Fri Apr 20 12:53:41 CEST 2012


Hi,

I am a bit puzzled by this behavior in Mediaproxy.

It seems session setup is ok, but right after the media starts to be sent, media proxy changes source port from the announced 55062 to source port 1057 (which is not in the range configured for MediaProxy, which runs default 50000:60000).

In this scenario we need RTP to jump twice at the MediaProxy as if being two chained MediaProxy, but its one instance.
 
Media is supposed to go:
UAC:5070 -> MediaProxy:55056 | src:MediaProxy:55058 -> MediaProxy:55060 | src:MediaProxy:55062 -> UAS:5068

By looking at tcpdump from MediaProxy node, It does for 10 RTP packages, then it changes to:
UAC:5070 -> MediaProxy:55056 | src:MediaProxy:1057 -> UAS:5068
This causing UAS NAT-fw to drop the traffic.

All the logs look ok and describes the expected scenario, the port 1057 is not mentioned anywhere in the logs. The summary for the two MediaProxy sessions are enclosed below.

Any clue on why MediaProxy would suddenly choose a port that is not configured? Thankful if anyone can help.

Thanks
Daniel Nihlen


{
'from_tag':'436228537-1334871012169-',
'dialog_id':'979:1821238755',
'start_time':1334871016.600482,
'timed_out':False,
'call_id':'BW233012169190412878530602 at 80.72.7.184',
'to_tag':'f203c8de38ce72f2',
'streams':[
{
'status':'closed',
'caller_codec':'G711u',
'post_dial_delay':6.776170015335083,
'callee_codec':'G711a',
'start_time':0,
'caller_bytes':0,
'callee_bytes':115000,
'caller_packets':0,
'end_time':14,
'callee_remote':'95.206.36.83:5068',
'caller_remote':'80.72.7.144:55058',
'media_type':'audio',
'callee_local':'80.72.7.144:55062',
'timeout_wait':0,
'caller_local':'80.72.7.144:55060',
'callee_packets':575
}
],
'duration':14,
}




{
'from_tag':'cf2051150e37a9bf',
'dialog_id':'1870:670542586',
'start_time':1334871016.6051979,
'timed_out':False,
'call_id':'1fc29155e7bf374c at 192.168.1.100',
'to_tag':'1864273067-1334871012481',
'streams':[
{
'status':'closed',
'caller_codec':'G711u',
'post_dial_delay':6.786207914352417,
'callee_codec':'G711a',
'start_time':0,
'caller_bytes':115000,
'callee_bytes':0,
'caller_packets':575,
'end_time':14,
'callee_remote':'80.72.7.144:55060',
'caller_remote':'95.206.36.83:5070',
'media_type':'audio',
'callee_local':'80.72.7.144:55058',
'timeout_wait':0,
'caller_local':'80.72.7.144:55056',
'callee_packets':0
}
],
'duration':14,
}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120420/46341414/attachment.htm>


More information about the Users mailing list