Hi All,
I am a newbie and I have been trying to setup asterisk just for the purpose of distributing incoming calls to 3 different extensions.
The problem I am currently facing is, when a call comes in and if the first extension is already busy then the call is not routed to the second extension. I would here a call waiting beep on the first extension, eventhough I have disabled call waiting for the user agents.
And while the second caller is calling, the call information is not displayed in the List of active channels.
I am using AsteriskNOW 1.0.2.
Please see my config files and let me know what I am missing.
- I am routing all incoming calls from the fxo port to the incoming context (of extensions.conf) :see the [trunk_1] context of the users.conf file.
users.conf
[general]
fullname=New User
userbase=6001
hasvoicemail=no
vmsecret=1234
hassip=no
hasiax=no
hasmanager=no
callwaiting=no
threewaycalling=no
callwaitingcallerid=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
callgroup=1
pickupgroup=1
host=dynamic
localextenlength=4
allow_aliasextns=no
allow_an_extns=no
hasagent=yes
hasdirectory=no
login_callback_exten=500
[6002]
callwaiting=no
context=numberplan-custom-1
fullname=New User
hasagent=yes
hasdirectory=no
hasiax=no
hasmanager=no
hassip=no
hasvoicemail=no
deletevoicemail=no
host=dynamic
mailbox=6002
threewaycalling=no
vmsecret=1234
zapchan=2
registeriax=no
registersip=no
autoprov=no
canreinvite=no
nat=no
dtmfmode=rfc2833
disallow=all
allow=all
signalling=fxo_ks
[6003]
callwaiting=no
context=numberplan-custom-1
fullname=New User
hasagent=yes
hasdirectory=no
hasiax=no
hasmanager=no
hassip=no
hasvoicemail=no
deletevoicemail=no
host=dynamic
mailbox=6003
threewaycalling=no
vmsecret=1234
zapchan=3
registeriax=no
registersip=no
autoprov=no
canreinvite=no
nat=no
dtmfmode=rfc2833
disallow=all
allow=all
signalling=fxo_ks
[6004]
callwaiting=no
context=numberplan-custom-1
fullname=New User
hasagent=yes
hasdirectory=no
hasiax=no
hasmanager=no
hassip=no
hasvoicemail=no
deletevoicemail=no
host=dynamic
mailbox=6004
threewaycalling=no
vmsecret=1234
zapchan=4
registeriax=no
registersip=no
autoprov=no
canreinvite=no
nat=no
dtmfmode=rfc2833
disallow=all
allow=all
signalling=fxo_ks
[trunk_1]
signalling=fxs_ks
callerid=asreceived
context=incoming
canreinvite=no
group=1
hasexten=no
hasiax=no
hassip=no
trunkname=Port 1
trunkstyle=analog
zapchan=1
- As soon as the call comes in it is added to the queue: see the incoming context
extensions.conf
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
[globals]
trunk_1=Zap/g1
[default]
exten=6050,1,VoiceMailMain
exten=7000,1,Goto(voicemenu-custom-1|s|1)
exten=500,1,agentcallbacklogin()
exten=1000,1,Queue(${EXTEN})
exten=6002,1,Dial(Zap/2)
exten=6003,1,Dial(Zap/3)
exten=6004,1,Dial(Zap/4)
[incoming]
exten=s,1,Answer
exten=s,2,Ringing
exten=s,3,Wait(2)
exten=s,4,Queue(1000|t|||180)
exten=s,5,Hangup
- And once the queue decides which user(agent) to ring, the extension is then dialed. See the default context in the extensions.conf (above)
queues.conf
[general]
persistentmembers=yes
autofill=yes
monitor-type=MixMonitor
[1000]
fullname=ACD
strategy=roundrobin
timeout=
wrapuptime=
autofill=no
autopause=no
maxlen=
joinempty=no
leavewhenempty=no
reportholdtime=no
musicclass=
member=Agent/6002
member=Agent/6003
member=Agent/6004