From d69b7c6c6d048d9e99d887478519b58b8ef020c6 Mon Sep 17 00:00:00 2001
From: Richard Mudgett <rmudgett@digium.com>
Date: Wed, 27 Dec 2017 20:48:40 -0600
Subject: [PATCH] manager.c: Update AMI Status event documentation

The AMI Status event had linkedid listed twice and was missing the
effective connected line name and number headers.

NOTE: The linkedid and other standard channel snapshot fields in the XML
documentation are part of the <channel_snapshot/> XML template defined in
doc/appdocsxml.xslt.

Change-Id: I004c4c4f9e7b40ef55035c831702721bec82496c
---
 main/manager.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/main/manager.c b/main/manager.c
index 71d7432a0f..576978c31c 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -253,14 +253,16 @@
 				<parameter name="DNID">
 					<para>Dialed number identifier</para>
 				</parameter>
+				<parameter name="EffectiveConnectedLineNum">
+				</parameter>
+				<parameter name="EffectiveConnectedLineName">
+				</parameter>
 				<parameter name="TimeToHangup">
 					<para>Absolute lifetime of the channel</para>
 				</parameter>
 				<parameter name="BridgeID">
 					<para>Identifier of the bridge the channel is in, may be empty if not in one</para>
 				</parameter>
-				<parameter name="Linkedid">
-				</parameter>
 				<parameter name="Application">
 					<para>Application currently executing on the channel</para>
 				</parameter>
@@ -4614,7 +4616,6 @@ static void generate_status(struct mansession *s, struct ast_channel *chan, char
 		"EffectiveConnectedLineName: %s\r\n"
 		"TimeToHangup: %ld\r\n"
 		"BridgeID: %s\r\n"
-		"Linkedid: %s\r\n"
 		"Application: %s\r\n"
 		"Data: %s\r\n"
 		"Nativeformats: %s\r\n"
@@ -4635,7 +4636,6 @@ static void generate_status(struct mansession *s, struct ast_channel *chan, char
 		S_COR(effective_id.name.valid, effective_id.name.str, "<unknown>"),
 		(long)ast_channel_whentohangup(chan)->tv_sec,
 		bridge ? bridge->uniqueid : "",
-		ast_channel_linkedid(chan),
 		ast_channel_appl(chan),
 		ast_channel_data(chan),
 		ast_format_cap_get_names(ast_channel_nativeformats(chan), &codec_buf),
-- 
GitLab