<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff size=2>Hello
all,</FONT></SPAN></DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff size=2>I have
Asterisk + AMP configured as a PBX with a Customer Center Queue with 4
agents that login/logout dinamically.</FONT></SPAN></DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff size=2>If
there are no agents, queue timesout and gets derived to another queue that
somebody answers as last resort or waits there.</FONT></SPAN></DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff size=2>My
PSTN connection is an AS5300 in SIP, my extensions are analog phones connected
to an Audiocodes MP108-FXS with SIP.</FONT></SPAN></DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff size=2>This
is the output from CLI with High Verbosity:</FONT></SPAN></DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff
size=2>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</FONT></SPAN></DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff size=2>
-- Executing SetVar("SIP/XXX.XXX.XXX.XXX-43921110", "FROM_DID=1154538500") in
new stack<BR> -- Executing
Goto("SIP/XXX.XXX.XXX.XXX-43921110", "ext-did|1154538500|1") in new
stack<BR> -- Goto (ext-did,1154538500,1)<BR>
-- Executing Goto("SIP/XXX.XXX.XXX.XXX-43921110", "ext-queues|8500|1") in new
stack<BR> -- Goto (ext-queues,8500,1)<BR> --
Executing Answer("SIP/XXX.XXX.XXX.XXX-43921110", "") in new
stack<BR> -- Executing
SetCIDName("SIP/XXX.XXX.XXX.XXX-43921110", "XXX.XXX.XXX.XXX") in new
stack<BR> -- Executing SetVar("SIP/XXX.XXX.XXX.XXX-43921110",
"MONITOR_FILENAME=/var/spool/asterisk/monitor/q") in new
stack<BR> -- Executing Queue("SIP/XXX.XXX.XXX.XXX-43921110",
"8500|t|||300") in new stack<BR> -- Started music on hold,
class 'operadores', on SIP/XXX.XXX.XXX.XXX-43921110<BR> --
Executing Macro("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"<A href="mailto:exten-vm|8521@default|8521">exten-vm|8521@default|8521</A>") in
new stack<BR> -- Executing SetVar("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"FROMCONTEXT=exten-vm") in new stack<BR> -- Executing
Macro("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"record-enable|8521|IN") in new stack<BR> -- Executing
GotoIf("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"0 > 0?2:4") in new stack<BR> -- Goto
(macro-record-enable,s,4)<BR> -- Executing GotoIf("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"0?5:8") in new stack<BR> -- Goto
(macro-record-enable,s,8)<BR> -- Executing GotoIf("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"0?9:12") in new stack<BR> -- Goto
(macro-record-enable,s,12)<BR> -- Executing DBget("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"RecEnable=RECORD-IN/8521") in new stack<BR> -- DBget:
varname=RecEnable, family=RECORD-IN, key=8521<BR> -- DBget:
Value not found in database.<BR> -- Executing SetVar("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"CALLFILENAME=20050805-111143-1123251103.2060") in new
stack<BR> -- Called <A
href="mailto:Local/8521@from-internal">Local/8521@from-internal</A><BR>
-- Executing GotoIf("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"0?15:99") in new stack<BR> -- Goto
(macro-record-enable,s,99)<BR> -- Executing NoOp("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"NO RECORDING NEEDED") in new stack<BR> -- Executing
GotoIf("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"1?novm|1:4") in new stack<BR> -- Goto
(macro-exten-vm,novm,1)<BR> -- Executing Macro("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"dial|120|tr|8521") in new stack<BR> -- Executing GotoIf("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"0?4:2") in new stack<BR> -- Goto
(macro-dial,s,2)<BR> -- Executing GotoIf("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"0?4:3") in new stack<BR> -- Goto
(macro-dial,s,3)<BR> -- Executing SetCIDName("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"XXX.XXX.XXX.XXX") in new stack<BR> -- Executing AGI("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"dialparties.agi") in new stack<BR> -- Launched AGI Script
/var/lib/asterisk/agi-bin/dialparties.agi<BR> --
dialparties.agi: request = dialparties.agi<BR> --
dialparties.agi: priority = 4<BR> -- dialparties.agi:
extension = s<BR> -- dialparties.agi: language =
en<BR> -- dialparties.agi: accountcode
=<BR> -- dialparties.agi: uniqueid =
1123251103.2060<BR> -- dialparties.agi: channel = <A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A><BR>
-- dialparties.agi: callerid =
XXX.XXX.XXX.XXX<XXX.XXX.XXX.XXX><BR> --
dialparties.agi: context = macro-dial<BR> --
dialparties.agi: type = Local<BR> -- dialparties.agi:
rdnis = unknown<BR> -- dialparties.agi: enhanced =
0.0<BR> -- dialparties.agi: dnid = unknown<BR>
dialparties.agi: Caller ID is not set<BR> --
dialparties.agi: Added extension 8521 to extension map<BR>
-- dialparties.agi: Extension 8521 cf is disabled<BR>
-- dialparties.agi: Extension 8521 do not disturb is disabled<BR> ==
Parsing '/etc/asterisk/manager.conf': Found<BR> == Parsing
'/etc/asterisk/manager_custom.conf': Found<BR> == Manager 'admin' logged
on from 127.0.0.1<BR> == Manager 'admin' logged off from
127.0.0.1<BR> dialparties.agi: Extension 8521 has call waiting
disabled<BR> dialparties.agi: Max calls of 1 exceeded - deleting from
dial<BR> dialparties.agi: Dial string is empty - nothing to do<BR>
dialparties.agi: Was direct call, jumping to priority 26<BR>
-- AGI Script Executing Application: (NoOp) Options: ()<BR> --
AGI Script dialparties.agi completed, returning 0<BR> --
Executing Wait("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"1") in new stack<BR> -- Executing Playback("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"vm-nobodyavail") in new stack<BR> -- <A
href="mailto:Local/8521@from-internal-8268,1">Local/8521@from-internal-8268,1</A>
answered SIP/XXX.XXX.XXX.XXX-43921110<BR> -- Stopped music on
hold on SIP/XXX.XXX.XXX.XXX-43921110<BR> -- Playing
'vm-nobodyavail' (language 'en')<BR> -- Executing Playback("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"allison7/pls-try-call-later") in new stack<BR> -- Playing
'allison7/pls-try-call-later' (language 'en')<BR> -- Executing
Hangup("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"") in new stack<BR> == Spawn extension (macro-exten-vm, novm, 5) exited
non-zero on <A
href="mailto:'Local/8521@from-internal-8268,2'">'Local/8521@from-internal-8268,2'</A>
in macro 'exten-vm'<BR> == Spawn extension (from-internal, 8521, 1) exited
non-zero on <A
href="mailto:'Local/8521@from-internal-8268,2'">'Local/8521@from-internal-8268,2'</A><BR>
-- Executing Macro("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"hangupcall") in new stack<BR> -- Executing ResetCDR("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"w") in new stack<BR> -- Executing NoCDR("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"") in new stack<BR> -- Executing Wait("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"5") in new stack<BR> -- Executing Hangup("<A
href="mailto:Local/8521@from-internal-8268,2">Local/8521@from-internal-8268,2</A>",
"") in new stack<BR> == Spawn extension (macro-hangupcall, s, 4) exited
non-zero on <A
href="mailto:'Local/8521@from-internal-8268,2'">'Local/8521@from-internal-8268,2'</A>
in macro 'hangupcall'<BR> == Spawn extension (from-internal, h, 1) exited
non-zero on <A
href="mailto:'Local/8521@from-internal-8268,2'">'Local/8521@from-internal-8268,2'</A></FONT></SPAN></DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff size=2>Any
help will be appreciated.</FONT></SPAN></DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890382014-05082005><FONT face=Arial color=#0000ff size=2>Jorge
Alayon</FONT></SPAN></DIV>
<DIV><SPAN class=890382014-05082005></SPAN> </DIV></BODY></HTML>