[Asterisk-code-review] AMI: Add Linkedid to the standard channel snapshot AMI event... (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Tue Jun 23 16:34:05 CDT 2015


Richard Mudgett has uploaded a new change for review.

  https://gerrit.asterisk.org/700

Change subject: AMI: Add Linkedid to the standard channel snapshot AMI event headers.
......................................................................

AMI: Add Linkedid to the standard channel snapshot AMI event headers.

* The AMI version is bumped to 2.8.0.

ASTERISK-25189 #close
Reported by: John Hardin

Change-Id: I2b1778c3fdc1dca0ed55db4e3a639eddfb16c2ac
---
M doc/appdocsxml.xslt
M include/asterisk/manager.h
M main/manager_channels.c
3 files changed, 10 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/00/700/1

diff --git a/doc/appdocsxml.xslt b/doc/appdocsxml.xslt
index 8cbeaa3..3c41f77 100644
--- a/doc/appdocsxml.xslt
+++ b/doc/appdocsxml.xslt
@@ -98,6 +98,11 @@
                 <xsl:value-of select="concat(@prefix,'Uniqueid')"/>
             </xsl:attribute>
         </xsl:element>
+        <xsl:element name="parameter">
+            <xsl:attribute name="name">
+                <xsl:value-of select="concat(@prefix,'Linkedid')"/>
+            </xsl:attribute>
+        </xsl:element>
     </xsl:template>
 
     <xsl:template match="bridge_snapshot">
diff --git a/include/asterisk/manager.h b/include/asterisk/manager.h
index 43031d1..b5ede54 100644
--- a/include/asterisk/manager.h
+++ b/include/asterisk/manager.h
@@ -54,7 +54,7 @@
 - \ref manager.c Main manager code file
  */
 
-#define AMI_VERSION                     "2.7.0"
+#define AMI_VERSION                     "2.8.0"
 #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 */
 
diff --git a/main/manager_channels.c b/main/manager_channels.c
index 552adc7..adef639 100644
--- a/main/manager_channels.c
+++ b/main/manager_channels.c
@@ -435,7 +435,8 @@
 		"%sContext: %s\r\n"
 		"%sExten: %s\r\n"
 		"%sPriority: %d\r\n"
-		"%sUniqueid: %s\r\n",
+		"%sUniqueid: %s\r\n"
+		"%sLinkedid: %s\r\n",
 		prefix, snapshot->name,
 		prefix, snapshot->state,
 		prefix, ast_state2str(snapshot->state),
@@ -448,7 +449,8 @@
 		prefix, snapshot->context,
 		prefix, snapshot->exten,
 		prefix, snapshot->priority,
-		prefix, snapshot->uniqueid);
+		prefix, snapshot->uniqueid,
+		prefix, snapshot->linkedid);
 
 	if (!res) {
 		ast_free(out);

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2b1778c3fdc1dca0ed55db4e3a639eddfb16c2ac
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list