[asterisk-commits] rmudgett: branch 1.6.0 r160857 - in /branches/1.6.0: ./ funcs/func_callerid.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 3 19:38:09 CST 2008
Author: rmudgett
Date: Wed Dec 3 19:38:08 2008
New Revision: 160857
URL: http://svn.digium.com/view/asterisk?view=rev&rev=160857
Log:
Merged revisions 160856 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r160856 | rmudgett | 2008-12-03 19:36:39 -0600 (Wed, 03 Dec 2008) | 1 line
Jcolp pointed out that num will also match number
........
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/funcs/func_callerid.c
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/funcs/func_callerid.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/funcs/func_callerid.c?view=diff&rev=160857&r1=160856&r2=160857
==============================================================================
--- branches/1.6.0/funcs/func_callerid.c (original)
+++ branches/1.6.0/funcs/func_callerid.c Wed Dec 3 19:38:08 2008
@@ -66,8 +66,8 @@
snprintf(buf, len, "\"%s\" <%s>", name, num);
} else if (!strncasecmp("name", data, 4)) {
ast_copy_string(buf, name, len);
- } else if (!strncasecmp("num", data, 3)
- || !strncasecmp("number", data, 6)) {
+ } else if (!strncasecmp("num", data, 3)) {
+ /* also matches "number" */
ast_copy_string(buf, num, len);
} else {
ast_log(LOG_ERROR, "Unknown callerid data type '%s'.\n", data);
@@ -83,8 +83,8 @@
if (chan->cid.cid_name) {
ast_copy_string(buf, chan->cid.cid_name, len);
}
- } else if (!strncasecmp("num", data, 3)
- || !strncasecmp("number", data, 6)) {
+ } else if (!strncasecmp("num", data, 3)) {
+ /* also matches "number" */
if (chan->cid.cid_num) {
ast_copy_string(buf, chan->cid.cid_num, len);
}
@@ -136,8 +136,8 @@
if (chan->cdr) {
ast_cdr_setcid(chan->cdr, chan);
}
- } else if (!strncasecmp("num", data, 3)
- || !strncasecmp("number", data, 6)) {
+ } else if (!strncasecmp("num", data, 3)) {
+ /* also matches "number" */
ast_set_callerid(chan, value, NULL, NULL);
if (chan->cdr) {
ast_cdr_setcid(chan->cdr, chan);
More information about the asterisk-commits
mailing list