aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-18 00:25:18 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-18 00:25:18 +0000
commita882f145b1080e2bd3a1e43b8219ab2d912aa2dd (patch)
treefa1250ff4370a5eda43aa614c897c344cee3accf
parentb113f1c50269089a9d488cb29d14d6636cb61726 (diff)
The QueueEntry event now has the uniqueid of the channel included.
(closes issue #13731) reported and patched by: caio1982 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@150773 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--CHANGES1
-rw-r--r--apps/app_queue.c3
-rw-r--r--doc/manager_1_1.txt2
3 files changed, 5 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 0df45a4dc..9467b1df2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -216,6 +216,7 @@ AMI - The manager (TCP/TLS/HTTP)
--------------------------------
* The Status command now takes an optional list of variables to display
along with channel status.
+ * The QueueEntry event now also includes the channel's uniqueid
ODBC Changes
------------
diff --git a/apps/app_queue.c b/apps/app_queue.c
index a4e543f11..030dab001 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -5746,12 +5746,13 @@ static int manager_queues_status(struct mansession *s, const struct message *m)
"Queue: %s\r\n"
"Position: %d\r\n"
"Channel: %s\r\n"
+ "Uniqueid: %s\r\n"
"CallerIDNum: %s\r\n"
"CallerIDName: %s\r\n"
"Wait: %ld\r\n"
"%s"
"\r\n",
- q->name, pos++, qe->chan->name,
+ q->name, pos++, qe->chan->name, qe->chan->uniqueid,
S_OR(qe->chan->cid.cid_num, "unknown"),
S_OR(qe->chan->cid.cid_name, "unknown"),
(long) (now - qe->start), idText);
diff --git a/doc/manager_1_1.txt b/doc/manager_1_1.txt
index 78e376b0e..23ac97493 100644
--- a/doc/manager_1_1.txt
+++ b/doc/manager_1_1.txt
@@ -125,6 +125,8 @@ Changes to manager version 1.1:
If you call out to a subshell in Originate with the Application parameter,
you now also need the System privilege.
+- Event QueueEntry now also returns the Uniqueid field like other events from app_queue.
+
* NEW ACTIONS
-------------
- Action: ModuleLoad