[asterisk-users] How to change the IP in the SIP contact header

Jamie A. Stapleton jstapleton at computer-business.com
Mon Jul 5 13:05:17 CDT 2010


Have you tried setting

externip=

In the [general] of your sip.conf?

From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Eyal Goltzman
Sent: Monday, July 05, 2010 1:58 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: [asterisk-users] How to change the IP in the SIP contact header

Hello,

I'm trying to use a SIP trunk service and the provider ask me to have the IP address of the contact header as my public IP and not as my private one, how can I do it?

See attached the SIP invite where a.b.c.d is the SIP server IP and x.y.z.w is my public address:

sipINVITE sip:144@ a.b.c.d SIP/2.0
Via: SIP/2.0/UDP 10.100.101.107:5060;branch=z9hG4bK76d52819;rport
Max-Forwards: 70
From: "Polycom" <sip:100@ x.y.z.w>;tag=as7435100b
To: <sip:144@ a.b.c.d >
Contact: <sip:100 at 10.100.101.107>
Call-ID: 08116cf06661dc091de10c1b3315d2f7 at 84.94.96.110
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Date: Mon, 05 Jul 2010 15:49:31 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 292

v=0
o=root 1812163927 1812163927 IN IP4 10.100.101.107
s=Asterisk PBX 1.6.1.20
c=IN IP4 10.100.101.107
t=0 0
m=audio 18848 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100705/79130978/attachment.htm 


More information about the asterisk-users mailing list