From: Corey Farrell Date: Mon, 15 Aug 2016 20:29:53 +0000 (-0400) Subject: Refactor usage pattern of xmldoc info tag. X-Git-Tag: 15.0.0-beta1~731 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=824a4e84d162c6b0925e6b1b07c395a4a7f4a53a;p=thirdparty%2Fasterisk.git 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 --- diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index 127ba0c8fe..2a895650a5 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -23,7 +23,7 @@ ***/ /*** DOCUMENTATION - + R/W Fax Detect diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index cbe7dba545..8cccf843b4 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -178,7 +178,7 @@ ASTERISK_REGISTER_FILE() This application will Accept the R2 call either with charge or no charge. - + R/O DAHDI channel related to this channel. diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 1b3e287af4..456ba8f1ed 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -212,7 +212,7 @@ ASTERISK_REGISTER_FILE() Gets or sets a variable that is sent to a remote IAX2 peer during call setup. - + R/O Get the peer's osptoken. diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 2c44208b46..f57d4670b3 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -568,11 +568,11 @@ ASTERISK_REGISTER_FILE() for all of the sip peers will be retrieved. - + The from parameter can be a configured peer name or in the form of "display-name" <URI>. - + Specifying a prefix of sip: will send the message as a SIP MESSAGE request. diff --git a/channels/pjsip/dialplan_functions.c b/channels/pjsip/dialplan_functions.c index 322f56483d..4d888c8faa 100644 --- a/channels/pjsip/dialplan_functions.c +++ b/channels/pjsip/dialplan_functions.c @@ -109,7 +109,7 @@ PJSIP_MEDIA_OFFER - + R/O Retrieve media related information. @@ -411,7 +411,7 @@ - + ; Log the current Call-ID same => n,Log(NOTICE, ${CHANNEL(pjsip,call-id)}) diff --git a/channels/sip/dialplan_functions.c b/channels/sip/dialplan_functions.c index 988378835f..53d15dddb6 100644 --- a/channels/sip/dialplan_functions.c +++ b/channels/sip/dialplan_functions.c @@ -24,7 +24,7 @@ ***/ /*** DOCUMENTATION - + R/O Get the IP address of the peer. diff --git a/doc/appdocsxml.xslt b/doc/appdocsxml.xslt index 6e4c5ac500..f067decaef 100644 --- a/doc/appdocsxml.xslt +++ b/doc/appdocsxml.xslt @@ -6,7 +6,10 @@ - + + + + diff --git a/funcs/func_channel.c b/funcs/func_channel.c index 9831dd71fd..e816dcae00 100644 --- a/funcs/func_channel.c +++ b/funcs/func_channel.c @@ -236,11 +236,7 @@ ASTERISK_REGISTER_FILE() R/W The maximum number of forwards allowed. - - - - - + @@ -266,7 +262,7 @@ ASTERISK_REGISTER_FILE() ; Log the current state of the channel same => n,Log(NOTICE, This channel is: ${CHANNEL(state)}) - + ***/ diff --git a/main/message.c b/main/message.c index 54c604c47d..0fc67ec025 100644 --- a/main/message.c +++ b/main/message.c @@ -123,16 +123,12 @@ ASTERISK_REGISTER_FILE() A To URI for the message. - - - + A From URI for the message if needed for the message technology being used to send this message. - - - + @@ -168,16 +164,12 @@ ASTERISK_REGISTER_FILE() The URI the message is to be sent to. - - - + A From URI for the message if needed for the message technology being used to send this message. - - - + The message body text. This must not contain any newlines as that diff --git a/res/res_pjsip_messaging.c b/res/res_pjsip_messaging.c index b508a2a596..7efb1a20e6 100644 --- a/res/res_pjsip_messaging.c +++ b/res/res_pjsip_messaging.c @@ -24,11 +24,11 @@ ***/ /*** DOCUMENTATION - + The from parameter can be a configured endpoint or in the form of "display-name" <URI>. - + Specifying a prefix of pjsip: will send the message as a SIP MESSAGE request. diff --git a/res/res_xmpp.c b/res/res_xmpp.c index c2b7796285..32e1dd1ffc 100644 --- a/res/res_xmpp.c +++ b/res/res_xmpp.c @@ -278,11 +278,11 @@ ASTERISK_REGISTER_FILE() Sends a message to a Jabber Client. - + Specifying a prefix of xmpp: will send the message as an XMPP chat message. - + Specifying a prefix of xmpp: will specify the account defined in xmpp.conf to send the message from. Note that this field is required for XMPP messages.