From: Alexandr Anikin Date: Sun, 25 Apr 2010 18:34:29 +0000 (+0000) Subject: Don't pass zero length callerid to ooh323 stack X-Git-Tag: 11.0.0-beta1~3126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91da9be7656c4ef2bcd78f3d8a57d353833b5e0f;p=thirdparty%2Fasterisk.git Don't pass zero length callerid to ooh323 stack Don't pass zero callerid string to ooh323 stack because it can't encode this properly and can't generate setup message. (closes issue #17186) Reported by: vmikhelson Patches: zero_callerid_num.patch uploaded by may213 (license 454) Tested by: may213 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@258838 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index 30c4ab02fa..7d4a46f1c1 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -1907,7 +1907,7 @@ int onNewCallCreated(ooCallData *call) ast_verbose("Setting dialed digits %s\n", p->caller_dialedDigits); } ooCallAddAliasDialedDigits(call, p->caller_dialedDigits); - } else if (p->callerid_num) { + } else if (!ast_strlen_zero(p->callerid_num)) { if (ooIsDailedDigit(p->callerid_num)) { if (gH323Debug) { ast_verbose("setting callid number %s\n", p->callerid_num);