<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Mediaproxy port question.</TITLE>
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=116014214-17102006><FONT face=Arial color=#0000ff size=2>Me
again.</FONT></SPAN></DIV>
<DIV><SPAN class=116014214-17102006> <FONT face=Arial
color=#0000ff size=2>Does someone have a example for a rtp-asymmetric-client
file?</FONT></SPAN></DIV>
<DIV><SPAN class=116014214-17102006> <FONT face=Arial
color=#0000ff size=2>Can i put something else to match than the "User-Agent" or
the "Server" fields ?</FONT></SPAN></DIV>
<DIV><SPAN class=116014214-17102006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=116014214-17102006> <FONT face=Arial
color=#0000ff size=2>Thanks again</FONT></SPAN></DIV>
<DIV><SPAN class=116014214-17102006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=116014214-17102006> <FONT face=Arial
color=#0000ff size=2>Ricardo Martinez.-</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Mensaje original-----<BR><B>De:</B>
serusers-bounces@lists.iptel.org
[mailto:serusers-bounces@lists.iptel.org]<B>En nombre de </B>Ricardo
Martinez<BR><B>Enviado el:</B> martes, 17 de octubre de 2006
10:14<BR><B>Para:</B> serusers@iptel.org<BR><B>Asunto:</B> RE: [Serusers]
Mediaproxy port question.<BR><BR></FONT></DIV>
<DIV><SPAN class=075081313-17102006><FONT face=Arial color=#0000ff size=2>I'm
still stuck with this problem.. can someone give me a
hand?</FONT></SPAN></DIV>
<DIV><SPAN class=075081313-17102006><FONT face=Arial color=#0000ff
size=2>Thanks...</FONT></SPAN></DIV>
<DIV><SPAN class=075081313-17102006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=075081313-17102006><FONT face=Arial color=#0000ff
size=2>Ricardo.-</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Mensaje original-----<SPAN class=075081313-17102006><FONT
face=Arial color=#0000ff> </FONT></SPAN><BR><B>De:</B>
serusers-bounces@lists.iptel.org
[mailto:serusers-bounces@lists.iptel.org]<B>En nombre de </B>Ricardo
Martinez<BR><B>Enviado el:</B> lunes, 16 de octubre de 2006
11:47<BR><B>Para:</B> serusers@iptel.org<BR><B>Asunto:</B> [Serusers]
Mediaproxy port question.<BR><BR></FONT></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>Hello Iptel users.</FONT>
<BR> <FONT face=Arial size=2>I'm
having a problem with my mediaproxy box. I have a NAT'd client (a
softphone) calling to a SIP-H323 conversor through my SER-Mediaproxy
box and then to a Cisco Call Manager (it's a very weird configuration).
Anyway, the problem presents when the 200 - OK message arrives from my
conversor, the SDP part indicate the media address (10.10.148.230) and port
(16952) where the remote endpoint will listen RTP, despite of this the
mediaproxy open a session for the port 17360. Please check the log
from the mediaproxy and the execution of the "sessions.py" utility, plus the
OK message.</FONT></P>
<P><FONT face=Arial size=2>U 100.100.154.36:5060 ->
100.100.148.246:5060</FONT> <BR><FONT face=Arial size=2>SIP/2.0 200
OK.</FONT> <BR><FONT face=Arial size=2>Via: SIP/2.0/UDP
100.100.148.246;branch=z9hG4bK67ea.aa12dc97.0.</FONT> <BR><FONT face=Arial
size=2>Via: SIP/2.0/UDP
192.168.1.101;received=100.100.148.248;rport=46096;branch=z9hG4bKc0a801650000001d4533a0ee00007c2900000011.</FONT></P>
<P><FONT face=Arial size=2>Record-Route:
<sip:100.100.154.36;ftag=2214787970;lr=on>.</FONT> <BR><FONT
face=Arial size=2>Record-Route:
<sip:7072408196@100.100.148.246:5060;nat=yes;ftag=2214787970;lr=on>.</FONT>
<BR><FONT face=Arial size=2>From:
"unknown"<sip:5502408196@sip.desa.mydomain.net>;tag=2214787970.</FONT>
<BR><FONT face=Arial size=2>To:
<sip:7072408196@sip.desa.mydomain.net>;tag=2260729709.</FONT>
<BR><FONT face=Arial size=2>Call-ID:
A2304B7B-AA05-42C5-A467-C16B1BD9102A@192.168.1.101.</FONT> <BR><FONT
face=Arial size=2>Cseq: 2 INVITE.</FONT> <BR><FONT face=Arial size=2>Date:
Mon, 16 Oct 2006 15:10:37 GMT.</FONT> <BR><FONT face=Arial size=2>Server:
siph323.</FONT> <BR><FONT face=Arial size=2>Content-Type:
application/sdp.</FONT> <BR><FONT face=Arial size=2>Content-Length:
162.</FONT> <BR><FONT face=Arial size=2>Contact:
sip:7072408196@100.100.154.119.</FONT> <BR><FONT face=Arial size=2>.</FONT>
<BR><FONT face=Arial size=2>v=0.</FONT> <BR><FONT face=Arial
size=2>o=100.100.154.119 1 505533324 IN IP4 100.100.154.119.</FONT>
<BR><FONT face=Arial size=2>s=SIP Library call.</FONT> <BR><FONT face=Arial
size=2>c=IN IP4 100.100.148.230.</FONT> <BR><FONT face=Arial
size=2>t=3370000237 0.</FONT> <BR><FONT face=Arial size=2>m=audio 16952
RTP/AVP 0.</FONT> <BR><FONT face=Arial size=2>a=rtpmap:0 PCMU/8000.</FONT>
</P><BR>
<P><FONT face=Arial size=2>Oct 16 12:12:00 sip mediaproxy[18289]: lookup
A2304B7B-AA05-42C5-A467-C16B1BD9102A@192.168.1.101
100.100.148.230:16952:audio 100.100.154.36 sip.desa.mydomain.net local
sip.desa.mydomain.net unknown siph323
info=from:5502408196@sip.desa.mydomain.net,to:7072408196@sip.desa.mydomain.net,fromtag:2214787970,totag:2260729709</FONT></P>
<P><FONT face=Arial size=2>Oct 16 12:12:00 sip mediaproxy[18289]: execution
time: 0.48 ms</FONT> <BR><FONT face=Arial size=2>Oct 16 12:12:00 sip
mediaproxy[18289]: session
A2304B7B-AA05-42C5-A467-C16B1BD9102A@192.168.1.101: caller signed in from
100.100.148.248:49154 (RTP) (will return to
100.100.148.248:49154)</FONT></P>
<P><FONT face=Arial size=2>Oct 16 12:12:00 sip mediaproxy[18289]: session
A2304B7B-AA05-42C5-A467-C16B1BD9102A@192.168.1.101: called signed in from
100.100.148.230:17360 (RTP) (will return to
100.100.148.230:17360)</FONT></P>
<P><FONT face=Arial size=2>[root@sip ser]#
/usr/src/mediaproxy-1.7.2/mediaproxy/sessions.py
</FONT></P>
<P><FONT face="Courier New"
size=2>Caller
Via
Called
Status Duration Codec Type
Traffic
</FONT></P>
<P><FONT face="Courier New"
size=2>------------------------------------------------------------------------------------------------------------------------</FONT></P>
<P><FONT face="Courier New" size=2>100.100.148.248:49154 -
100.100.148.246:60022 - 100.100.148.230:17360
active 0'39" G711u Audio
336.91k/669.53k/332.62k</FONT></P>
<P><FONT face=Arial size=2>Total traffic:
79.69kbps/78.12kbps/157.81kbps (in1/in2/out)</FONT> <BR><FONT face=Arial
size=2>Session count: 1</FONT> <BR><FONT face=Arial size=2>Proxy
version: 1.7.2</FONT> </P>
<P><FONT face=Arial size=2>Doing more debugs i discover the RTP traffic
coming from the 100.100.148.230 it has source port 17360, but the listening
port is not the same (i guess is the one indicated in the SDP). Why
mediaproxy assumes the 17360 port is for listening too and ommit the SDP
16952 port ?</FONT></P>
<P><FONT face=Arial size=2>Is this maybe an asymmetric regarding the RTP
media?. If so, i added this line into the rtp-asymmetric-clients
file:</FONT> </P>
<P><FONT face="Courier New" size=2>#</FONT> <BR><FONT face="Courier New"
size=2># Lines starting with a '#' character or empty lines are
ignored.</FONT> <BR><FONT face="Courier New" size=2># Put a User-Agent name
or regular expression per line.</FONT> <BR><FONT face="Courier New" size=2>#
Check is case insensitive.</FONT> <BR><FONT face="Courier New"
size=2>#</FONT> <BR><FONT face="Courier New" size=2># This file should only
list SIP clients that are asymmetric regarding</FONT> <BR><FONT
face="Courier New" size=2># the RTP media streams. For clients that are
asymmetric regarding the SIP</FONT> <BR><FONT face="Courier New" size=2>#
signaling, use the equivalent SIP version of this file.</FONT> <BR><FONT
face="Courier New" size=2># Clients that are asymmetric for both SIP
signaling as well as RTP media</FONT> <BR><FONT face="Courier New" size=2>#
streams should go in both files.</FONT> <BR><FONT face="Courier New"
size=2>#</FONT> </P>
<P><FONT face="Courier New" size=2>siph323</FONT> </P>
<P><FONT face=Arial size=2>But not solve the problem.</FONT> </P>
<P><FONT face=Arial size=2>Can someone help me here?</FONT> <BR><FONT
face=Arial size=2>Thanks in advance</FONT> </P>
<P><FONT face=Arial size=2>Regards</FONT> </P>
<P><FONT face=Arial size=2>Ricardo Martinez.-</FONT> <BR><FONT face=Arial
size=2>RedVoiss.</FONT> <BR><FONT face=Arial size=2>
</FONT></P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>