[Asterisk-Users] Another problem on queues

Jorge Alayon j.alayon at ses.com.ar
Fri Aug 5 07:33:32 MST 2005


Hello all,
 
I have been posting some questions about this problems that I cannot yet solve, but I think I have a better diagostic, so maybe someone can give me a clue why it is happenning.
 
I have Asterisk + AMP configured as a PBX with a Customer Center Queue with 4 agents that login/logout dinamically.
 
If there are no agents, queue timesout and gets derived to another queue that somebody answers as last resort or waits there.
If there is at least one agent logged in, but it is busy, dialparties.agi detects that that extension has no callwaiting, no callforward, no voicemail, and hangs up the call inmediately with a "nobody is available to take your call right now" message, making the queue useless.
 
My PSTN connection is an AS5300 in SIP, my extensions are analog phones connected to an Audiocodes MP108-FXS with SIP.
 
This is the output from CLI with High  Verbosity:
 
XXX.XXX.XXX.XXX is the IP of the AS5300, 8521 and 8522 are the only two agents in the queue that have inbound calls in progress when a third call arrives and this happens. 8500 is the queue number
 
  -- Executing SetVar("SIP/XXX.XXX.XXX.XXX-43921110", "FROM_DID=1154538500") in new stack
    -- Executing Goto("SIP/XXX.XXX.XXX.XXX-43921110", "ext-did|1154538500|1") in new stack
    -- Goto (ext-did,1154538500,1)
    -- Executing Goto("SIP/XXX.XXX.XXX.XXX-43921110", "ext-queues|8500|1") in new stack
    -- Goto (ext-queues,8500,1)
    -- Executing Answer("SIP/XXX.XXX.XXX.XXX-43921110", "") in new stack
    -- Executing SetCIDName("SIP/XXX.XXX.XXX.XXX-43921110", "XXX.XXX.XXX.XXX") in new stack
    -- Executing SetVar("SIP/XXX.XXX.XXX.XXX-43921110", "MONITOR_FILENAME=/var/spool/asterisk/monitor/q") in new stack
    -- Executing Queue("SIP/XXX.XXX.XXX.XXX-43921110", "8500|t|||300") in new stack
    -- Started music on hold, class 'operadores', on SIP/XXX.XXX.XXX.XXX-43921110
    -- Executing Macro(" Local/8521 at from-internal-8268,2", " exten-vm|8521 at default|8521") in new stack
    -- Executing SetVar(" Local/8521 at from-internal-8268,2", "FROMCONTEXT=exten-vm") in new stack
    -- Executing Macro(" Local/8521 at from-internal-8268,2", "record-enable|8521|IN") in new stack
    -- Executing GotoIf(" Local/8521 at from-internal-8268,2", "0 > 0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing GotoIf(" Local/8521 at from-internal-8268,2", "0?5:8") in new stack
    -- Goto (macro-record-enable,s,8)
    -- Executing GotoIf(" Local/8521 at from-internal-8268,2", "0?9:12") in new stack
    -- Goto (macro-record-enable,s,12)
    -- Executing DBget(" Local/8521 at from-internal-8268,2", "RecEnable=RECORD-IN/8521") in new stack
    -- DBget: varname=RecEnable, family=RECORD-IN, key=8521
    -- DBget: Value not found in database.
    -- Executing SetVar(" Local/8521 at from-internal-8268,2", "CALLFILENAME=20050805-111143-1123251103.2060") in new stack
    -- Called Local/8521 at from-internal
    -- Executing GotoIf(" Local/8521 at from-internal-8268,2", "0?15:99") in new stack
    -- Goto (macro-record-enable,s,99)
    -- Executing NoOp(" Local/8521 at from-internal-8268,2", "NO RECORDING NEEDED") in new stack
    -- Executing GotoIf(" Local/8521 at from-internal-8268,2", "1?novm|1:4") in new stack
    -- Goto (macro-exten-vm,novm,1)
    -- Executing Macro(" Local/8521 at from-internal-8268,2", "dial|120|tr|8521") in new stack
    -- Executing GotoIf(" Local/8521 at from-internal-8268,2", "0?4:2") in new stack
    -- Goto (macro-dial,s,2)
    -- Executing GotoIf(" Local/8521 at from-internal-8268,2", "0?4:3") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing SetCIDName(" Local/8521 at from-internal-8268,2", "XXX.XXX.XXX.XXX") in new stack
    -- Executing AGI(" Local/8521 at from-internal-8268,2", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
    --  dialparties.agi: request = dialparties.agi
    --  dialparties.agi: priority = 4
    --  dialparties.agi: extension = s
    --  dialparties.agi: language = en
    --  dialparties.agi: accountcode =
    --  dialparties.agi: uniqueid = 1123251103.2060
    --  dialparties.agi: channel = Local/8521 at from-internal-8268,2
    --  dialparties.agi: callerid = XXX.XXX.XXX.XXX<XXX.XXX.XXX.XXX>
    --  dialparties.agi: context = macro-dial
    --  dialparties.agi: type = Local
    --  dialparties.agi: rdnis = unknown
    --  dialparties.agi: enhanced = 0.0
    --  dialparties.agi: dnid = unknown
  dialparties.agi: Caller ID is not set
    --  dialparties.agi: Added extension 8521 to extension map
    --  dialparties.agi: Extension 8521 cf is disabled
    --  dialparties.agi: Extension 8521 do not disturb is disabled
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Manager 'admin' logged on from 127.0.0.1
  == Manager 'admin' logged off from 127.0.0.1
  dialparties.agi: Extension 8521 has call waiting disabled
  dialparties.agi: Max calls of 1 exceeded - deleting from dial
  dialparties.agi: Dial string is empty - nothing to do
  dialparties.agi: Was direct call, jumping to priority 26
    -- AGI Script Executing Application: (NoOp) Options: ()
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing Wait(" Local/8521 at from-internal-8268,2", "1") in new stack
    -- Executing Playback(" Local/8521 at from-internal-8268,2", "vm-nobodyavail") in new stack
    -- Local/8521 at from-internal-8268,1 answered SIP/XXX.XXX.XXX.XXX-43921110
    -- Stopped music on hold on SIP/XXX.XXX.XXX.XXX-43921110
    -- Playing 'vm-nobodyavail' (language 'en')
    -- Executing Playback(" Local/8521 at from-internal-8268,2", "allison7/pls-try-call-later") in new stack
    -- Playing 'allison7/pls-try-call-later' (language 'en')
    -- Executing Hangup(" Local/8521 at from-internal-8268,2", "") in new stack
  == Spawn extension (macro-exten-vm, novm, 5) exited non-zero on 'Local/8521 at from-internal-8268,2' in macro 'exten-vm'
  == Spawn extension (from-internal, 8521, 1) exited non-zero on 'Local/8521 at from-internal-8268,2'
    -- Executing Macro(" Local/8521 at from-internal-8268,2", "hangupcall") in new stack
    -- Executing ResetCDR(" Local/8521 at from-internal-8268,2", "w") in new stack
    -- Executing NoCDR(" Local/8521 at from-internal-8268,2", "") in new stack
    -- Executing Wait(" Local/8521 at from-internal-8268,2", "5") in new stack
    -- Executing Hangup(" Local/8521 at from-internal-8268,2", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/8521 at from-internal-8268,2' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/8521 at from-internal-8268,2'
 
Any help will be appreciated.
 
Regards,
 
Jorge Alayon
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050805/384935d7/attachment.htm


More information about the asterisk-users mailing list