From b179d1a71b65901b7337d5d26adfae07afd06dbb Mon Sep 17 00:00:00 2001 From: Matthew Jordan Date: Sun, 21 Jul 2013 22:02:41 +0000 Subject: [PATCH] Clean up documentation This patch cleans up documentation in func_channel for the following items: * rtpsource * secure_signaling * secure_media (closes issue ASTERISK-20969) Reported by: snuffy patches: func_chan-update.diff uploaded by snuffy (License 5024) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@394980 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- funcs/func_channel.c | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/funcs/func_channel.c b/funcs/func_channel.c index a5fff75c5c..7bca6bf7f9 100644 --- a/funcs/func_channel.c +++ b/funcs/func_channel.c @@ -20,7 +20,7 @@ * * \author Kevin P. Fleming * \author Ben Winslow - * + * * \ingroup functions */ @@ -221,16 +221,35 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") audio Get audio destination video Get video destination text Get text destination + Defaults to audio if unspecified. + + + R/O Get source RTP destination information. + This option takes one additional argument: + Argument 1: + audio Get audio destination + video Get video destination + text Get text destination + Defaults to audio if unspecified. chan_iax2 provides the following additional options: + + R/O Get the peer's osptoken. + R/O Get the peer's ip address. R/O Get the peer's username. + + R/O Get the if the IAX channel is secured. + + + R/O Get the if the IAX channel is secured. + chan_dahdi provides the following additional options: @@ -467,7 +486,7 @@ static int func_channel_write_real(struct ast_channel *chan, const char *functio #ifdef CHANNEL_TRACE else if (!strcasecmp(data, "trace")) { ast_channel_lock(chan); - if (ast_true(value)) + if (ast_true(value)) ret = ast_channel_trace_enable(chan); else if (ast_false(value)) ret = ast_channel_trace_disable(chan); @@ -482,7 +501,7 @@ static int func_channel_write_real(struct ast_channel *chan, const char *functio struct ast_tone_zone *new_zone; if (!(new_zone = ast_get_indication_zone(value))) { ast_log(LOG_ERROR, "Unknown country code '%s' for tonezone. Check indications.conf for available country codes.\n", value); - ret = -1; + ret = -1; } else { ast_channel_lock(chan); if (chan->zone) { -- 2.47.3