]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
AMI: Add Linkedid to the standard channel snapshot AMI event headers. 28/728/1
authorRichard Mudgett <rmudgett@digium.com>
Tue, 23 Jun 2015 19:34:29 +0000 (14:34 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 25 Jun 2015 20:38:34 +0000 (15:38 -0500)
ASTERISK-25189 #close
Reported by: John Hardin

Change-Id: I2b1778c3fdc1dca0ed55db4e3a639eddfb16c2ac

CHANGES
doc/appdocsxml.xslt
main/manager_channels.c

diff --git a/CHANGES b/CHANGES
index 6dd767e59cf8c51e6eed9d80be38c9d59036dfbf..a5076aa45a68dc0819dcbfd8d7afaf36af39e0d9 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -7,9 +7,20 @@
 === and the other UPGRADE files for older releases.
 ===
 ==============================================================================
+
+------------------------------------------------------------------------------
+--- Functionality changes from Asterisk 13.1.0-cert3 to Asterisk 13.1-cert4 --
+------------------------------------------------------------------------------
+
+AMI
+------------------
+ * Added the Linkedid header to the common channel headers listed for each
+   channel in AMI events.
+
 ------------------------------------------------------------------------------
---- Functionality changes from Asterisk 13.1.0 to Asterisk 13.1-cert2 --------
+--- Functionality changes from Asterisk 13.1.0-cert1 to Asterisk 13.1-cert2 --
 ------------------------------------------------------------------------------
+
 res_pjsip
 ------------------
  * A new 'endpoint_identifier_order' option has been added that allows one to
index 8cbeaa3a52c11a0e366bdb112e9d3e2569b8480a..6e4c5ac500dc60a94aba1f157f81f4de335ae9c4 100644 (file)
                 <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>
+            <para>Uniqueid of the oldest channel associated with this channel.</para>
+        </xsl:element>
     </xsl:template>
 
     <xsl:template match="bridge_snapshot">
index 2b9f975fad68ec0d065db279173f08f846f8308b..c9f048db057cc5424950cf75153f6b7251f0d9ec 100644 (file)
@@ -435,7 +435,8 @@ struct ast_str *ast_manager_build_channel_state_string_prefix(
                "%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 @@ struct ast_str *ast_manager_build_channel_state_string_prefix(
                prefix, snapshot->context,
                prefix, snapshot->exten,
                prefix, snapshot->priority,
-               prefix, snapshot->uniqueid);
+               prefix, snapshot->uniqueid,
+               prefix, snapshot->linkedid);
 
        if (!res) {
                ast_free(out);