Queue

Hi All,

I have set up asterisk@home and initially the queue function works.
After playing around with it a bit I’ve got everything working, then the queue stopped working. I spent two days on it, and still can’t seem to get it to work.
Deleted /etc/asterisk as I thought it will have something to do with the extensions, then recompliled aah, still no luck.
Just wondering if anyone can give me any pointers?
Thanks in advance and below are the error logs when I try to make a call to the queue from an extension:

Jun 8 11:59:45 DEBUG[18780] pbx.c: Launching ‘Set’
Jun 8 11:59:45 VERBOSE[18780] logger.c: – Executing Set(“SIP/1886-e079”, “MONITOR_FILENAME=/var/spool/asterisk/monitor/q2001-20060608-115945-1149731985.52”) in new stack
Jun 8 11:59:45 DEBUG[18780] pbx.c: Launching ‘Playback’
Jun 8 11:59:45 VERBOSE[18780] logger.c: – Executing Playback(“SIP/1886-e079”, “”) in new stack
Jun 8 11:59:45 WARNING[18780] app_playback.c: Playback requires an argument (filename)
Jun 8 11:59:45 DEBUG[18780] pbx.c: Spawn extension (from-internal,2001,4) exited non-zero on ‘SIP/1886-e079’
Jun 8 11:59:45 DEBUG[18780] pbx.c: Launching ‘Macro’
Jun 8 11:59:45 VERBOSE[18780] logger.c: – Executing Macro(“SIP/1886-e079”, “hangupcall”) in new stack
Jun 8 11:59:45 DEBUG[18780] pbx.c: Launching ‘ResetCDR’
Jun 8 11:59:45 VERBOSE[18780] logger.c: – Executing ResetCDR(“SIP/1886-e079”, “w”) in new stack
Jun 8 11:59:45 DEBUG[8786] chan_sip.c: = Found Their Call ID: 1d4ece78-b3aa4370@xxx.xxx.xx.xxx Their Tag 682092d8bfbc4a90o0 Our tag: as0597c56c
Jun 8 11:59:45 DEBUG[8786] chan_sip.c: **** Received ACK (6) - Command in SIP ACK
Jun 8 11:59:45 DEBUG[8786] chan_sip.c: Stopping retransmission on '1d4ece78-b3aa4370@xxx.xxx.xxx.xxxof Response 102: Match Found
Jun 8 11:59:45 DEBUG[8779] chan_sip.c: Checking device state for peer 1886
Jun 8 11:59:45 DEBUG[8779] devicestate.c: Changing state for SIP/1886 - state 2 (In use)
Jun 8 11:59:45 DEBUG[8779] chan_sip.c: Checking device state for peer 1886
Jun 8 11:59:45 DEBUG[18780] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
Jun 8 11:59:45 DEBUG[18780] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES (‘2006-06-08 11:59:45’,’“1886” <1886>’,‘1886’,‘2001’,‘from-internal’, ‘SIP/1886-e079’,’’,‘ResetCDR’,‘w’,0,0,‘ANSWERED’,3,’’,‘1149731985.52’)
Jun 8 11:59:45 DEBUG[18780] pbx.c: Launching 'NoCDR’
Jun 8 11:59:45 VERBOSE[18780] logger.c: – Executing NoCDR(“SIP/1886-e079”, “”) in new stack
Jun 8 11:59:45 WARNING[18780] cdr.c: CDR on channel ‘SIP/1886-e079’ not posted
Jun 8 11:59:45 WARNING[18780] cdr.c: CDR on channel ‘SIP/1886-e079’ lacks end
Jun 8 11:59:45 DEBUG[18780] pbx.c: Launching 'Wait’
Jun 8 11:59:45 VERBOSE[18780] logger.c: – Executing Wait(“SIP/1886-e079”, “5”) in new stack
Jun 8 11:59:45 DEBUG[18781] app_queue.c: Device ‘SIP/1886’ changed to state ‘2’ (In use)
Jun 8 11:59:45 DEBUG[18782] app_queue.c: Device ‘SIP/1886’ changed to state ‘2’ (In use)
Jun 8 11:59:50 DEBUG[18780] pbx.c: Launching 'Hangup’
Jun 8 11:59:50 VERBOSE[18780] logger.c: – Executing Hangup(“SIP/1886-e079”, “”) in new stack
Jun 8 11:59:50 DEBUG[18780] app_macro.c: Spawn extension (macro-hangupcall,s,4) exited non-zero on ‘SIP/1886-e079’ in macro 'hangupcall’
Jun 8 11:59:50 DEBUG[18780] pbx.c: Spawn extension (macro-hangupcall,s,4) exited non-zero on 'SIP/1886-e079’
Jun 8 11:59:50 DEBUG[18780] channel.c: Hanging up channel 'SIP/1886-e079’
Jun 8 11:59:50 DEBUG[18780] chan_sip.c: Hangup call SIP/1886-e079, SIP callid 1d4ece78-b3aa4370@xxx.xxx.xxx.xxx)
Jun 8 11:59:50 DEBUG[18780] chan_sip.c: update_call_counter(1886) - decrement call limit counter
Jun 8 11:59:50 DEBUG[18780] chan_sip.c: Updating call counter for incoming call

Have you tried adding a join announcement? That fixed my issue.

Hi,

If You create the queue in ‘freePBX administration’ the queue definision is like this (/etc/asterisk/extensions_additional.conf)

exten => 500,1,Answer
exten => 500,n,Set(CALLERID(name)=${CALLERIDNAME})
exten => 500,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/q${EXTEN}-${TIMESTAMP}-${UNIQUEID})
exten => 500,n,Playback()
exten => 500,n,Queue(500|t||)
exten => 500,n,Goto(ext-local,100,1)
exten => 500*,1,Macro(agent-add,500,)
exten => 500**,1,Macro(agent-del,500,500)

When You delete the
’exten => 500,n,Playback()’ the queue will be work property without the Join Announcement :wink:

But when you modify this queue’s parameter on the AMP (ex add new agent) the whole queue-section is overwrite ;/