be logged in the agent field for ADDMEMBER and REMOVEMEMBER queue events if a
state_interface has been set.
+ * Add queue monitoring hints. exten => 8501,hint,Queue:markq.
SayUnixTime
------------------
ast_copy_string(qe->announce, q->announce, sizeof(qe->announce));
ast_copy_string(qe->context, q->context, sizeof(qe->context));
q->count++;
+ if (q->count == 1) {
+ ast_devstate_changed(AST_DEVICE_RINGING, "Queue:%s", q->name);
+ }
+
res = 0;
/*** DOCUMENTATION
<managerEventInstance>
if (current == qe) {
char posstr[20];
q->count--;
+ if (!q->count) {
+ ast_devstate_changed(AST_DEVICE_NOT_INUSE, "Queue:%s", q->name);
+ }
/* Take us out of the queue */
/*** DOCUMENTATION
;exten => 6600,hint,park:701@parkedcalls
;exten => 6600,1,noop
;
-
;To subscribe to the availability of a free member in the 'markq' queue.
;Note: '_avail' is added to the QueueName
;exten => 8501,hint,Queue:markq_avail
;exten => 8501,1,Queue(markq)
-
+;
+; You can also monitor the status of a queue by providing a hint for a
+; particular queue name.
+;exten => 8502,hint,Queue:markq
+;exten => 8502,1,Queue(markq)
+;
; Some other handy things are an extension for checking voicemail via
; voicemailmain
;