[Asterisk-code-review] app queue: Add priority to AMI QueueStatus (asterisk[master])

Niklas Larsson asteriskteam at digium.com
Thu Jun 29 03:55:04 CDT 2017


Niklas Larsson has uploaded this change for review. ( https://gerrit.asterisk.org/5924


Change subject: app_queue: Add priority to AMI QueueStatus
......................................................................

app_queue: Add priority to AMI QueueStatus

Add priority to callers in AMI QueueStatus response

ASTERISK-27092 #close

Change-Id: I8d1f737a72c7c38f4cfe1a4ee3ecc0a4f85bd199
---
M apps/app_queue.c
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/24/5924/1

diff --git a/apps/app_queue.c b/apps/app_queue.c
index f158a4c..aa04238 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -9949,6 +9949,7 @@
 					"ConnectedLineNum: %s\r\n"
 					"ConnectedLineName: %s\r\n"
 					"Wait: %ld\r\n"
+					"Priority: %d\r\n"
 					"%s"
 					"\r\n",
 					q->name, pos++, ast_channel_name(qe->chan), ast_channel_uniqueid(qe->chan),
@@ -9956,7 +9957,7 @@
 					S_COR(ast_channel_caller(qe->chan)->id.name.valid, ast_channel_caller(qe->chan)->id.name.str, "unknown"),
 					S_COR(ast_channel_connected(qe->chan)->id.number.valid, ast_channel_connected(qe->chan)->id.number.str, "unknown"),
 					S_COR(ast_channel_connected(qe->chan)->id.name.valid, ast_channel_connected(qe->chan)->id.name.str, "unknown"),
-					(long) (now - qe->start), idText);
+					(long) (now - qe->start), qe->prio, idText);
 				++q_items;
 			}
 		}

-- 
To view, visit https://gerrit.asterisk.org/5924
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8d1f737a72c7c38f4cfe1a4ee3ecc0a4f85bd199
Gerrit-Change-Number: 5924
Gerrit-PatchSet: 1
Gerrit-Owner: Niklas Larsson <niklas at tese.se>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170629/ed0509a6/attachment.html>


More information about the asterisk-code-review mailing list