[Asterisk-Users] Can't Receive/Send Calls
Norman Zhang
norman.zhang at rd.arkonnetworks.com
Wed Dec 22 13:08:42 MST 2004
Hi,
I can't receive/send calls with Asterisk. Could someone please give me a
few pointers on my configuration?
Regards,
Norman Zhang
; sip.conf
[general]
disallow=all
allow=ulaw
port=5060
bindaddr=0.0.0.0
externip=x.x.x.x
localnet=192.168.22.0
mask=255.255.255.0
context=inbound-sip
maxexpirey=180
defaultexpirey=160
tos=reliability
srvlookup=yes
register => 533990:secret at fwd.pulver.com/533990
[fwd]
type=friend
secret=testing123
username=533990
fromuser=533990
fromdomain=fwd.pulver.com
host=fwd.pulver.com
dtmfmode=inband
nat=yes
canreinvite=no
[101]
disallow=all
allow=ulaw
type=friend
host=dynamic
dtmfmode=inband
username=101
secret=testing123
context=home
nat=no
[102]
disallow=all
allow=ulaw
type=friend
host=dynamic
dtmf=inband
username=102
secret=testing123
context=home
nat=no
; Extensions.conf
[general]
static=yes
writeprotect=no
[globals]
MAINPHONE=SIP/101
FWDUSERID1=533990
FWD1USERNAME=Norman Zhang
FWDPREFIX=*
HOMENUMBER=XXXXXXXXXX
; 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(${FWDUSERID1})
exten => s,2,SetCIDName(${FWD1USERNAME})
exten => s,3,Dial(SIP/${FWDPREFIX}${ARG1}@fwd,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
; 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)
[fwd-out]
exten => _8.,1,SetCallerID(${FWDUSERID1})
exten => _8.,2,SetCIDName(${FWD1USERNAME})
exten => _8.,3,Dial(SIP/${EXTEN:1}@fwd,70)
exten => _8.,4,Macro(fastbusy)
exten => _8.,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)
[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 => _1XXXXXXXXXX,1,Macro(dialoutsip,${EXTEN})
exten => _1XXXXXXXXXX,2,Macro(fastbusy)
exten => _1XXXXXXXXXX,102,Dial(${DIALOUTANALOG}/${EXTEN})
exten => _1XXXXXXXXXX,103,Macro(fastbusy)
[home]
include => operator
include => e911
include => forced-analog
include => fwd-out
include => information
include => local
include => toll-free
include => long-distance
; sip lines
[nighttime-fwd1]
exten => s,1,Wait(2)
exten => s,2,Background(nighttime)
exten => 1,1,Goto(daytime-sip1,s,1)
exten => 2,1,Voicemail(u2201)
exten => 3,1,Voicemail(u2206)
exten => 4,1,Voicemail(u2202)
exten => 9,1,Playback(transfer)
exten => 9,2,Goto(local,2206,1)
[daytime-fwd1]
exten => s,1,Dial(${MAINPHONE}&${KITCHEN},15)
exten => s,2,Dial(${JESSICA},6)
exten => s,3,Dial(${BILL},6)
exten => s,4,Voicemail(u2201)
exten => s,5,Hangup
[inbound-fwd1]
include => daytime-fwd1|9:00-21:00|*|*
include => nighttime-fwd1|21:00-9:00|*|*
[inbound-sip]
exten => 533990,1,Goto(local,101,1)
; Internal Extensions
[local]
exten => 101,1,Dial(${MAINPHONE},20,Tt)
exten => 101,2,Voicemail(u101)
exten => 101,3,Hangup
exten => 101,102,Voicemail(b101)
exten => 101,103,Hangup
More information about the asterisk-users
mailing list