From: Malcolm Davenport Date: Tue, 16 Mar 2004 17:07:51 +0000 (+0000) Subject: Bug # 1116. CallerID number not hidden when RestrictCID is on, Fixed X-Git-Tag: 1.0.0-rc1~927 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0d28cedf7ea33ef23e0050afb2a04e1a113e0e9;p=thirdparty%2Fasterisk.git Bug # 1116. CallerID number not hidden when RestrictCID is on, Fixed git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2447 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7af447007c..17bc8715e7 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2916,8 +2916,10 @@ static void initreqprep(struct sip_request *req, struct sip_pvt *p, char *cmd, c l = callerid; } /* if user want's his callerid restricted */ - if (p->restrictcid) + if (p->restrictcid) { l = CALLERID_UNKNOWN; + n = l; + } if (!n || !strlen(n)) n = l; /* Allow user to be overridden */