[Home]

Summary:ASTERISK-10175: Announce from queue does not seem to work.
Reporter:Paul Hales (paulh)Labels:
Date Opened:2007-08-27 01:18:32Date Closed:2007-09-24 09:37:27
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_queue
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Centos 4.5, Asterisk will not play any annouce messages, even when using the 'A' option of the Dial command.
Also we get silence when the phone is ringing but we forced it to play music via the 'm' option with the Dial command.
Comments:By: Mark Michelson (mmichelson) 2007-08-30 17:04:56

I'm going to need more information before I can debug the problem. First, It would be helpful to see your dialplan (or at least the parts pertaining to the problem), also do you see any console messages on the screen when the announcement fails to play?

By: Paul Hales (paulh) 2007-09-03 02:07:08

I will be able to provide this in a day or so - this project has been put aside for a few days to finish work for another client.

By: Paul Hales (paulh) 2007-09-21 01:16:15

CLI readout:

-- Executing [61390184859@incoming:1] Goto("SIP/203.160.8.74-b760ff78",
"inbound|s|1") in new stack
   -- Goto (inbound,s,1)
   -- Executing [s@inbound:1] Answer("SIP/203.160.8.74-b760ff78", "")
in new stack
   -- Executing [s@inbound:2] Set("SIP/203.160.8.74-b760ff78",
"override=1") in new stack
   -- Executing [s@inbound:3] GotoIf("SIP/203.160.8.74-b760ff78",
"1?8:7") in new stack
   -- Goto (inbound,s,8)
   -- Executing [s@inbound:8] BackGround("SIP/203.160.8.74-b760ff78",
"welcomeone") in new stack
   -- <SIP/203.160.8.74-b760ff78> Playing 'welcomeone' (language 'en')
[Sep 21 15:36:54] NOTICE[1304]: rtp.c:783 process_rfc3389: Comfort noise
support incomplete in Asterisk (RFC 3389). Please turn off on client if
possible. Client IP: 203.160.8.74
 == CDR updated on SIP/203.160.8.74-b760ff78
   -- Executing [7@inbound:1] Goto("SIP/203.160.8.74-b760ff78", "sales|
s|1") in new stack
   -- Goto (sales,s,1)
   -- Executing [s@sales:1] Set("SIP/203.160.8.74-b760ff78",
"CALLERID(name)=Sales") in new stack
   -- Executing [s@sales:2] Set("SIP/203.160.8.74-b760ff78",
"SPYGROUP=cs") in new stack
   -- Executing [s@sales:3] Queue("SIP/203.160.8.74-b760ff78", "sales|
t|") in new stack
   -- Started music on hold, class 'default', on
SIP/203.160.8.74-b760ff78
   -- Stopped music on hold on SIP/203.160.8.74-b760ff78
   -- <SIP/203.160.8.74-b760ff78> Playing 'queue-youarenext' (language
'en')
   -- Told SIP/203.160.8.74-b760ff78 in sales their queue position
(which was 1)
   -- <SIP/203.160.8.74-b760ff78> Playing 'queue-thankyou' (language
'en')
   -- Started music on hold, class 'default', on
SIP/203.160.8.74-b760ff78
   -- outgoing agentcall, to agent '101', on
'Local/201@agentexten-d6c6,1'
   -- Executing [201@agentexten:1]
Answer("Local/201@agentexten-d6c6,2", "") in new stack
   -- Agent/101 answered SIP/203.160.8.74-b760ff78
   -- Executing [201@agentexten:2] Dial("Local/201@agentexten-d6c6,2",
"SIP/201||m") in new stack
   -- Called 201
   -- Started music on hold, class 'default', on
Local/201@agentexten-d6c6,2
   -- <Agent/101> Playing 'queue-sales' (language 'en')
[Sep 21 15:37:05] WARNING[1304]: file.c:1089 waitstream_core: Unexpected
control subclass '14'
   -- SIP/201-08ef9018 is ringing
   -- SIP/201-08ef9018 is ringing
   -- Stopped music on hold on SIP/203.160.8.74-b760ff78
   -- SIP/201-08ef9018 is ringing
   -- SIP/201-08ef9018 is ringing
   -- SIP/201-08ef9018 answered Local/201@agentexten-d6c6,2
   -- Stopped music on hold on Local/201@agentexten-d6c6,2
 == Spawn extension (agentexten, 201, 2) exited non-zero on
'Local/201@agentexten-d6c6,2'
 == Spawn extension (sales, s, 3) exited non-zero on
'SIP/203.160.8.74-b760ff78'
instrapbx*CLI>

By: Paul Hales (paulh) 2007-09-21 01:27:57

extensions.conf

[incoming]
exten => 61390184859,1,Goto(inbound,s,1)
exten => 61390184859,2,Hangup

[inbound]
exten => s,1,Answer
exten => s,2,Set(override=${DB(office/nightswitch)})
exten => s,3,GotoIf($[${override}=1]?8:7)
exten => s,4,GotoIfTime(*|*|9:00-17:00|mon-fri|*|*?inbound,s,8)
exten => s,5,GotoIfTime(*|*|17:00-24:00|mon-fri|*|*?later,s,1)
exten => s,6,GotoIfTime(*|*|24:00-1:00|tue-sat|*|*?later,s,1)
exten => s,7,Goto(afterhours,s,1)
exten => s,8,Background(welcomeone)
exten => s,9,WaitExten(5)
exten => s,10,Background(welcomeone)
exten => s,11,WaitExten(2)
exten => s,12,Goto(support,s,1)
exten => s,13,Hangup

exten => 7,1,Goto(sales,s,1)
exten => 7,2,Hangup

exten => 8,1,Goto(support,s,1)
exten => 8,2,Hangup

exten => 9,1,Goto(accounts,s,1)
exten => 9,2,Hangup

exten => 0,1,Goto(renewals,s,1)
exten => 0,2,Hangup

exten => i,1,Goto(inbound,s,1)
exten => t,1,Goto(inbound,s,1)

[sales]
exten => s,1,Set(CALLERID(name)=Sales)
exten => s,2,Set(SPYGROUP=cs)
exten => s,3,Queue(sales|t|||)
exten => s,4,Hangup

[agentexten]
exten => _[2-6]xx,1,Answer()
exten => _[2-6]xx,2,Dial(SIP/${EXTEN},,m)
exten => _[2-6]xx,3,Hangup



By: Paul Hales (paulh) 2007-09-21 01:31:41

queues.conf

[sales]

musicclass = default
announce = queue-sales
strategy = rrmemory
timeout = 15
retry = 5
;maxlen = 0
announce-frequency = 60
;joinempty = no
;leavewhenempty = no
wrapuptime = 17
queue-youarenext = queue-youarenext
queue-thankyou = queue-thankyou
member => Agent/101,2
member => Agent/104,2
member => Agent/105,1
member => Agent/106,1
member => Agent/107,1
member => Agent/109,1
member => Agent/110,3

By: Paul Hales (paulh) 2007-09-21 01:45:59

Also - these files play fine via 'playback'.



By: Mark Michelson (mmichelson) 2007-09-21 15:07:47

I appreciate the information. I believe the problem will go away if you remove the Answer() line from the agentexten context.

Let me know if this fixes things for you.

By: Paul Hales (paulh) 2007-09-23 20:31:14

Thanks for that - that fixed the problem.

The system was answering the call and playing the message before dialling the SIP phone.