SIP trunk NAT trouble

SkykingOH
Posts: 2619
Member Since:
2007-12-17

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" ;tag=as73a185c9
To:
Contact:

--

Scott

aka "Skyking"



phonebuff
Posts: 424
Member Since:
2007-02-15
Not Usally in the Trunk --

Scott,

Normally, I set it this way, instead of the externip being on the specific trunk.

sip_nat.conf
externip=61.158.x.y
localnet=172.17.128.11/255.255.255.0
localnet=172.17.1281.1/255.255.255.0
nat=yes

Plus on the trunk I set
defaultexpirey=3600



SkykingOH
Posts: 2619
Member Since:
2007-12-17
Thanks, that makes sense.

Thanks, that makes sense. This is my first attempt and trunking without a VPN.

I had to go rescue my wife we had a ba ice storm so I will give it a shot in the morning. I have the system mocked up at my office.

Regards....Scott

--

Scott

aka "Skyking"



rrichiez
Posts: 263
Member Since:
2006-12-07
hey

what does defaultexpirey=3600 make it do ? does it make it refresh?

rrichiez



phonebuff
Posts: 424
Member Since:
2007-02-15
Re: defaultexpirey

Controls how often you re-register
defaultexpirey= Number : Default duration (in seconds) of incoming/outgoing registration. Default 120 seconds.



SkykingOH
Posts: 2619
Member Since:
2007-12-17
Outbound working DID's close

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

--

Scott

aka "Skyking"



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.