summaryrefslogtreecommitdiff
path: root/funcs
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2016-08-15 16:29:53 -0400
committerCorey Farrell <git@cfware.com>2016-08-16 10:42:46 -0500
commit824a4e84d162c6b0925e6b1b07c395a4a7f4a53a (patch)
treebdb15958b26540dd1cc97b8aaedd194e4ff9ad3f /funcs
parent4f0067293e579f6fecc98806841388c9bc5a851e (diff)
Refactor usage pattern of xmldoc info tag.
This updates func_channel.c and main/message.c to use a generic xpointer include instead of including info from each channel driver. Now the name attribute of info is CHANNEL or CHANNEL_EXAMPLES to be included in documentation for func_channel. Setting the name attribute of info to MessageToInfo or MessageFromInfo causes it to be included in the MessageSend application and AMI action. Change-Id: I89fd8276a3250824241a618009714267d3a8d1ea
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_channel.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/funcs/func_channel.c b/funcs/func_channel.c
index 9831dd71f..e816dcae0 100644
--- a/funcs/func_channel.c
+++ b/funcs/func_channel.c
@@ -236,11 +236,7 @@ ASTERISK_REGISTER_FILE()
<para>R/W The maximum number of forwards allowed.</para>
</enum>
</enumlist>
- <xi:include xpointer="xpointer(/docs/info[@name='SIPCHANNEL'])" />
- <xi:include xpointer="xpointer(/docs/info[@name='PJSIPCHANNEL'])" />
- <xi:include xpointer="xpointer(/docs/info[@name='IAXCHANNEL'])" />
- <xi:include xpointer="xpointer(/docs/info[@name='DAHDICHANNEL'])" />
- <xi:include xpointer="xpointer(/docs/info[@name='OOH323CHANNEL'])" />
+ <xi:include xpointer="xpointer(/docs/info[@name='CHANNEL'])" />
</parameter>
</syntax>
<description>
@@ -266,7 +262,7 @@ ASTERISK_REGISTER_FILE()
; Log the current state of the channel
same => n,Log(NOTICE, This channel is: ${CHANNEL(state)})
</example>
- <xi:include xpointer="xpointer(/docs/info[@name='PJSIPCHANNEL_EXAMPLES'])" />
+ <xi:include xpointer="xpointer(/docs/info[@name='CHANNEL_EXAMPLES'])" />
</description>
</function>
***/