[Asterisk-Users] FWD-NAT-*

2005-01-16 Thread Joseph
I found this configuration file on Wiki for FWD behind firewall

; SIP Configuration for Asterisk
;

[general]
disallow=all
allow=ulaw
port=5060   ; Port to bind to
bindaddr=0.0.0.0; Address to bind SIP channel to
externip=xxx.xxx.xxx.xxx
localnet=172.16.1.0
localmask=255.255.255.0
context=inbound-sip ; Default context for incoming calls
maxexpirey=180
defaultexpirey=160
tos=reliability
srvlookup=yes
register = FWD#:[EMAIL PROTECTED]/FWD#


bindaddr=0.0.0.0  - is this the address of my asterisk server
externip=xxx.xxx.xxx.xxx  - this is my external IP before firewall isn't it?

When I try to register, I get: sip_reg_timeout: Registration for ...

What am I missing?

-- 
#Joseph
___
Asterisk-Users mailing list
Asterisk-Users@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


Re: [Asterisk-Users] FWD-NAT-*

2005-01-16 Thread Daryll Strauss
You probably want to use IAX to talk to FWD. It tunnels through NAT
without any special changes. See
http://www.fwd.pulver.com/advanced/iax

Making asterisk work through NAT is a pain and some of the Wiki stuff
is wrong/out dated. This works for me:

In sip.conf:
   localnet: 192.168.1.0/255.255.255.0
   externip: MYIP

Then look at rtp.conf and see what range of ports it uses. Mine is
1-11000 (since I never have a lot of calls at once)

Then I configured my firewall to route 5060 (sip) and 1-11000
(rtp) to my asterisk box. I'm sending both TCP and UDP, but I suspect
UDP is really the only protocol required.

- |Daryll
___
Asterisk-Users mailing list
Asterisk-Users@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


Re: [Asterisk-Users] FWD-NAT-*

2005-01-16 Thread James H. Thompson



 Making asterisk work through NAT is a pain and some of the Wiki 
stuff is wrong/out dated. This works for me:Please 
feel free tofix or point out what is wrong/outdated so someone else can 
fix.

Thanks.



___
Asterisk-Users mailing list
Asterisk-Users@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

[Asterisk-Users] FWD-NAT-* config info

2004-04-17 Thread William J Mandra
Here is my sip.conf and extensions.conf which allow me inbound and outbound
calling between * and Freeworld Dialup, with * behind a NAT.

;
; SIP Configuration for Asterisk
;

[general]
disallow=all
allow=ulaw
port=5060   ; Port to bind to
bindaddr=0.0.0.0; Address to bind SIP channel to
externip=xxx.xxx.xxx.xxx
localnet=172.16.1.0
localmask=255.255.255.0
context=inbound-sip ; Default context for incoming calls
maxexpirey=180
defaultexpirey=160
tos=reliability
srvlookup=yes
register = 290805:[EMAIL PROTECTED]/290805
register = 293440:[EMAIL PROTECTED]/293440

[fwd1]
type=friend
secret=secret
username=293440
fromuser=293440
fromdomain=fwd.pulver.com
host=fwd.pulver.com
dtmfmode=inband
nat=yes
canreinvite=no

[fwd2]
type=friend
secret=secret
username=290805
fromuser=290805
fromdomain=fwd.pulver.com
host=fwd.pulver.com
dtmfmode=inband
nat=yes
canreinvite=no

[phone17]
disallow=all
allow=ulaw
type=friend
host=dynamic
defaultip=172.16.1.17
dtmfmode=inband
secret=voip17
mailbox=2206
context=home
callerid=Bill Mandra 2206
nat=no

[phone18]
disallow=all
allow=ulaw
type=friend
host=dynamic
defaultip=172.16.1.18
dtmfmode=inband
secret=voip18
mailbox=2201
context=home
callerid=Kitchen 2204
nat=no

;
; Static extension configuration file, used by
; the pbx_config module. This is where you configure all your
; inbound and outbound calls in Asterisk.
;

[general]
static=yes
writeprotect=no

[globals]
DIALOUTANALOG=Zap/1
MAINPHONE=Zap/2
JESSICA=Zap/3
CHRISTOPHER=Zap/4
PORCH=Zap/5
KITCHEN=SIP/phone18
BILL=SIP/phone17

FWDUSERID1=290805
FWD1USERNAME=William Mandra
FWDUSERID2=293440
FWD2USERNAME=Donna Mandra
FWDPREFIX=*

HOMENUMBER=XX

BILLCELLPHONE=9XX
MOMCELLPHONE=1XX
;JESSCELLPHONE=1XX

;
; Macros
;

[macro-fastbusy]
exten = s,1,Answer
exten = s,2,Wait,1
exten = s,3,Playback(ss-noservice)
exten = s,4,Wait(30)
exten = s,5,Hangup

[macro-dialoutsip]
exten = s,1,SetCallerID(${FWDUSERID2})
exten = s,2,SetCIDName(${FWD2USERNAME})
exten = s,3,Dial(SIP/[EMAIL PROTECTED],70)
exten = s,4,Macro(fastbusy)
exten = s,5,Hangup
exten = s,104,Macro(fastbusy)
exten = s,105,Wait,3
exten = s,106,Playtones(congestion)
exten = s,107,Wait,30
exten = s,108,Hangup

[macro-billcellfwdoutsip2]
exten = s,1,SetCallerID(${ARG2})
exten = s,2,Dial(SIP/[EMAIL PROTECTED],20)
exten = s,3,Goto(local,2206,4)
exten = s,102,Goto(local,2206,4

;
; Outbound
;

[operator]
exten = 0,1,Dial(${DIALOUTANALOG}/${EXTEN},70)
exten = 0,2,Macro(fastbusy)
exten = 0,102,Playback(ss-noservice)
exten = 0,103,Macro(fastbusy)

[e911]
exten = 911,1,Dial(${DIALOUTANALOG}/${EXTEN})
exten = 911,2,Macro(fastbusy)
exten = 911,102,Playback(ss-noservice)
exten = 911,103,Macro(fastbusy)

[forced-analog]
exten = _9.,1,Dial(${DIALOUTANALOG}/${EXTEN:1},70)
exten = _9.,2,Macro(fastbusy)
exten = _9.,102,Macro(fastbusy)

[fwd1-out]
exten = _8.,1,SetCallerID(${FWDUSERID2})
exten = _8.,2,SetCIDName(${FWD2USERNAME})
exten = _8.,3,Dial(SIP/${EXTEN:[EMAIL PROTECTED],70)
exten = _8.,4,Macro(fastbusy)
exten = _8.,5,Hangup

[fwd2-out-pvt]
exten = _7.,1,SetCallerID(${FWDUSERID1})
exten = _7.,2,SetCIDName(${FWD1USERNAME})
exten = _7.,3,Dial(SIP/${EXTEN:[EMAIL PROTECTED],70)
exten = _7.,4,Macro(fastbusy)
exten = _7.,5,Hangup

[information]
exten = 411,1,Dial(${DIALOUTANALOG}/${EXTEN},70)
exten = 411,2,Macro(fastbusy)
exten = 411,102,Playback(ss-noservice)
exten = 411,103,Macro(fastbusy)

[pstn-local]
exten = _1973.,1,Dial(${DIALOUTANALOG}/${EXTEN:1})
exten = _1973.,2,Macro(fastbusy)
exten = _1973.,102,Macro(dialoutsip,${EXTEN})

exten = _1201.,1,Dial(${DIALOUTANALOG}/${EXTEN})
exten = _1201.,2,Macro(fastbusy)
exten = _1201.,102,Macro(dialoutsip,${EXTEN})

[pstn-local-toll]
exten = _11973.,1,Dial(${DIALOUTANALOG}/${EXTEN:1})
exten = _11973.,2,Marco(fastbusy)
exten = _11973.,102,Macro(dialoutsip,${EXTEN:1})

exten = _11201.,1,Dial(${DIALOUTANALOG}/$EXTEN:1})
exten = _11201.,2,Macro(fastbusy)
exten = _11201.,102,Macro(dialoutsip,${EXTEN:1})

[toll-free]
exten = _1888.,1,Dial(${DIALOUTANALOG}/${EXTEN})
exten = _1888.,2,Macro(fastbusy)
exten = _1888.,102,Macro(dialoutsip,${EXTEN})

exten = _1877.,1,Dial(${DIALOUTANALOG}/$EXTEN})
exten = _1877.,2,Macro(fastbusy)
exten = _1877.,102,Macro(dialoutsip,${EXTEN})

exten = _1855.,1,Dial(${DIALOUTANALOG}/{${EXTEN})
exten = _1855.,2,Macro(fastbusy)
exten = _1855.,102,Macro(dialoutsip,${EXTEN})

exten = _1800.,1,Dial(${DIALOUTANALOG}/${EXTEN})
exten = _1800.,2,Macro(fastbusy)
exten = _1800.,102,Macro(dialoutsip,${EXTEN})

[long-distance]
exten = _1XX,1,Macro(dialoutsip,${EXTEN})
exten = _1XX,2,Macro(fastbusy)
exten = _1XX,102,Dial(${DIALOUTANALOG}/${EXTEN})
exten = _1XX,103,Macro(fastbusy)

[home]
include = operator
include = e911
include = forced-analog
include = fwd1-out
include = fwd2-out-pvt
include = information
include = local
include = pstn-local
include = pstn-local-toll
include = toll-free
include = long-distance

;
; Inbound
;   analog line