]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
freetdm - ISDN added check to treat calling number 0000000000 as empty calling number
authorDavid Yat Sin <dyatsin@sangoma.com>
Mon, 2 Apr 2012 22:00:27 +0000 (18:00 -0400)
committerDavid Yat Sin <dyatsin@sangoma.com>
Mon, 2 Apr 2012 22:00:27 +0000 (18:00 -0400)
libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support.c

index db1a8d3a0d69bc0088c189dfdd6dcd3aa2fa840d..254b3abbfbbd1144c7002a0ba4addc85eb2b2f2d 100644 (file)
@@ -595,6 +595,11 @@ ftdm_status_t set_calling_num(ftdm_channel_t *ftdmchan, CgPtyNmb *cgPtyNmb)
        if (!len) {
                return FTDM_SUCCESS;
        }
+
+       if (!strncasecmp(caller_data->cid_num.digits, "0000000000", strlen("0000000000"))) {
+               return FTDM_SUCCESS;
+       }
+
        cgPtyNmb->eh.pres                       = PRSNT_NODEF;
 
        cgPtyNmb->screenInd.pres        = PRSNT_NODEF;