<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2737.800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Trebuchet MS" size=2>I have problems with sems and 
SER+mediaproxy</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2>When i send a call to sems for voicemail 
the SDP content received by sems have the c= line with the private address of 
caller. Before send the call to sems my SER use mediaproxy to fix nat problems, 
but sems dont receive the SDP changed and the RTP generated by SEMS is sent to 
the wrong ip address.</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Courier size=2>-- on my ser.cfg --</FONT></DIV>
<DIV><FONT face=Courier size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(method=="INVITE") 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
log(1,"ROUTE_0: INVITE METHOD\n");</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Courier 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(!search("^Record-Route:")) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
log(1,"ROUTE_0: Use 
Mediaproxy");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
use_media_proxy();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>...</FONT></DIV>
<DIV><FONT face=Courier size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
log(1,"ROUTE_1: ARCOTEL-TO-ARCOTEL 
");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
lookup("aliases");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(!lookup("location")) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(1, 
"ROUTE_1: USER OFFLINE OR 
INVALID\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
route(8);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<BR>...</FONT></DIV>
<DIV><FONT face=Courier size=2>route[8] 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(1,"ROUTE_8: 
VOICEMAIL");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!t_newtran()) { 
sl_reply_error(); break; };<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
use_media_proxy();<BR></FONT><FONT face=Courier 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
t_reply("183","Conectandose");<BR></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><FONT 
face=Courier>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if(!vm("/tmp/am_fifo","voicemail")){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
log(1,"could not contact 
voicemail\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
t_reply("500","could not contact 
voicemail");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>break;<BR>}<BR></FONT>
<DIV><FONT face=Courier size=2>-- on my ser.cfg --</FONT></DIV>
<DIV><FONT face=Courier></FONT>&nbsp;</DIV>
<DIV><FONT face=Courier>-- on syslog file --</FONT></DIV>
<DIV>May 26 10:13:17 billing /usr/sbin/ser[9814]: ROUTE_1: 
ARCOTEL-TO-ARCOTEL<BR>May 26 10:13:17 billing /usr/sbin/ser[9814]: ROUTE_1: USER 
OFFLINE OR INVALID<BR>May 26 10:13:17 billing /usr/sbin/ser[9814]: ROUTE_8: 
VOICEMAIL<BR>May 26 10:13:17 billing proxydispatcher[9919]: command request <A 
href="mailto:3B48F4D2-CB2B-42B2-80AD-F5064BC02868@10.10.0.29">3B48F4D2-CB2B-42B2-80AD-F5064BC02868@10.10.0.29</A> 
10.10.0.29:800<BR>0 200.80.35.6 arcotel.net local arcotel.net local 
X-Lite=20release=201103a flags=<BR>May 26 10:13:17 billing 
proxydispatcher[9919]: domain arcotel.net doesn't define any mediaproxy.<BR>May 
26 10:13:17 billing proxydispatcher[9919]: will use default mediaproxy for this 
call.<BR>May 26 10:13:17 billing mediaproxy[25721]: command request <A 
href="mailto:3B48F4D2-CB2B-42B2-80AD-F5064BC02868@10.10.0.29">3B48F4D2-CB2B-42B2-80AD-F5064BC02868@10.10.0.29</A> 
10.10.0.29:8000 20<BR>0.80.35.6 arcotel.net local arcotel.net local 
X-Lite=20release=201103a flags=<BR>May 26 10:13:17 billing 
proxydispatcher[9919]: forwarding to mediaproxy on /var/run/mediaproxy.sock: 
got: 'public.ip.proxy 35062<BR>May 26 10:13:17 billing /usr/sbin/ser[9812]: 
ROUTE_0: Fixing Contact<BR>May 26 10:13:17 billing /usr/sbin/ser[9812]: 
ACK<BR>May 26 10:13:17 billing /usr/sbin/ser[9812]: END ROUTE_0 - RELAY<BR>May 
26 10:13:27 billing /usr/sbin/ser[9839]: ROUTE_0: Fixing Contact<BR>May 26 
10:13:27 billing /usr/sbin/ser[9839]: BYE</DIV>
<DIV>
<DIV><FONT face=Courier>-- on syslog file --</FONT></DIV>
<DIV><FONT face=Courier></FONT>&nbsp;</DIV>
<DIV><FONT face=Courier>-- on SEMS trace --</FONT></DIV>
<DIV>...</DIV>
<DIV><FONT face=Courier>(9780) DEBUG: execute (AmServer.cpp:277): body: 
`v=0<BR>o=ecolombo 2205701 2205771 IN IP4 10.10.0.29<BR>s=X-Lite<BR>c=IN IP4 
10.10.0.29<BR>t=0 0<BR>m=audio 8000 RTP/AVP 3 0 101<BR>a=rtpmap:0 
pcmu/8000<BR>a=rtpmap:3 gsm/8000<BR>a=rtpmap:101 
telephone-event/8000<BR>a=fmtp:101 0-15</FONT></DIV>
<DIV><FONT face=Courier>...</FONT></DIV>
<DIV><FONT face=Courier>(9920) DEBUG: setRAddr (AmRtpStream.cpp:333): RTP remote 
address set to 10.10.0.29:8000<BR>(9920) DEBUG: negotiate (AmSession.cpp:150): 
Sending Rtp data to 10.10.0.29/8000<BR>...</FONT><BR><FONT face=Courier>-- on 
SEMS trace --</FONT></DIV>
<DIV><FONT face=Courier></FONT>&nbsp;</DIV>
<DIV><FONT face=Courier>Thanks</FONT></DIV>
<DIV><FONT face=Courier>Ezequiel 
Colombo</FONT></DIV></DIV></DIV></FONT></BODY></HTML>