[asterisk-commits] AMI: Add Linkedid to the standard channel snapshot AMI event... (asterisk[certified/13.1])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jun 26 11:00:13 CDT 2015
Matt Jordan has submitted this change and it was merged.
Change subject: AMI: Add Linkedid to the standard channel snapshot AMI event headers.
......................................................................
AMI: Add Linkedid to the standard channel snapshot AMI event headers.
ASTERISK-25189 #close
Reported by: John Hardin
Change-Id: I2b1778c3fdc1dca0ed55db4e3a639eddfb16c2ac
---
M CHANGES
M doc/appdocsxml.xslt
M main/manager_channels.c
3 files changed, 22 insertions(+), 3 deletions(-)
Approvals:
Matt Jordan: Looks good to me, approved; Verified
Joshua Colp: Looks good to me, but someone else must approve
diff --git a/CHANGES b/CHANGES
index 6dd767e..a5076aa 100644
--- a/CHANGES
+++ b/CHANGES
@@ -7,9 +7,20 @@
=== and the other UPGRADE files for older releases.
===
==============================================================================
+
------------------------------------------------------------------------------
---- Functionality changes from Asterisk 13.1.0 to Asterisk 13.1-cert2 --------
+--- 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-cert1 to Asterisk 13.1-cert2 --
+------------------------------------------------------------------------------
+
res_pjsip
------------------
* A new 'endpoint_identifier_order' option has been added that allows one to
diff --git a/doc/appdocsxml.xslt b/doc/appdocsxml.xslt
index 8cbeaa3..6e4c5ac 100644
--- a/doc/appdocsxml.xslt
+++ b/doc/appdocsxml.xslt
@@ -98,6 +98,12 @@
<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">
diff --git a/main/manager_channels.c b/main/manager_channels.c
index 2b9f975..c9f048d 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/728
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2b1778c3fdc1dca0ed55db4e3a639eddfb16c2ac
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: certified/13.1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
More information about the asterisk-commits
mailing list