[Asterisk-Users] Register vith SIP provider from behind NAT

Chris Stenton jacs at gnome.co.uk
Wed Mar 31 07:39:01 MST 2004


Simon,

Yep as of yesterday,  after days of playing about,  I can register with FWD
and receive incoming and dial out calls via my Cisco 837 and also receive
general sip calls..

[cisco]
On the 837 I have opened ports 5060 and 5004 and used PAT to pass them to
the * server. I am not using "inspect sip"  as it crashes the cisco box for
some reason.

I am not sure if 5004 is needed I have not had time to take it out and
retest. I have not needed to open the RTP (rtp.conf) block of ports.

Here are the relevant configs with obvious passwords and numbers taken out

Chris

***extensions.conf***

[fwd]

;---------------------------------------

exten => _7.,1,SetCallerID(xxxxxx)
exten => _7.,2,SetCIDName(Foo Bar)
exten => _7.,3,Dial(SIP/${EXTEN:1}:fwdpasswd at fwd.pulver.com)
exten => _7.,4,Playback(invalid)
exten => _7.,5,Hangup

**sip.conf**


[general]
port=5060
bindaddr=0.0.0.0
externip=xxx.xxx.xxx.xxx     ; external IP address of Cisco box
localnet=192.168.3.0             ; internal net
localmask=255.255.255.0
tos=reliability
disallow=all
allow=gsm
allow=ulaw
allow=alaw
context=sip-in
;
register => fwdnumber:fwdpasswd at fwd.pulver.com/201
;
[guest]
type=user
context=sip-in
callerid="Guest SIP User"

[fwd.pulver.com]
nat=yes
type=friend
host=fwd.pulver.com
secret="fwdpasswd"
username="fwdnumber"
fromuser="fwdnumber"
fromdomain=fwd.pulver.com
context=sip-in

; SIP Phone Entry
;
[201]
type=friend
username=201
secret=mypasswd
host=dynamic
context=toll-access
qualify=1000
callerid="Me" <201>
mailbox=201
disallow=all
allow=g729
allow=ulaw
allow=alaw
allow=gsm
dtmfmode=rfc2833
nat=no



----- Original Message ----- 
From: "Simon Brown" <Simon.Brown at otterson.com.au>
To: <asterisk-users at lists.digium.com>
Sent: Wednesday, March 31, 2004 7:37 AM
Subject: [Asterisk-Users] Register vith SIP provider from behind NAT


> I cannot successfully register with, or even make calls to, a SIP provider
> (such as FWD) with my * server sitting behind a NAT.  The firewall is a
Cisco
> 827 router running 12.3 IOS.
>
> Has anyone successfully got their server behind NAT to register or make a
> call to a SIP provider?
>
> TIA
>
> Simon
>
> -----
> This mail was content checked for malicious code and viruses
> by GFI MailSecurity.
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list