app_queue: Add priority to AMI QueueStatus

Add priority to callers in AMI QueueStatus response

ASTERISK-27092 #close

Change-Id: I8d1f737a72c7c38f4cfe1a4ee3ecc0a4f85bd199
This commit is contained in:
Niklas Larsson
2017-06-29 10:47:41 +02:00
committed by George Joseph
parent 3418d8d145
commit 9a09f7dd5d
3 changed files with 9 additions and 2 deletions

View File

@@ -39,9 +39,15 @@ res_musiconhold
which sends signals to the application and its descendants directly, or
"process" which sends signals only to the application itself.
res_pjsip
------------------
* New dialplan function PJSIP_DTMF_MODE added to get or change the DTMF mode
of a channel on a per-call basis.
app_queue
------------------
* Add priority to callers in AMI QueueStatus response.
------------------------------------------------------------------------------
--- Functionality changes from Asterisk 13.16.0 to Asterisk 13.17.0 ----------
------------------------------------------------------------------------------

View File

@@ -9695,6 +9695,7 @@ static int manager_queues_status(struct mansession *s, const struct message *m)
"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),
@@ -9702,7 +9703,7 @@ static int manager_queues_status(struct mansession *s, const struct message *m)
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;
}
}

View File

@@ -54,7 +54,7 @@
- \ref manager.c Main manager code file
*/
#define AMI_VERSION "2.10.0"
#define AMI_VERSION "2.10.1"
#define DEFAULT_MANAGER_PORT 5038 /* Default port for Asterisk management via TCP */
#define DEFAULT_MANAGER_TLS_PORT 5039 /* Default port for Asterisk management via TCP */