Project

General

Profile

client sends invite SDP message (which describes RTP connection parameters) with internal IP

Added by CYRILLE GUERBE over 8 years ago

Hello,
I created a new carrier but when I use it we have no voice.
The carrier made a SIP Trace and he told me that is a NAT issue.
Here the comment :

_The issue is that client sends invite SDP message (which describes RTP connection parameters)
with internal IP. So M2 sends RTP packets to this internal IP and of course these packets do not
reach client, so RTP timeout timer is activated on client system and connection drops.

So solution for this is to inform client to correctly configure system, so that external IP would be

used in SDP description.

INVITE sip:;cpd=on SIP/2.0
Via: SIP/2.0/UDP 192.168.1.200:5060;branch=z9hG4bK38003487;rport
From: "V9171223490000253536" <sip:>;tag=as5e58234c
To: <sip:;cpd=on>
Contact: <sip:>
Call-ID:
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Remote-Party-ID: "V9171223490000253536" <sip:>;privacy=off;screen=no
Date: Thu, 17 Sep 2015 16:24:03 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Content-Type: application/sdp
Content-Length: 238

v=0
o=root 24037 24037 IN IP4 192.168.1.200
s=session
c=IN IP4 192.168.1.200
t=0 0
m=audio 17338 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

Somobody help me ? Where I can modify the internal IP to external IP ?


Replies (3)

RE: client sends invite SDP message (which describes RTP connection parameters) with internal IP - Added by Wittie Manansala over 8 years ago

Hi,

May we know how many landcard your using? Please also make sure the following ports are opened/enabled:

sip: 5060 (udp)
iax: 4569 (udp)
rtp: 10000 to 65000 (udp)
ssh: 222 (tcp)

Thank you

RE: client sends invite SDP message (which describes RTP connection parameters) with internal IP - Added by CYRILLE GUERBE over 8 years ago

Hi,
The problem comes from this line
o=root 24037 24037 IN IP4 192.168.1.200

Normally the public IP must be appear !

o=root 24037 24037 IN IP4 136.243.91.205

How can we modify it ?

RE: client sends invite SDP message (which describes RTP connection parameters) with internal IP - Added by striker 247 over 8 years ago

put NAT=yes in your sip carrier settings
also enter externip=136.243.91.205 in sip.conf (ie: vi /etc/asterisk/sip.conf)

reload the asterisk once and check..

br
striker
www.striker24x7.blogspot.com

    (1-3/3)
    Go to top