[Asterisk-code-review] manager: Add <see-also> links between related events (asterisk[13])
Anonymous Coward
asteriskteam at digium.com
Mon Aug 15 15:46:05 CDT 2016
Anonymous Coward #1000019 has submitted this change and it was merged.
Change subject: manager: Add <see-also> links between related events
......................................................................
manager: Add <see-also> links between related events
This patch adds some see-also references between related AMI events. It
focuses primarily on those events that are guaranteed to come in pairs,
such as DTMFBegin/DTMFEnd, as well as those that occur during the life
cycle of an Asterisk channel, such as Newchannel/Hangup.
Change-Id: Iaab600477052018d0f8c03d0c624c0856e9ff1f3
---
M main/manager_channels.c
M main/rtp_engine.c
2 files changed, 60 insertions(+), 2 deletions(-)
Approvals:
Mark Michelson: Looks good to me, approved
Anonymous Coward #1000019: Verified
Joshua Colp: Looks good to me, but someone else must approve
diff --git a/main/manager_channels.c b/main/manager_channels.c
index ef71c65..7a4bd23 100644
--- a/main/manager_channels.c
+++ b/main/manager_channels.c
@@ -44,6 +44,10 @@
<syntax>
<channel_snapshot/>
</syntax>
+ <see-also>
+ <ref type="managerEvent">Newstate</ref>
+ <ref type="managerEvent">Hangup</ref>
+ </see-also>
</managerEventInstance>
</managerEvent>
<managerEvent language="en_US" name="Newstate">
@@ -52,6 +56,10 @@
<syntax>
<channel_snapshot/>
</syntax>
+ <see-also>
+ <ref type="managerEvent">Newchannel</ref>
+ <ref type="managerEvent">Hangup</ref>
+ </see-also>
</managerEventInstance>
</managerEvent>
<managerEvent language="en_US" name="Hangup">
@@ -66,6 +74,12 @@
<para>A description of why the channel was hung up.</para>
</parameter>
</syntax>
+ <see-also>
+ <ref type="managerEvent">Newchannel</ref>
+ <ref type="managerEvent">SoftHangupRequest</ref>
+ <ref type="managerEvent">HangupRequest</ref>
+ <ref type="managerEvent">Newstate</ref>
+ </see-also>
</managerEventInstance>
</managerEvent>
<managerEvent language="en_US" name="HangupRequest">
@@ -75,6 +89,10 @@
<channel_snapshot/>
<xi:include xpointer="xpointer(/docs/managerEvent[@name='Hangup']/managerEventInstance/syntax/parameter[@name='Cause'])" />
</syntax>
+ <see-also>
+ <ref type="managerEvent">SoftHangupRequest</ref>
+ <ref type="managerEvent">Hangup</ref>
+ </see-also>
</managerEventInstance>
</managerEvent>
<managerEvent language="en_US" name="SoftHangupRequest">
@@ -84,6 +102,10 @@
<channel_snapshot/>
<xi:include xpointer="xpointer(/docs/managerEvent[@name='Hangup']/managerEventInstance/syntax/parameter[@name='Cause'])" />
</syntax>
+ <see-also>
+ <ref type="managerEvent">HangupRequest</ref>
+ <ref type="managerEvent">Hangup</ref>
+ </see-also>
</managerEventInstance>
</managerEvent>
<managerEvent language="en_US" name="NewExten">
@@ -114,6 +136,9 @@
<para>A description of the Caller ID presentation.</para>
</parameter>
</syntax>
+ <see-also>
+ <ref type="function">CALLERID</ref>
+ </see-also>
</managerEventInstance>
</managerEvent>
<managerEvent language="en_US" name="NewAccountCode">
@@ -125,6 +150,9 @@
<para>The channel's previous account code</para>
</parameter>
</syntax>
+ <see-also>
+ <ref type="function">CHANNEL</ref>
+ </see-also>
</managerEventInstance>
</managerEvent>
<managerEvent language="en_US" name="DialBegin">
@@ -139,6 +167,9 @@
</syntax>
<see-also>
<ref type="application">Dial</ref>
+ <ref type="application">Originate</ref>
+ <ref type="manager">Originate</ref>
+ <ref type="managerEvent">DialEnd</ref>
</see-also>
</managerEventInstance>
</managerEvent>
@@ -192,6 +223,9 @@
</syntax>
<see-also>
<ref type="application">Dial</ref>
+ <ref type="application">Originate</ref>
+ <ref type="manager">Originate</ref>
+ <ref type="managerEvent">DialBegin</ref>
</see-also>
</managerEventInstance>
</managerEvent>
@@ -204,6 +238,9 @@
<para>The suggested MusicClass, if provided.</para>
</parameter>
</syntax>
+ <see-also>
+ <ref type="managerEvent">Unhold</ref>
+ </see-also>
</managerEventInstance>
</managerEvent>
<managerEvent language="en_US" name="Unhold">
@@ -212,6 +249,9 @@
<syntax>
<channel_snapshot/>
</syntax>
+ <see-also>
+ <ref type="managerEvent">Hold</ref>
+ </see-also>
</managerEventInstance>
</managerEvent>
<managerEvent language="en_US" name="ChanSpyStart">
@@ -222,7 +262,8 @@
<channel_snapshot prefix="Spyee"/>
</syntax>
<see-also>
- <ref type="application">ChanSpyStop</ref>
+ <ref type="managerEvent">ChanSpyStop</ref>
+ <ref type="application">ChanSpy</ref>
</see-also>
</managerEventInstance>
</managerEvent>
@@ -234,7 +275,8 @@
<channel_snapshot prefix="Spyee"/>
</syntax>
<see-also>
- <ref type="application">ChanSpyStart</ref>
+ <ref type="managerEvent">ChanSpyStart</ref>
+ <ref type="application">ChanSpy</ref>
</see-also>
</managerEventInstance>
</managerEvent>
@@ -247,6 +289,9 @@
<para>Hangup handler parameter string passed to the Gosub application.</para>
</parameter>
</syntax>
+ <see-also>
+ <ref type="function">CHANNEL</ref>
+ </see-also>
</managerEventInstance>
</managerEvent>
<managerEvent language="en_US" name="HangupHandlerPop">
@@ -353,6 +398,7 @@
</syntax>
<see-also>
<ref type="managerEvent">MusicOnHoldStop</ref>
+ <ref type="application">StartMusicOnHold</ref>
<ref type="application">MusicOnHold</ref>
</see-also>
</managerEventInstance>
@@ -829,6 +875,9 @@
</enumlist>
</parameter>
</syntax>
+ <see-also>
+ <ref type="managerEvent">DTMFEnd</ref>
+ </see-also>
</managerEventInstance>
***/
manager_event(EVENT_FLAG_DTMF, "DTMFBegin",
@@ -875,6 +924,9 @@
</enumlist>
</parameter>
</syntax>
+ <see-also>
+ <ref type="managerEvent">DTMFBegin</ref>
+ </see-also>
</managerEventInstance>
***/
manager_event(EVENT_FLAG_DTMF, "DTMFEnd",
diff --git a/main/rtp_engine.c b/main/rtp_engine.c
index db733ac..7a83783 100644
--- a/main/rtp_engine.c
+++ b/main/rtp_engine.c
@@ -102,6 +102,9 @@
and sending this report.</para>
</parameter>
</syntax>
+ <see-also>
+ <ref type="managerEvent">RTCPReceived</ref>
+ </see-also>
</managerEventInstance>
</managerEvent>
<managerEvent language="en_US" name="RTCPReceived">
@@ -131,6 +134,9 @@
<xi:include xpointer="xpointer(/docs/managerEvent[@name='RTCPSent']/managerEventInstance/syntax/parameter[@name='SentOctets'])" />
<xi:include xpointer="xpointer(/docs/managerEvent[@name='RTCPSent']/managerEventInstance/syntax/parameter[contains(@name, 'ReportX')])" />
</syntax>
+ <see-also>
+ <ref type="managerEvent">RTCPSent</ref>
+ </see-also>
</managerEventInstance>
</managerEvent>
***/
--
To view, visit https://gerrit.asterisk.org/3528
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iaab600477052018d0f8c03d0c624c0856e9ff1f3
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
More information about the asterisk-code-review
mailing list