From baf54d0843e1a130dd442bd10416af0fb605c945 Mon Sep 17 00:00:00 2001 From: rmudgett Date: Fri, 24 Apr 2009 17:59:01 +0000 Subject: There is no need to use the struct ast_party_connected_line.source update values. The messages sent by a technology when a connected line update is received are best determined by the current call state of the channel. The struct ast_party_connected_line.source value is really only useful as a possible tracing aid. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@190517 f38db490-d61c-443f-a65b-d21fe96a405b --- funcs/func_connectedline.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'funcs/func_connectedline.c') diff --git a/funcs/func_connectedline.c b/funcs/func_connectedline.c index 68e8af4fa..7e1d9b457 100644 --- a/funcs/func_connectedline.c +++ b/funcs/func_connectedline.c @@ -19,7 +19,7 @@ /*! \file * * \brief Connected Line dialplan function - * + * * \ingroup functions */ @@ -41,6 +41,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/options.h" #include "asterisk/callerid.h" +/* + * Do not document the CONNECTEDLINE(source) datatype. + * It has turned out to not be needed. The source value is really . + * only useful as a possible tracing aid. + */ /*** DOCUMENTATION @@ -55,7 +60,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") - @@ -64,13 +68,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") - Gets or sets Connected Line data on the channel. Possible values - for the source datatype are: - - Normal Call Answering - Call Transfer(Alerting) - Call Transfer(Active) - + Gets or sets Connected Line data on the channel. ***/ @@ -133,7 +131,7 @@ static int connectedline_write(struct ast_channel *chan, const char *cmd, char * case 'i': set_it = ast_channel_set_connected_line; break; - + default: ast_log(LOG_ERROR, "Unknown connectedline option '%s'.\n", option); return 0; @@ -161,7 +159,7 @@ static int connectedline_write(struct ast_channel *chan, const char *cmd, char * connected.id.name = ast_strdupa(value); ast_trim_blanks(connected.id.name); set_it(chan, &connected); - } else if (!strncasecmp("num", data, 3)) { + } else if (!strncasecmp("num", data, 3)) { connected.id.number = ast_strdupa(value); ast_trim_blanks(connected.id.number); set_it(chan, &connected); -- cgit v1.2.3