[asterisk-addons-commits] may: branch 1.6.0 r1110 - /branches/1.6.0/channels/chan_ooh323.c

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Sun Apr 25 13:29:33 CDT 2010


Author: may
Date: Sun Apr 25 13:29:29 2010
New Revision: 1110

URL: http://svnview.digium.com/svn/asterisk-addons?view=rev&rev=1110
Log:
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.

(issue #17186)
Reported by: vmikhelson
Patches:
      zero_callerid_num.patch uploaded by may213 (license 454)
Tested by: may213


Modified:
    branches/1.6.0/channels/chan_ooh323.c

Modified: branches/1.6.0/channels/chan_ooh323.c
URL: http://svnview.digium.com/svn/asterisk-addons/branches/1.6.0/channels/chan_ooh323.c?view=diff&rev=1110&r1=1109&r2=1110
==============================================================================
--- branches/1.6.0/channels/chan_ooh323.c (original)
+++ branches/1.6.0/channels/chan_ooh323.c Sun Apr 25 13:29:29 2010
@@ -1417,7 +1417,7 @@
          }
          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);




More information about the asterisk-addons-commits mailing list