<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi,<br><br>I am trying to run an Asterisk (1.4.10) server on Ubuntu Linux Fiesty Fawn. The server is behind NAT. I am testing SIP with the X-Lite client from xten. The client is also behind NAT.<br><br>I realize that this is amongst the worst configurations, but I have been made to believe that it can work... eventually. However, currently SIP call set up seems to go fine, but no media is transferred in either direction. For example, the following is output on the asterisk CLI despite no voice being heard. <br>-- Executing [101@john:1] Playback('SIP/john-081da978', 'hello-world') in new stack <br><br>I have used tcpdump, ethereal and RTP debug to trace the problem. I have the following data:<br><br>1. My SIP client is correctly receiving and processing SIP/SD packets. Ethereal indicates that the client is told to send RTP traffic to server port 50296 and all packets are sent to this port. However, this port IS NOT in the range specified in rtp.conf. This is my first point of confusion.<br><br>2. Pushing onward, I forwarded ALL ports from my router (NAT) to the Asterisk server to see if Asterisk would then pick up the voice stream. Tcp dump on the Asterisk server indicates:<br>02:48:30.082693 IP pool-71-107-141-25.lsanca.dsl-w.verizon.net.50943 > gaurav-desktop.local.50296: UDP, length 172<br><br>Each of these lines match a line in my ethereal capture on the client. However, still no voice! This is my second point of confusion.<br><br>3. Finally, I tried using RTP debug to trace where audio packets from the server are being sent. The output I got:<br><br>Sent RTP packet to 192.168.1.47:54626 (type 00, seq 058094, ts 012000, len 000160)<br><br>I have no idea where 192.168.1.47:54626 came from. There is no computer on my server's LAN with that local ip, and it is NOT the local IP of my client (which was 10.0.0.3).This is the third point of confusion.<br><br>My conf files are attached. Important details are below:<br><br>1. sip.conf<br>[global]<br>nat=yes<br>canreinvite=no<br><br>[john]<br>context=john<br>nat=yes<br>canreinvite=no<br>host=dynamic<br><br>2. extensions.conf<br><br>[john]<br><br>exten => 100,1,Dial(SIP/john) ; loopback<br>exten => 101,1,Playback(hello-world) ; the basics<br><br>3. rtp.conf<br><br>rtpstart=10000<br>rtpend=20000<br><br>Your expertise would be appreciated. My sincere thanks for your time and help in advance.<br><br>--G<br><br><br><br><br /><hr />Explore the seven wonders of the world <a href='http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE' target='_new'>Learn more!</a></body>
</html>