I have an asterisk server set up behind nat, but in DMZ of a router. For some reason all external sip peers are replacing the IP address in the Call-ID field with my local ip. For example:
— (11 headers 0 lines) —
Retransmitting #4 (no NAT) to 204.11.194.34:5060:
OPTIONS sip:204.11.194.34 SIP/2.0
Via: SIP/2.0/UDP 70.52.XXX.XXX:5060;branch=z9hG4bK4cbf897b
From: “asterisk” sip:asterisk@70.52.XXX.XXX;tag=as56f56362
To: sip:204.11.194.34
Contact: sip:asterisk@70.52.XXX.XXX
Call-ID: 04bae49d7fc5d6b376396c16142625a2@70.52.XXX.XXX
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Fri, 03 Aug 2007 05:54:15 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0
Destroying call '04bae49d7fc5d6b376396c16142625a2@70.52.XXX.XXX’
<-- SIP read from 204.11.194.34:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.2.2:5060
From: “asterisk” sip:asterisk@70.52.XXX.XXX;tag=as56f56362
To: sip:204.11.194.34;tag=as4b6b93a0
Call-ID: 04bae49d7fc5d6b376396c16142625a2@192.168.2.2
CSeq: 102 OPTIONS
User-Agent: DID World Wide USA
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: sip:204.11.194.34
Accept: application/sdp
Content-Length: 0
In my sip.conf I use:
externip=70.52.XXX.XXX
localnet=192.168.0.0/255.255.0.0
This same problem occurs with every SIP client I have tried (including X-Lite). What kills me is that I have another asterisk server set up the same way in another location with no problem. Does anyone have any idea what the problem is?