diff options
author | Alexandr Anikin <may@telecom-service.ru> | 2010-04-25 18:51:37 +0000 |
---|---|---|
committer | Alexandr Anikin <may@telecom-service.ru> | 2010-04-25 18:51:37 +0000 |
commit | 5df647306749f30be8a6f0020807985c2c9476ba (patch) | |
tree | 1e3f25fd90e086372bb5d1aa03bfd40fbd3cd5f6 /addons/chan_ooh323.c | |
parent | 91da9be7656c4ef2bcd78f3d8a57d353833b5e0f (diff) |
additional checking related to issue 17186
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@258855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'addons/chan_ooh323.c')
-rw-r--r-- | addons/chan_ooh323.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index 7d4a46f1c..fdb2dfc93 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -1882,10 +1882,10 @@ int onNewCallCreated(ooCallData *call) } 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 @@ int onNewCallCreated(ooCallData *call) 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); } } |