From: David Yat Sin Date: Mon, 2 Apr 2012 22:00:27 +0000 (-0400) Subject: freetdm - ISDN added check to treat calling number 0000000000 as empty calling number X-Git-Tag: v1.2-rc1~19^2^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38143e3035d0c1214921b12b08ad4254173fe47d;p=thirdparty%2Ffreeswitch.git freetdm - ISDN added check to treat calling number 0000000000 as empty calling number --- diff --git a/libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support.c b/libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support.c index db1a8d3a0d..254b3abbfb 100644 --- a/libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support.c +++ b/libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support.c @@ -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;