[svn-commits] may: trunk r258855 - /trunk/addons/chan_ooh323.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Sun Apr 25 13:51:41 CDT 2010
Author: may
Date: Sun Apr 25 13:51:37 2010
New Revision: 258855
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=258855
Log:
additional checking related to issue 17186
Modified:
trunk/addons/chan_ooh323.c
Modified: trunk/addons/chan_ooh323.c
URL: http://svnview.digium.com/svn/asterisk/trunk/addons/chan_ooh323.c?view=diff&rev=258855&r1=258854&r2=258855
==============================================================================
--- trunk/addons/chan_ooh323.c (original)
+++ trunk/addons/chan_ooh323.c Sun Apr 25 13:51:37 2010
@@ -1882,10 +1882,10 @@
}
ast_mutex_lock(&p->lock);
- if (p->callerid_name) {
+ if (!ast_strlen_zero(p->callerid_name)) {
ooCallSetCallerId(call, p->callerid_name);
}
- if (p->callerid_num) {
+ if (!ast_strlen_zero(p->callerid_num)) {
i = 0;
while (*(p->callerid_num + i) != '\0') {
if(!isdigit(*(p->callerid_num+i))) { break; }
@@ -1894,7 +1894,7 @@
if(*(p->callerid_num+i) == '\0')
ooCallSetCallingPartyNumber(call, p->callerid_num);
else {
- if(!p->callerid_name)
+ if(ast_strlen_zero(p->callerid_name))
ooCallSetCallerId(call, p->callerid_num);
}
}
More information about the svn-commits
mailing list