All queue members DND, but queue still open

Good evening,

There are a few places where I could’ve posted this thread; this is the best fit I could figure, but as a disclosure, I’m not 100% sure and if there’s a better place, I’d be happy to look there!

Using FreePBX 2.10, I have 3 Aastra 6730i phones on firmware 3.2.2. Any of the programmable keys can be configured as a DND button, which basically returns a busy status any time I try to call one of the devices internally.

Dialing the extensions manually, or including them in a ring group, properly routes everything to voicemail.

Cannot get this “Busy” status to cooperate with queues, however, I kind of understand why but wonder if there is a workaround - a queue is supposed to keep people until no one is busy, right? But my phones all have call waiting, so they would not actually ring busy unless this DND mode was on.

I have empty queue joining set to no already, Agent Restrictions to Extension Only, Leave Empty set to Strict … none seem to have any impact, people still go into queue and listen to the awful default MOH.

Ultimately, the root of the problem is a want for an easy way to log in and out of queues, preferably with a status light on the phone, and if there’s another way to do this, we don’t even have to tackle this particular issue.

Any ideas?

The usage of JoinEmpty and LeaveEmpty are mostly base on the device state, not the state of the user, an DND state is the state of the user so the queue will not see that, the local channel is just reporting Busy back to the queue an the queue will continue with the next member, if its the only member logged in it wil keep dailing the extension with every loop. with the callwaiting option the queue will keep ringging the user because the queue thinks the user is available, i usually disable callwaiting on queue member phones.

Best way is to use Dynamic members, and create a BLF key on the users phone, programm is with the queue login/logout toggle code *45[QUEUENNO][EXTENNO] take a look ate the top of the queue options page, the is an option to create Hints for the queue.

Remember though, whe loggin out of the queue this will reset the member counters such as number of answered calls so if you are uswing this for any reporting, you best option is using the Pause/UnPause method, unfortunately FreePBS does not (yet) have an dailplan for this so you have to create you own, yust take a look at the QueueToggle code :wink:

Using the Pause/UnPause option will have the Join/Leave Empty option working as expected,these options only check on loggedin members that are pause or Unpause

Regards,
Richard

Well if you do server side DND on the aastra phone than the agent will report back as busy as long as you are using Asterisk 1.8 with the device states stuff for queues which is in Asterisk 1.8.

You could program a simple BLF DND key as *76101 with 101 being the extension number. Than when pressed it will toggle DND on or off and change the light on the button to red when in DND.

@niacs, I’d like to pursue your option because it gets to the root of what I want, which is one-touch queue in/out. I saw the phone’s DND functionality as a workaround but … that didn’t work for the reasons you specified.

So what I did was enabled device hints, enabled USEDEVSTATE=true in amportal.conf, then created a BLF key for 45800*101.

The in/out feature works properly, but the BLF lamp does not illuminate.

If I run “core show hints”, there is one watcher for 45[email protected] (101 is the extension I’m using), so * sees my phone looking for status. HOWEVER:

After logging in or out, there’s an error:
[2012-06-03 23:21:41] WARNING[2761] chan_sip.c: Retransmission timeout reached on transmission [email protected]:5060 for seqno 102 (Critical Request) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 6400ms with no response

I have a sneaking suspicion that this is the communication to/from the phone regarding the BLF status, but I really have no idea. The * wiki entry went above my head and beyond my knowledge.

I’m posting the entire log back-and-forth because … I have no idea what to look at for troubleshooting. I should note that I have no issues with making or receiving calls - it looks like a network problem but one that does not manifest itself in any other way that I have tested.

Incidentally, the same happens using Tony’s solution.

In context (see error at end)–Logging In:
[2012-06-03 23:21:31] VERBOSE[2761] netsock2.c: == Using SIP RTP TOS bits 184
[2012-06-03 23:21:31] VERBOSE[2761] netsock2.c: == Using SIP RTP CoS mark 5
[2012-06-03 23:21:31] VERBOSE[3414] pbx.c: – Executing [45800*[email protected]:1] Goto(“SIP/101-00000016”, “app-all-queue-toggle,s,start”) in new stack
[2012-06-03 23:21:31] VERBOSE[3414] pbx.c: – Goto (app-all-queue-toggle,s,1)
[2012-06-03 23:21:31] VERBOSE[3414] pbx.c: – Executing [[email protected]:1] Answer(“SIP/101-00000016”, “”) in new stack
[2012-06-03 23:21:32] VERBOSE[3414] pbx.c: – Executing [[email protected]:2] Wait(“SIP/101-00000016”, “1”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:3] Macro(“SIP/101-00000016”, “user-callerid,”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:1] Set(“SIP/101-00000016”, “AMPUSER=101”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:2] GotoIf(“SIP/101-00000016”, “0?report”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:3] ExecIf(“SIP/101-00000016”, “1?Set(REALCALLERIDNUM=101)”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:4] Set(“SIP/101-00000016”, “AMPUSER=101”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:5] Set(“SIP/101-00000016”, “AMPUSERCIDNAME=Tristan Cunningham”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:6] GotoIf(“SIP/101-00000016”, “0?report”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:7] Set(“SIP/101-00000016”, “AMPUSERCID=101”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:8] Set(“SIP/101-00000016”, “CALLERID(all)=“Tristan Cunningham” <101>”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:9] GotoIf(“SIP/101-00000016”, “0?limit”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:10] ExecIf(“SIP/101-00000016”, “0?Set(GROUP(concurrency_limit)=101)”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:11] GotoIf(“SIP/101-00000016”, “0?continue”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:12] Set(“SIP/101-00000016”, “__TTL=64”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:13] GotoIf(“SIP/101-00000016”, “1?continue”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Goto (macro-user-callerid,s,24)
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:24] Set(“SIP/101-00000016”, “CALLERID(number)=101”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:25] Set(“SIP/101-00000016”, “CALLERID(name)=Tristan Cunningham”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:26] Set(“SIP/101-00000016”, “CHANNEL(language)=en”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:4] AGI(“SIP/101-00000016”, “queue_devstate.agi,getall,101”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] res_agi.c: – Launched AGI Script /var/lib/asterisk/agi-bin/queue_devstate.agi
[2012-06-03 23:21:33] VERBOSE[3414] res_agi.c: – queue_devstate.agi,getall,101: initiating queue: 800
[2012-06-03 23:21:33] VERBOSE[3414] res_agi.c: – queue_devstate.agi,getall,101: Queue 800 has no one logged in
[2012-06-03 23:21:33] VERBOSE[3414] res_agi.c: – queue_devstate.agi,getall,101: Finished sorting
[2012-06-03 23:21:33] VERBOSE[3414] res_agi.c: – queue_devstate.agi,getall,101: Looking up queues for agent: 101
[2012-06-03 23:21:33] VERBOSE[3414] res_agi.c: – queue_devstate.agi,getall,101: Agent is in: 800
[2012-06-03 23:21:33] VERBOSE[3414] res_agi.c: – queue_devstate.agi,getall,101: checking if logged into queue: 800
[2012-06-03 23:21:33] VERBOSE[3414] res_agi.c: – queue_devstate.agi,getall,101: Nothing found so logged out
[2012-06-03 23:21:33] VERBOSE[3414] res_agi.c: – queue_devstate.agi,getall,101: Agent 101 is LOGGEDOUT for at least one of their queues
[2012-06-03 23:21:33] VERBOSE[3414] res_agi.c: – <SIP/101-00000016>AGI Script queue_devstate.agi completed, returning 0
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:5] GotoIf(“SIP/101-00000016”, “0?skip”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:6] Set(“SIP/101-00000016”, “TOGGLE_MACRO=toggle-add-agent”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:7] Set(“SIP/101-00000016”, “LOOPCNTALL=1”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:8] Set(“SIP/101-00000016”, “ITERALL=1”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]-queue-toggle:9] Set(“SIP/101-00000016”, “QUEUENO=800”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:10] Set(“SIP/101-00000016”, “ITERALL=2”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:11] Macro(“SIP/101-00000016”, “toggle-add-agent,”) in new stack
[2012-06-03 23:21:33] VERBOSE[3414] pbx.c: – Executing [[email protected]:1] Wait(“SIP/101-00000016”, “1”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:2] Macro(“SIP/101-00000016”, “user-callerid,SKIPTTL,”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:1] Set(“SIP/101-00000016”, “AMPUSER=101”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:2] GotoIf(“SIP/101-00000016”, “18?report”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Goto (macro-user-callerid,s,11)
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:11] GotoIf(“SIP/101-00000016”, “1?continue”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Goto (macro-user-callerid,s,24)
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:24] Set(“SIP/101-00000016”, “CALLERID(number)=101”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:25] Set(“SIP/101-00000016”, “CALLERID(name)=Tristan Cunningham”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:26] Set(“SIP/101-00000016”, “CHANNEL(language)=en”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:3] Set(“SIP/101-00000016”, “CALLBACKNUM=101”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:4] GotoIf(“SIP/101-00000016”, “0?invalid”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:5] ExecIf(“SIP/101-00000016”, “1?AddQueueMember(800,Local/[email protected]/n,0,Tristan Cunningham,hint:[email protected])”) in new stack
[2012-06-03 23:21:34] NOTICE[3414] app_queue.c: Added interface ‘Local/[email protected]/n’ to queue ‘800’
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:6] ExecIf(“SIP/101-00000016”, “0?AddQueueMember(800,Local/[email protected]/n,0,Tristan Cunningham)”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:7] UserEvent(“SIP/101-00000016”, “AgentLogin,Agent: 101”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:8] QueueLog(“SIP/101-00000016”, “800,MANAGER,Tristan Cunningham,ADDMEMBER,”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:9] MacroExit(“SIP/101-00000016”, “”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:12] GotoIf(“SIP/101-00000016”, “0?begin”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:13] ExecIf(“SIP/101-00000016”, “0?Playback(agent-loggedoff)”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] pbx.c: – Executing [[email protected]:14] ExecIf(“SIP/101-00000016”, “1?Playback(agent-loginok)”) in new stack
[2012-06-03 23:21:34] VERBOSE[3414] file.c: – <SIP/101-00000016> Playing ‘agent-loginok.ulaw’ (language ‘en’)
[2012-06-03 23:21:34] WARNING[2768] chan_sip.c: it is not necessary to specify Content-Length in sip_notify.conf, ignoring[2012-06-03 23:21:36] VERBOSE[3414] pbx.c: – Executing [[email protected]:15] ExecIf(“SIP/101-00000016”, “1?SayDigits(101)”) in new stack
[2012-06-03 23:21:36] VERBOSE[3414] file.c: – <SIP/101-00000016> Playing ‘digits/1.ulaw’ (language ‘en’)
[2012-06-03 23:21:36] VERBOSE[3414] file.c: – <SIP/101-00000016> Playing ‘digits/0.ulaw’ (language ‘en’)
[2012-06-03 23:21:37] VERBOSE[3414] file.c: – <SIP/101-00000016> Playing ‘digits/1.ulaw’ (language ‘en’)
[2012-06-03 23:21:38] VERBOSE[3414] pbx.c: – Executing [[email protected]:16] Macro(“SIP/101-00000016”, “hangupcall,”) in new stack
[2012-06-03 23:21:38] VERBOSE[3414] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/101-00000016”, “1?theend”) in new stack
[2012-06-03 23:21:38] VERBOSE[3414] pbx.c: – Goto (macro-hangupcall,s,3)
[2012-06-03 23:21:38] VERBOSE[3414] pbx.c: – Executing [[email protected]:3] ExecIf(“SIP/101-00000016”, “0?Set(CDR(recordingfile)=)”) in new stack
[2012-06-03 23:21:38] VERBOSE[3414] pbx.c: – Executing [[email protected]:4] Hangup(“SIP/101-00000016”, “”) in new stack
[2012-06-03 23:21:38] VERBOSE[3414] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/101-00000016’ in macro ‘hangupcall’
[2012-06-03 23:21:38] VERBOSE[3414] pbx.c: == Spawn extension (app-all-queue-toggle, s, 16) exited non-zero on ‘SIP/101-00000016’
[2012-06-03 23:21:41] WARNING[2761] chan_sip.c: Retransmission timeout reached on transmission [email protected]:5060 for seqno 102 (Critical Request) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 6400ms with no response

LOGGING OFF
[2012-06-03 23:26:58] VERBOSE[2761] netsock2.c: == Using SIP RTP TOS bits 184
[2012-06-03 23:26:58] VERBOSE[2761] netsock2.c: == Using SIP RTP CoS mark 5
[2012-06-03 23:26:58] VERBOSE[3484] pbx.c: – Executing [45800*[email protected]:1] Goto(“SIP/101-00000017”, “app-all-queue-toggle,s,start”) in new stack
[2012-06-03 23:26:58] VERBOSE[3484] pbx.c: – Goto (app-all-queue-toggle,s,1)
[2012-06-03 23:26:58] VERBOSE[3484] pbx.c: – Executing [[email protected]:1] Answer(“SIP/101-00000017”, “”) in new stack
[2012-06-03 23:26:59] VERBOSE[3484] pbx.c: – Executing [[email protected]:2] Wait(“SIP/101-00000017”, “1”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:3] Macro(“SIP/101-00000017”, “user-callerid,”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:1] Set(“SIP/101-00000017”, “AMPUSER=101”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:2] GotoIf(“SIP/101-00000017”, “0?report”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:3] ExecIf(“SIP/101-00000017”, “1?Set(REALCALLERIDNUM=101)”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:4] Set(“SIP/101-00000017”, “AMPUSER=101”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:5] Set(“SIP/101-00000017”, “AMPUSERCIDNAME=Tristan Cunningham”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:6] GotoIf(“SIP/101-00000017”, “0?report”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:7] Set(“SIP/101-00000017”, “AMPUSERCID=101”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:8] Set(“SIP/101-00000017”, “CALLERID(all)=“Tristan Cunningham” <101>”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:9] GotoIf(“SIP/101-00000017”, “0?limit”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:10] ExecIf(“SIP/101-00000017”, “0?Set(GROUP(concurrency_limit)=101)”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:11] GotoIf(“SIP/101-00000017”, “0?continue”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:12] Set(“SIP/101-00000017”, “__TTL=64”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:13] GotoIf(“SIP/101-00000017”, “1?continue”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Goto (macro-user-callerid,s,24)
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:24] Set(“SIP/101-00000017”, “CALLERID(number)=101”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:25] Set(“SIP/101-00000017”, “CALLERID(name)=Tristan Cunningham”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:26] Set(“SIP/101-00000017”, “CHANNEL(language)=en”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:4] AGI(“SIP/101-00000017”, “queue_devstate.agi,getall,101”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] res_agi.c: – Launched AGI Script /var/lib/asterisk/agi-bin/queue_devstate.agi
[2012-06-03 23:27:00] VERBOSE[3484] res_agi.c: – queue_devstate.agi,getall,101: initiating queue: 800
[2012-06-03 23:27:00] VERBOSE[3484] res_agi.c: – queue_devstate.agi,getall,101: No Matches
[2012-06-03 23:27:00] VERBOSE[3484] res_agi.c: – queue_devstate.agi,getall,101: Agent 101 is dynamic
[2012-06-03 23:27:00] VERBOSE[3484] res_agi.c: – queue_devstate.agi,getall,101: Agent 101 is assigned to queue 800
[2012-06-03 23:27:00] VERBOSE[3484] res_agi.c: – queue_devstate.agi,getall,101: Finished processing members for 800
[2012-06-03 23:27:00] VERBOSE[3484] res_agi.c: – queue_devstate.agi,getall,101: Finished sorting
[2012-06-03 23:27:00] VERBOSE[3484] res_agi.c: – queue_devstate.agi,getall,101: Looking up queues for agent: 101
[2012-06-03 23:27:00] VERBOSE[3484] res_agi.c: – queue_devstate.agi,getall,101: Agent is in: 800
[2012-06-03 23:27:00] VERBOSE[3484] res_agi.c: – queue_devstate.agi,getall,101: checking if logged into queue: 800
[2012-06-03 23:27:00] VERBOSE[3484] res_agi.c: – queue_devstate.agi,getall,101: Yes logged into queue: 800
[2012-06-03 23:27:00] VERBOSE[3484] res_agi.c: – queue_devstate.agi,getall,101: Agent 101 is LOGGEDIN for at least one of their queues
[2012-06-03 23:27:00] VERBOSE[3484] res_agi.c: – <SIP/101-00000017>AGI Script queue_devstate.agi completed, returning 0
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:5] GotoIf(“SIP/101-00000017”, “0?skip”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:6] Set(“SIP/101-00000017”, “TOGGLE_MACRO=toggle-del-agent”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:7] Set(“SIP/101-00000017”, “LOOPCNTALL=1”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:8] Set(“SIP/101-00000017”, “ITERALL=1”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:9] Set(“SIP/101-00000017”, “QUEUENO=800”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:10] Set(“SIP/101-00000017”, “ITERALL=2”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:11] Macro(“SIP/101-00000017”, “toggle-del-agent,”) in new stack
[2012-06-03 23:27:00] VERBOSE[3484] pbx.c: – Executing [[email protected]:1] Wait(“SIP/101-00000017”, “1”) in new stack
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Executing [[email protected]:2] Macro(“SIP/101-00000017”, “user-callerid,SKIPTTL,”) in new stack
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Executing [[email protected]:1] Set(“SIP/101-00000017”, “AMPUSER=101”) in new stack
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Executing [[email protected]:2] GotoIf(“SIP/101-00000017”, “18?report”) in new stack
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Goto (macro-user-callerid,s,11)
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Executing [[email protected]:11] GotoIf(“SIP/101-00000017”, “1?continue”) in new stack
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Goto (macro-user-callerid,s,24)
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Executing [[email protected]:24] Set(“SIP/101-00000017”, “CALLERID(number)=101”) in new stack
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Executing [[email protected]:25] Set(“SIP/101-00000017”, “CALLERID(name)=Tristan Cunningham”) in new stack
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Executing [[email protected]:26] Set(“SIP/101-00000017”, “CHANNEL(language)=en”) in new stack
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Executing [[email protected]:3] Set(“SIP/101-00000017”, “CALLBACKNUM=101”) in new stack
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Executing [[email protected]:4] RemoveQueueMember(“SIP/101-00000017”, “800,Local/[email protected]/n”) in new stack
[2012-06-03 23:27:01] NOTICE[3484] app_queue.c: Removed interface ‘Local/[email protected]/n’ from queue ‘800’
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Executing [[email protected]:5] RemoveQueueMember(“SIP/101-00000017”, “800,Local/[email protected]/n”) in new stack
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Executing [[email protected]:6] UserEvent(“SIP/101-00000017”, “RefreshQueue”) in new stack
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Executing [[email protected]:7] QueueLog(“SIP/101-00000017”, “800,MANAGER,Tristan Cunningham,REMOVEMEMBER,”) in new stack
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Executing [[email protected]:8] MacroExit(“SIP/101-00000017”, “”) in new stack
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Executing [[email protected]:12] GotoIf(“SIP/101-00000017”, “0?begin”) in new stack
[2012-06-03 23:27:01] VERBOSE[3484] pbx.c: – Executing [[email protected]:13] ExecIf(“SIP/101-00000017”, “1?Playback(agent-loggedoff)”) in new stack
[2012-06-03 23:27:01] VERBOSE[3484] file.c: – <SIP/101-00000017> Playing ‘agent-loggedoff.ulaw’ (language ‘en’)
[2012-06-03 23:27:01] WARNING[2768] chan_sip.c: it is not necessary to specify Content-Length in sip_notify.conf, ignoring[2012-06-03 23:27:02] VERBOSE[3484] pbx.c: – Executing [[email protected]:14] ExecIf(“SIP/101-00000017”, “0?Playback(agent-loginok)”) in new stack
[2012-06-03 23:27:02] VERBOSE[3484] pbx.c: – Executing [[email protected]:15] ExecIf(“SIP/101-00000017”, “0?SayDigits(101)”) in new stack
[2012-06-03 23:27:02] VERBOSE[3484] pbx.c: – Executing [[email protected]:16] Macro(“SIP/101-00000017”, “hangupcall,”) in new stack
[2012-06-03 23:27:02] VERBOSE[3484] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/101-00000017”, “1?theend”) in new stack
[2012-06-03 23:27:02] VERBOSE[3484] pbx.c: – Goto (macro-hangupcall,s,3)
[2012-06-03 23:27:02] VERBOSE[3484] pbx.c: – Executing [[email protected]:3] ExecIf(“SIP/101-00000017”, “0?Set(CDR(recordingfile)=)”) in new stack
[2012-06-03 23:27:02] VERBOSE[3484] pbx.c: – Executing [[email protected]:4] Hangup(“SIP/101-00000017”, “”) in new stack
[2012-06-03 23:27:02] VERBOSE[3484] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/101-00000017’ in macro ‘hangupcall’
[2012-06-03 23:27:02] VERBOSE[3484] pbx.c: == Spawn extension (app-all-queue-toggle, s, 16) exited non-zero on ‘SIP/101-00000017’
[2012-06-03 23:27:08] WARNING[2761] chan_sip.c: Retransmission timeout reached on transmission [email protected]:5060 for seqno 102 (Critical Request) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 6400ms with no response

The retransmission messages are not linked to the working of the BLF its the SIP protocol it self, what is strange is that they are send to the localhost 127.0.0.1 address.

What is see is that you have the wrong format in the BLF key, the format should be
45101800

This wil also be the hint that is being whatched , 45101[email protected] sould have 1 watcher in ‘core show hints’

Regards,
Richard

ps, what asterisk version are you using?

I’m using AsteriskNOW 2.0.2, not exactly sure which * comes with that and not exactly sure how to find out what I’ve got, but we’re talking recent stuff.

If it weren’t for the BLF issue, I would’ve just ignored the error…and since you say it isn’t even related to that, I’m not going to worry much about chasing it down until some problem rears its head.

Regarding your second remark, 45101800 does not actually work. I get a fast busy and the following Notice:
[2012-06-04 01:32:42] NOTICE[2761] chan_sip.c: Call from ‘101’ (192.168.1.81:1049) to extension ‘45101800’ rejected because extension not found in context ‘from-internal’.

Could it be my Aastra’s dialplan? Don’t think so since all dialed digits are passed to *.

45101*800 works in terms of the login/out but not the light, 45101800 gets me nothing but beeps.

MM the code that does give you response should not be correct, i just check in mij Freepbx install of 2.9 and i’am correct it states : 45dddqqq where ddd=Extension number and qqq= Queue Number.

I think that the Beeps tell you that the code is accepted, there is an option in freepbx that when set the Feature codes only beep, it on the advanced page, look for ‘Feature Codes Beep Only’

i’am not sure you you conclude that the 45101*800 code is working but check the following.
Be sure that the extension is a Dynamic member of the queue, than logon to the asterisk console en type ‘queue show’ this will list all queues an there members, than enter the feature code and list the queues again, you should see the extension loggin in/out of the queue.

you could also check the hint with "core show hint 45101[email protected]

Regards,
Richard

ps AstNow 2.0 i assume it contains asterisk 1.8+

Well, feature code beeps is set to false and for 45101800, I still get a fast busy, yet for 45101*800 I get “Agent logged in, 1-0-1” … of course, for 45102, I still get “Agent logged in, 1-0-1”…so obviously something ain’t quite right. I also get fast busy for *76101.

very strange?, i have programmed this on all PBXes i manage :wink:

What hints do jou have that start with *45 ?

maybe i’ll check with an 2.10 install mi self, need to set it up first… :wink:

Richard

I have a 45 for each dynamic queue member, 101, 102, and 103.

I should note, I have a pending/aborted/wtf install of the Aastra XML scripts going on – doesn’t seem to have taken effect on my test phone, wanted to tackle this issue first because I don’t really even need 'em if I can get this issue resolved. That shouldn’t make a difference but it’s worth disclosing.

Richard, what distro do you use for your PBXes? Might make sense for me to migrate to something people say works, I don’t really have any irons in this fire except that it’s fully configured and works the way I want … but I can get over that :slight_smile:

No hints matching>>"you could also check the hint with "core show hint 45101[email protected]’ "

i’am using PBX In a Flash

First off let me say I am running out the door so haven’t read the full thread here and apologize if some of this had already been repeated but thought a few corrections would be in order.

First off, when “properly configured” the Queue should see the state of the user, not the device. This is whether you use static or dynamic agents. You should see the hint information associated with the member definition which is what let’s it see the user.

By using the Hint, if you have a DND server side set (Tony mentioned that), and you have BLF’s enabled for DND, then the DND setting will be reflected and the queue will see it as busy.

As far as call waiting, that should not matter if the queue ringinuse setting are set correctly though beware of an Asterisk bug that broke this at some point in 1.8 and I’m not sure what the latest status is, it may be fixed.

Beyond that, the comments about using the dynamic agents and associated login/logout buttons are all good and why they were developed. However, keep in mind all of the above since if you are not seeing the above behaviors then something else is not right.

Hi,

I still find it odd that you have an extra * in the feature code, could you check somthing for me.
Open up the file extensions_additional.conf look vor the context [ext-queues] and post that here.

The only Feature codes that should be working are *45[QUEUENO] or 45[EXT][QUEUENO] they both go to the [app-queue-toggle] to toggle the queue member, with the latter also having a hint assigned.

is the extension loggin to the queue after using the *45 code? check that with ‘queue show 800’ (assuming 800 is the queue)

mabe you can post a log trace of a queue member login?

regards,
Richard

Per your requests (thanks so much everyone for the input thus far!!):

  1. *45 and *45800 seem to work to log into queue 800. *45101 gives me fast busy and "rejected because extension not found in context ‘from-internal’.

  2. *45 Login/Out:
    [2012-06-04 21:29:46] VERBOSE[3159] pbx.c: – Executing [[email protected]:2] Wait(“SIP/101-00000005”, “1”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:3] Macro(“SIP/101-00000005”, “user-callerid,”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:1] Set(“SIP/101-00000005”, “AMPUSER=101”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:2] GotoIf(“SIP/101-00000005”, “0?report”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:3] ExecIf(“SIP/101-00000005”, “1?Set(REALCALLERIDNUM=101)”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:4] Set(“SIP/101-00000005”, “AMPUSER=101”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:5] Set(“SIP/101-00000005”, “AMPUSERCIDNAME=Tristan Cunningham”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:6] GotoIf(“SIP/101-00000005”, “0?report”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:7] Set(“SIP/101-00000005”, “AMPUSERCID=101”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:8] Set(“SIP/101-00000005”, “CALLERID(all)=“Tristan Cunningham” <101>”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:9] GotoIf(“SIP/101-00000005”, “0?limit”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:10] ExecIf(“SIP/101-00000005”, “0?Set(GROUP(concurrency_limit)=101)”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:11] GotoIf(“SIP/101-00000005”, “0?continue”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:12] Set(“SIP/101-00000005”, “__TTL=64”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:13] GotoIf(“SIP/101-00000005”, “1?continue”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Goto (macro-user-callerid,s,24)
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:24] Set(“SIP/101-00000005”, “CALLERID(number)=101”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:25] Set(“SIP/101-00000005”, “CALLERID(name)=Tristan Cunningham”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:26] Set(“SIP/101-00000005”, “CHANNEL(language)=en”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:4] Set(“SIP/101-00000005”, “QUEUESTAT=LOGGEDOUT”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:5] AGI(“SIP/101-00000005”, “queue_devstate.agi,getqueues,101”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] res_agi.c: – Launched AGI Script /var/lib/asterisk/agi-bin/queue_devstate.agi
    [2012-06-04 21:29:47] VERBOSE[3159] res_agi.c: – queue_devstate.agi,getqueues,101: initiating queue: 800
    [2012-06-04 21:29:47] VERBOSE[3159] res_agi.c: – queue_devstate.agi,getqueues,101: Queue 800 has no one logged in
    [2012-06-04 21:29:47] VERBOSE[3159] res_agi.c: – queue_devstate.agi,getqueues,101: Finished sorting
    [2012-06-04 21:29:47] VERBOSE[3159] res_agi.c: – queue_devstate.agi,getqueues,101: Getting Queue Status for user 101 in queue 800
    [2012-06-04 21:29:47] VERBOSE[3159] res_agi.c: – queue_devstate.agi,getqueues,101: Agent 101 is LOGGEDOUT
    [2012-06-04 21:29:47] VERBOSE[3159] res_agi.c: – <SIP/101-00000005>AGI Script queue_devstate.agi completed, returning 0
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:6] GotoIf(“SIP/101-00000005”, “1?activate”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Goto (app-queue-toggle,s,13)
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:13] NoOp(“SIP/101-00000005”, “Agent Logged In”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:14] Macro(“SIP/101-00000005”, “toggle-add-agent,”) in new stack
    [2012-06-04 21:29:47] VERBOSE[3159] pbx.c: – Executing [[email protected]:1] Wait(“SIP/101-00000005”, “1”) in new stack
    [2012-06-04 21:29:47] ERROR[3161] utils.c: fwrite() returned error: Broken pipe
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:2] Macro(“SIP/101-00000005”, “user-callerid,SKIPTTL,”) in new stack
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:1] Set(“SIP/101-00000005”, “AMPUSER=101”) in new stack
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:2] GotoIf(“SIP/101-00000005”, “18?report”) in new stack
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Goto (macro-user-callerid,s,11)
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:11] GotoIf(“SIP/101-00000005”, “1?continue”) in new stack
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Goto (macro-user-callerid,s,24)
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:24] Set(“SIP/101-00000005”, “CALLERID(number)=101”) in new stack
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:25] Set(“SIP/101-00000005”, “CALLERID(name)=Tristan Cunningham”) in new stack
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:26] Set(“SIP/101-00000005”, “CHANNEL(language)=en”) in new stack
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:3] Set(“SIP/101-00000005”, “CALLBACKNUM=101”) in new stack
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:4] GotoIf(“SIP/101-00000005”, “0?invalid”) in new stack
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:5] ExecIf(“SIP/101-00000005”, “1?AddQueueMember(800,Local/[email protected]/n,0,Tristan Cunningham,hint:[email protected])”) in new stack
    [2012-06-04 21:29:48] NOTICE[3159] app_queue.c: Added interface ‘Local/[email protected]/n’ to queue ‘800’
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:6] ExecIf(“SIP/101-00000005”, “0?AddQueueMember(800,Local/[email protected]/n,0,Tristan Cunningham)”) in new stack
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:7] UserEvent(“SIP/101-00000005”, “AgentLogin,Agent: 101”) in new stack
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:8] QueueLog(“SIP/101-00000005”, “800,MANAGER,Tristan Cunningham,ADDMEMBER,”) in new stack
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:9] MacroExit(“SIP/101-00000005”, “”) in new stack
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:15] GotoIf(“SIP/101-00000005”, “0?logout”) in new stack
    [2012-06-04 21:29:48] VERBOSE[3159] pbx.c: – Executing [[email protected]:16] Playback(“SIP/101-00000005”, “agent-loginok”) in new stack
    [2012-06-04 21:29:48] VERBOSE[3159] file.c: – <SIP/101-00000005> Playing ‘agent-loginok.ulaw’ (language ‘en’)
    [2012-06-04 21:29:48] WARNING[2769] chan_sip.c: it is not necessary to specify Content-Length in sip_notify.conf, ignoring[2012-06-04 21:29:49] VERBOSE[3159] pbx.c: – Executing [[email protected]:17] SayDigits(“SIP/101-00000005”, “101”) in new stack
    [2012-06-04 21:29:49] VERBOSE[3159] file.c: – <SIP/101-00000005> Playing ‘digits/1.ulaw’ (language ‘en’)
    [2012-06-04 21:29:50] VERBOSE[3159] file.c: – <SIP/101-00000005> Playing ‘digits/0.ulaw’ (language ‘en’)
    [2012-06-04 21:29:51] VERBOSE[3159] file.c: – <SIP/101-00000005> Playing ‘digits/1.ulaw’ (language ‘en’)
    [2012-06-04 21:29:51] VERBOSE[3159] pbx.c: – Executing [[email protected]:18] Macro(“SIP/101-00000005”, “hangupcall,”) in new stack
    [2012-06-04 21:29:51] VERBOSE[3159] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/101-00000005”, “1?theend”) in new stack
    [2012-06-04 21:29:51] VERBOSE[3159] pbx.c: – Goto (macro-hangupcall,s,3)
    [2012-06-04 21:29:51] VERBOSE[3159] pbx.c: – Executing [[email protected]:3] ExecIf(“SIP/101-00000005”, “0?Set(CDR(recordingfile)=)”) in new stack
    [2012-06-04 21:29:51] VERBOSE[3159] pbx.c: – Executing [[email protected]:4] Hangup(“SIP/101-00000005”, “”) in new stack
    [2012-06-04 21:29:51] VERBOSE[3159] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/101-00000005’ in macro ‘hangupcall’
    [2012-06-04 21:29:51] VERBOSE[3159] pbx.c: == Spawn extension (app-queue-toggle, s, 18) exited non-zero on ‘SIP/101-00000005’
    [2012-06-04 21:29:54] WARNING[2766] chan_sip.c: Retransmission timeout reached on transmission [email protected]:5060 for seqno 102 (Critical Request) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
    Packet timed out after 6401ms with no response

====OUT====

[2012-06-04 21:29:57] VERBOSE[2766] netsock2.c: == Using SIP RTP TOS bits 184
[2012-06-04 21:29:57] VERBOSE[2766] netsock2.c: == Using SIP RTP CoS mark 5
[2012-06-04 21:29:57] NOTICE[2766] chan_sip.c: Call from ‘101’ (192.168.1.81:1057) to extension ‘*45101’ rejected because extension not found in context ‘from-internal’.
[2012-06-04 21:37:53] VERBOSE[2766] netsock2.c: == Using SIP RTP TOS bits 184
[2012-06-04 21:37:53] VERBOSE[2766] netsock2.c: == Using SIP RTP CoS mark 5
[2012-06-04 21:37:53] VERBOSE[3230] pbx.c: – Executing [*[email protected]:1] Goto(“SIP/101-00000006”, “app-all-queue-toggle,s,start”) in new stack
[2012-06-04 21:37:53] VERBOSE[3230] pbx.c: – Goto (app-all-queue-toggle,s,1)
[2012-06-04 21:37:53] VERBOSE[3230] pbx.c: – Executing [[email protected]:1] Answer(“SIP/101-00000006”, “”) in new stack
[2012-06-04 21:37:53] VERBOSE[3230] pbx.c: – Executing [[email protected]:2] Wait(“SIP/101-00000006”, “1”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:3] Macro(“SIP/101-00000006”, “user-callerid,”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:1] Set(“SIP/101-00000006”, “AMPUSER=101”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:2] GotoIf(“SIP/101-00000006”, “0?report”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:3] ExecIf(“SIP/101-00000006”, “1?Set(REALCALLERIDNUM=101)”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:4] Set(“SIP/101-00000006”, “AMPUSER=101”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:5] Set(“SIP/101-00000006”, “AMPUSERCIDNAME=Tristan Cunningham”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:6] GotoIf(“SIP/101-00000006”, “0?report”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:7] Set(“SIP/101-00000006”, “AMPUSERCID=101”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:8] Set(“SIP/101-00000006”, “CALLERID(all)=“Tristan Cunningham” <101>”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:9] GotoIf(“SIP/101-00000006”, “0?limit”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:10] ExecIf(“SIP/101-00000006”, “0?Set(GROUP(concurrency_limit)=101)”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:11] GotoIf(“SIP/101-00000006”, “0?continue”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:12] Set(“SIP/101-00000006”, “__TTL=64”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:13] GotoIf(“SIP/101-00000006”, “1?continue”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Goto (macro-user-callerid,s,24)
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:24] Set(“SIP/101-00000006”, “CALLERID(number)=101”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:25] Set(“SIP/101-00000006”, “CALLERID(name)=Tristan Cunningham”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:26] Set(“SIP/101-00000006”, “CHANNEL(language)=en”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:4] AGI(“SIP/101-00000006”, “queue_devstate.agi,getall,101”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] res_agi.c: – Launched AGI Script /var/lib/asterisk/agi-bin/queue_devstate.agi
[2012-06-04 21:37:54] VERBOSE[3230] res_agi.c: – queue_devstate.agi,getall,101: initiating queue: 800
[2012-06-04 21:37:54] VERBOSE[3230] res_agi.c: – queue_devstate.agi,getall,101: No Matches
[2012-06-04 21:37:54] VERBOSE[3230] res_agi.c: – queue_devstate.agi,getall,101: Agent 101 is dynamic
[2012-06-04 21:37:54] VERBOSE[3230] res_agi.c: – queue_devstate.agi,getall,101: Agent 101 is assigned to queue 800
[2012-06-04 21:37:54] VERBOSE[3230] res_agi.c: – queue_devstate.agi,getall,101: Finished processing members for 800
[2012-06-04 21:37:54] VERBOSE[3230] res_agi.c: – queue_devstate.agi,getall,101: Finished sorting
[2012-06-04 21:37:54] VERBOSE[3230] res_agi.c: – queue_devstate.agi,getall,101: Looking up queues for agent: 101
[2012-06-04 21:37:54] VERBOSE[3230] res_agi.c: – queue_devstate.agi,getall,101: Agent is in: 800
[2012-06-04 21:37:54] VERBOSE[3230] res_agi.c: – queue_devstate.agi,getall,101: checking if logged into queue: 800
[2012-06-04 21:37:54] VERBOSE[3230] res_agi.c: – queue_devstate.agi,getall,101: Yes logged into queue: 800
[2012-06-04 21:37:54] VERBOSE[3230] res_agi.c: – queue_devstate.agi,getall,101: Agent 101 is LOGGEDIN for at least one of their queues
[2012-06-04 21:37:54] VERBOSE[3230] res_agi.c: – <SIP/101-00000006>AGI Script queue_devstate.agi completed, returning 0
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:5] GotoIf(“SIP/101-00000006”, “0?skip”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:6] Set(“SIP/101-00000006”, “TOGGLE_MACRO=toggle-del-agent”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:7] Set(“SIP/101-00000006”, “LOOPCNTALL=1”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:8] Set(“SIP/101-00000006”, “ITERALL=1”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:9] Set(“SIP/101-00000006”, “QUEUENO=800”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:10] Set(“SIP/101-00000006”, “ITERALL=2”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:11] Macro(“SIP/101-00000006”, “toggle-del-agent,”) in new stack
[2012-06-04 21:37:54] VERBOSE[3230] pbx.c: – Executing [[email protected]:1] Wait(“SIP/101-00000006”, “1”) in new stack
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Executing [[email protected]:2] Macro(“SIP/101-00000006”, “user-callerid,SKIPTTL,”) in new stack
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Executing [[email protected]:1] Set(“SIP/101-00000006”, “AMPUSER=101”) in new stack
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Executing [[email protected]:2] GotoIf(“SIP/101-00000006”, “18?report”) in new stack
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Goto (macro-user-callerid,s,11)
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Executing [[email protected]:11] GotoIf(“SIP/101-00000006”, “1?continue”) in new stack
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Goto (macro-user-callerid,s,24)
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Executing [[email protected]erid:24] Set(“SIP/101-00000006”, “CALLERID(number)=101”) in new stack
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Executing [[email protected]:25] Set(“SIP/101-00000006”, “CALLERID(name)=Tristan Cunningham”) in new stack
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Executing [[email protected]:26] Set(“SIP/101-00000006”, “CHANNEL(language)=en”) in new stack
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Executing [[email protected]:3] Set(“SIP/101-00000006”, “CALLBACKNUM=101”) in new stack
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Executing [[email protected]:4] RemoveQueueMember(“SIP/101-00000006”, “800,Local/[email protected]/n”) in new stack
[2012-06-04 21:37:55] NOTICE[3230] app_queue.c: Removed interface ‘Local/[email protected]/n’ from queue ‘800’
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Executing [[email protected]:5] RemoveQueueMember(“SIP/101-00000006”, “800,Local/[email protected]/n”) in new stack
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Executing [[email protected]:6] UserEvent(“SIP/101-00000006”, “RefreshQueue”) in new stack
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Executing [[email protected]:7] QueueLog(“SIP/101-00000006”, “800,MANAGER,Tristan Cunningham,REMOVEMEMBER,”) in new stack
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Executing [[email protected]:8] MacroExit(“SIP/101-00000006”, “”) in new stack
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Executing [[email protected]:12] GotoIf(“SIP/101-00000006”, “0?begin”) in new stack
[2012-06-04 21:37:55] VERBOSE[3230] pbx.c: – Executing [[email protected]:13] ExecIf(“SIP/101-00000006”, “1?Playback(agent-loggedoff)”) in new stack
[2012-06-04 21:37:55] VERBOSE[3230] file.c: – <SIP/101-00000006> Playing ‘agent-loggedoff.ulaw’ (language ‘en’)
[2012-06-04 21:37:55] WARNING[2769] chan_sip.c: it is not necessary to specify Content-Length in sip_notify.conf, ignoring[2012-06-04 21:37:57] VERBOSE[3230] pbx.c: – Executing [[email protected]:14] ExecIf(“SIP/101-00000006”, “0?Playback(agent-loginok)”) in new stack
[2012-06-04 21:37:57] VERBOSE[3230] pbx.c: – Executing [[email protected]:15] ExecIf(“SIP/101-00000006”, “0?SayDigits(101)”) in new stack
[2012-06-04 21:37:57] VERBOSE[3230] pbx.c: – Executing [[email protected]:16] Macro(“SIP/101-00000006”, “hangupcall,”) in new stack
[2012-06-04 21:37:57] VERBOSE[3230] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/101-00000006”, “1?theend”) in new stack
[2012-06-04 21:37:57] VERBOSE[3230] pbx.c: – Goto (macro-hangupcall,s,3)
[2012-06-04 21:37:57] VERBOSE[3230] pbx.c: – Executing [[email protected]:3] ExecIf(“SIP/101-00000006”, “0?Set(CDR(recordingfile)=)”) in new stack
[2012-06-04 21:37:57] VERBOSE[3230] pbx.c: – Executing [[email protected]:4] Hangup(“SIP/101-00000006”, “”) in new stack
[2012-06-04 21:37:57] VERBOSE[3230] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/101-00000006’ in macro ‘hangupcall’
[2012-06-04 21:37:57] VERBOSE[3230] pbx.c: == Spawn extension (app-all-queue-toggle, s, 16) exited non-zero on ‘SIP/101-00000006’
[2012-06-04 21:38:02] WARNING[2766] chan_sip.c: Retransmission timeout reached on transmission [email protected]:5060 for seqno 102 (Critical Request) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 6400ms with no response

  1. ext-queue
    ================================
    [ext-queues]
    include => ext-queues-custom
    exten => 800,1,Macro(user-callerid,)
    exten => 800,n,Answer
    exten => 800,n,ExecIf($["${QUEUEWAIT}" = “”]?Set(__QUEUEWAIT=${EPOCH}))
    exten => 800,n,Set(__NODEST=${EXTEN})
    exten => 800,n,Gosub(sub-record-check,s,1(q,800,dontcare))
    exten => 800,n,Set(__CWIGNORE=TRUE)
    exten => 800,n,Set(__CFIGNORE=TRUE)
    exten => 800,n,Set(__FORWARD_CONTEXT=block-cf)
    exten => 800,n,QueueLog(800,${UNIQUEID},NONE,DID,${FROM_DID})
    exten => 800,n,Queue(800,tC,)
    exten => 800,n,Gosub(sub-record-cancel,s,1())
    exten => 800,n,Set(__NODEST=)
    exten => 800,n,Set(__CWIGNORE=)
    exten => 800,n,Set(__CFIGNORE=)
    exten => 800,n,Set(__FORWARD_CONTEXT=from-internal)
    exten => 800,n,Goto(ext-local,vmb700,1)

exten => 800*,1,Macro(agent-add,800,EXTEN)

exten => 800**,1,Macro(agent-del,800)

exten => *45800,1,Set(QUEUENO=800)
exten => *45800,n,Goto(app-queue-toggle,s,start)

exten => *45,1,Goto(app-all-queue-toggle,s,start)

exten => _45X.,1,Goto(app-all-queue-toggle,s,start)

exten => 45101,1,Goto(app-all-queue-toggle,s,start)

exten => 45101,hint,Custom:QUEUE101*800
exten => 45102,1,Goto(app-all-queue-toggle,s,start)

exten => 45102,hint,Custom:QUEUE102*800
exten => 45103,1,Goto(app-all-queue-toggle,s,start)

exten => 45103,hint,Custom:QUEUE103*800
exten => 459101,1,Goto(app-all-queue-toggle,s,start)

exten => 459102,1,Goto(app-all-queue-toggle,s,start)

exten => 459103,1,Goto(app-all-queue-toggle,s,start)

exten => h,1,Macro(hangupcall,)

;–== end of [ext-queues] ==–;

niacs, I’m starting to think I should jump on the PiaF bandwagon with you. I found it to be a bit (to say the least) bloated but … if we’re on the same page, I’d know something didn’t go wrong in my install or whatever.

Any ideas on the easiest migration from one Asterisk flavor to another, granted that the versions are more or less concurrent?

Sorry it took me so long to respond, have been quite busy and the answer was nog easy.

Uour dialplan was a little unexpected, so to answer you question i have setup a 2.10 with queue and extension, what i found out was that i’am missing a piece of dialplan in your system and i dont know why. it might be somthing with de module, i have installed version 2.10.0.4 of the Queues module.
At least it seems that 2.10 has a new option call ALL-Queue-Toggle.

what i am missing is the following : (301 is the dynamic extension,650 is the queue)

exten => *45301*650,1,Set(QUEUENO=650)
exten => *45301*650,n,Goto(app-queue-toggle,s,start)
exten => *45301*650,hint,Custom:QUEUE301*650

You could even post that in that section to test. (temporaraly it will be overritten when using the gui)

This will create the following hints :
(where 45301[email protected] is what we are looking for)

pbx*CLI> core show hints
    -= Registered Asterisk Dial Plan Hints =-
                 *[email protected]       : Custom:DEVDND301      State:Idle            Watchers  0
                 *[email protected]           : ccss:SIP/301          State:Idle            Watchers  0
             *45301*[email protected]          : Custom:QUEUE301*650   State:Idle            Watchers  0
                *45*[email protected]          : Custom:QUEUE301*650   State:Idle            Watchers  0
                    [email protected]           : SIP/301&Custom:DND30  State:Unavailable     Watchers  0
                *[email protected]        : Custom:DEVCF301       State:Idle            Watchers  0
                 *[email protected]    : Custom:FOLLOWME301    State:Idle            Watchers  0
----------------

The only thing i found while testing the setup is that that hint and dialplan piece are created only if the extension exists and is a Dynamic of Static member of the queue.

Unfortunately i have no definitive answer on what is happening at you pbx.

About switching to PIAF, that sould not be nessesary, its all FreePBX, so this sould not be your problem.
I think that i is best to see if you can test with aa new Queue, just create the queue enable queue hints and add one dynamic member, then see if anything changed.

Regards,
Richard

I know this all works flawless on the FreePBX Distro and we by default have hints and everything enabled.

Thanks just the same for the help guys, but I took the plunge last night and went over to PiaF, well at least started the install.

I’m sure it isn’t a FreePBX issue, I was wondering if it might’ve been a difference in versions and whatnot however.

AsteriskNOW has some things that are too old (Centos5 running PHP 5.1) and some things that are too new at the same time combined with a smaller install base that makes getting help or trying things others have more difficult. So for this and other reasons, I’m moving on. I don’t take well to being “the only one” with a particular problem.

I’ll just have to debloat PiaF when it’s done :slight_smile:

Well tecsbrain, than i say, Welcome to the PIAF scene :wink: , hope you have more luck with the new install.

May i ask though,what you think is bloated, because the PIAF system just contains the basics wich is Asterisk and FreePBX,it gives you some scrips to install some nice tools if you want them(for wich i saluut Tom and Ward), and if you even install the incredible PBX than you will get lots more…and you get the stuff that other people say makes a distri bloated.

But never the less, i like PIAF because of the compile from source design nature, but if i ever get tired of that i think it will be the FreePBX Distro, witch Tony so nicely has put together :wink:

Good luck,
Richard.

I actually used PiaF years ago and it worked well, and I also tried it before AsteriskNOW here lately and it worked well then too but I was experimenting with things at the time and just liked that *Now came pretty much barebones except some Digium addons that were easy to remove – no faxing, no … anything.

I guess I shouldn’t say bloat because I do greatly respect Ward’s (and the others) work…there’s just a lot in there that I don’t need - my needs are an IVR, a queue, follow-me, maybe Time Conditions, and that’s about it.