<!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.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thanks very much.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have altered the mediaproxy setup and that now 
works&nbsp;(what a relief). However what I did was not quite what you 
suggested.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>When I updated the mediaproxy init.d script and 
tried to start mediaproxy I got the message "no such option: --ip" which I was a 
little surprised about. I am running mediaproxy 1.3.0. So I did a bit more 
reading and updated the mediaproxy.ini script instead adding the line proxyIP = 
XXX.XXX.XXX.XXX. Anyway I don't know if that's a change in the latest version of 
mediaproxy or if I did something stupid.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Nevertheless I should have RTFM'd from the start! 
Once again many many thanks for you help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Cameron</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=javarockx@gmail.com href="mailto:javarockx@gmail.com">Java Rockx</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=ext_news@appsfarm.com 
  href="mailto:ext_news@appsfarm.com">Cameron Beattie</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=serusers@lists.iptel.org 
  href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, April 20, 2005 12:38 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Serusers] SER &amp; 
  Mediaproxy: XLite - Audio OK, Sipura - No audio</DIV>
  <DIV><BR></DIV>Cameron,<BR><BR>The problem is that the c= field in the SDP 
  payload is always pointing to <A href="http://127.0.0.1">127.0.0.1</A> (aka, 
  your loopback interface). This is not going to work since neither Sipura or 
  X-lite client can connect to your loopback interface.<BR><BR>More 
  specifically, the INVITE message that is sent from the Sipura to the SER proxy 
  is then rewritten and then relayed to the X-lite SIP UA. This relayed INVITE 
  has the incorrect c= field in the SDP.<BR><BR>Likewise, the 200OK that X-lite 
  replies with is then rewritten by SER and relayed to the Sipura UA. This 200OK 
  also has a c= of <A href="http://127.0.0.1">127.0.0.1</A><BR><BR>I suspect 
  that your call to use_media_proxy() is correct, but media proxy is running on 
  the wrong interface.<BR><BR>If you look at the <A 
  href="http://onsip.org">onsip.org</A> documentation you will find a mediaproxy 
  init.d start script in the appendix. In this start script you will see the 
  following line:<BR><BR>PROXY_OPTIONS="--ip=<A 
  href="http://71.16.1.15">71.16.1.15</A> --listen=<A 
  href="http://127.0.0.1">127.0.0.1</A>"<BR><BR>The --ip option must be an IP 
  that is available to all SIP clients (NATed an non-NATed). Therefore you 
  should specify a public ip address. This then is the ip that will be used in 
  the c= field in the SDP payload. The --listen parameter can be <A 
  href="http://127.0.0.1">127.0.0.1</A> if you are running mediaproxy on your 
  SIP router. If not, then you will need to change this as well.<BR><BR>NOTE: If 
  you're mediaproxy is behind an ALG enabled router, such as a Cisco 3600, then 
  the router will rewrite the RFC1918 IPs with the public ones, so in this case 
  you would use the --ip option as an RFC1918 
  address.<BR><BR>Regards,<BR>Paul<BR>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Serusers mailing 
  list<BR>serusers@lists.iptel.org<BR>http://lists.iptel.org/mailman/listinfo/serusers<BR></BLOCKQUOTE></BODY></HTML>