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

Eyal Goltzman egoltzman at gmail.com
Mon Jul 5 12:57:35 CDT 2010


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/cee7cf4b/attachment.htm 


More information about the asterisk-users mailing list