Bug # 1116. CallerID number not hidden when RestrictCID is on, Fixed
authorMalcolm Davenport <malcolmd@digium.com>
Tue, 16 Mar 2004 17:07:51 +0000 (17:07 +0000)
committerMalcolm Davenport <malcolmd@digium.com>
Tue, 16 Mar 2004 17:07:51 +0000 (17:07 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2447 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 7af4470..17bc871 100755 (executable)
@@ -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 */