SIP trunk NAT trouble
I must be doing something really stupid here.
I have NAT turned on in the trunk config, and the IP address set. However when I look at the invite going out I see the LAN IP in the header.
Any ideas?
trunk config:
type=peer
port=5060
nat=yes
host=64.158.162.78
externip=66.243.25.35
dtmfmode=rfc2833
disallow=all
canreinvite=no
allow=ulaw
tcpdump:
18:12:42.021025 IP 192.168.0.252.5060 > unknown.voipum.com.5060: UDP, length 747
Eh..._..@.......@..N........INVITE sip:14403426400@64.158.162.78 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.252:5060;branch=z9hG4bK32449a27;rport
From: "6312846580"
To:
Contact:
Thanks to everyone especially phonebuff. I have outbound working through a Sonus media gateway.
Inbound is very close. I have tried changing the context to from-trunk and from-pstn with no change. The box answers with a not in service message. I tried to follow the contexts in extensions.conf just to understand the meaning of the context but could not figure it out.
I have copied my trunk settings below,
[ext-did]
include => ext-did-custom
exten => fax,1,Goto(ext-fax,in_fax,1)
exten => s,1,Set(__FROM_DID=${EXTEN})
exten => s,n,GotoIf($[ "${CALLERID(name)}" != "" ] ?cidok)
exten => s,n,Set(CALLERID(name)=${CALLERID(num)})
exten => s,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => s,n,Goto(from-did-direct,200,1)
exten => 6312846580,1,Set(__FROM_DID=${EXTEN})
exten => 6312846580,n,GotoIf($[ "${CALLERID(name)}" != "" ] ?cidok)
exten => 6312846580,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 6312846580,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 6312846580,n,Goto(from-did-direct,203,1)
[6312846580@66.243.25.35]
type=friend
insecure=very
host=64.158.162.78
context=from-trunk
Debug trace:
Executing NoOp("SIP/64.158.177.99-08fd42a0", "Received incoming SIP connection from unknown peer to 6312846580") in new stack
-- Executing Set("SIP/64.158.177.99-08fd42a0", "DID=6312846580") in new stack
-- Executing Goto("SIP/64.158.177.99-08fd42a0", "s|1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing GotoIf("SIP/64.158.177.99-08fd42a0", "0?from-trunk|6312846580|1") in new stack
-- Executing Set("SIP/64.158.177.99-08fd42a0", "TIMEOUT(absolute)=15") in new stack
-- Channel will hangup at 2008-03-07 04:01:54 UTC.
-- Executing Answer("SIP/64.158.177.99-08fd42a0", "") in new stack
-- Executing Wait("SIP/64.158.177.99-08fd42a0", "2") in new stack
-- Executing Playback("SIP/64.158.177.99-08fd42a0", "ss-noservice") in new stack
-- Playing 'ss-noservice' (language 'en')
-- Executing PlayTones("SIP/64.158.177.99-08fd42a0", "congestion") in new stack
-- Executing Congestion("SIP/64.158.177.99-08fd42a0", "5") in new stack
Scott


Member Since:
2007-12-17