[Asterisk-Users] Can't Receive/Send Calls

Norman Zhang norman.zhang at rd.arkonnetworks.com
Wed Dec 22 19:24:34 MST 2004


Norman Zhang wrote:
> I can't receive/send calls with Asterisk. Could someone please give me a 
> few pointers on my configuration?

I removed all the PSTN stuffs. As I'm only trying to make SIP work. 
Would someone kindly give me a few pointers?

Regards,
Norman Zhang

[general]
disallow=all
allow=ulaw
port=5060
bindaddr=0.0.0.0
externip=207.34.136.26
localnet=192.168.22.0/255.255.255.0
context=inbound-sip
maxexpirey=180
defaultexpirey=160
tos=reliability
srvlookup=yes
register => 533990:normanzhang at fwd.pulver.com/533990

[fwd]
type=friend
secret=normanzhang
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

; extensions.conf

[general]
static=yes
writeprotect=no

[globals]
MAINPHONE=SIP/101
FWDUSERID=533990
FWDUSERNAME=Norman Zhang
FWDPREFIX=*

; 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(${FWDUSERID})
exten => s,2,SetCIDName(${FWDUSERNAME})
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

[fwd-out]
exten => _8.,1,SetCallerID(${FWDUSERID})
exten => _8.,2,SetCIDName(${FWDUSERNAME})
exten => _8.,3,Dial(SIP/${EXTEN:1}@fwd,70)
exten => _8.,4,Macro(fastbusy)
exten => _8.,5,Hangup

[long-distance]
exten => _1XXXXXXXXXX,1,Macro(dialoutsip,${EXTEN})
exten => _1XXXXXXXXXX,2,Macro(fastbusy)

; SIP lines

[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

[home]
include => fwd-out
include => local
include => long-distance



More information about the asterisk-users mailing list