diff options
author | may <may@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-04-25 18:34:29 +0000 |
---|---|---|
committer | may <may@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-04-25 18:34:29 +0000 |
commit | 849740c4e7c70d8b8d2ee6b720376b7d593aff19 (patch) | |
tree | c4d1dab5c3a7f0224dcad2e83bc6d59e5a82b8f1 /addons/chan_ooh323.c | |
parent | 8046515ec48be2193353ff72249632b614c3e630 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@258838 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'addons/chan_ooh323.c')
-rw-r--r-- | addons/chan_ooh323.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index 30c4ab02f..7d4a46f1c 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); |