aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-16 17:07:51 +0000
committermalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-16 17:07:51 +0000
commit8f27365451a7ac541bc766e28458d1881cac02a6 (patch)
treee86b1e7214025aeb04376955ee01972d2c794e83 /channels
parent589064df00389f541322005352c19f90bc71a439 (diff)
Bug # 1116. CallerID number not hidden when RestrictCID is on, Fixed
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2447 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 7af447007..17bc8715e 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 */