From ec2c64c81bd855047c65f91c8377d1a54b9609fc Mon Sep 17 00:00:00 2001 From: Steve Murphy Date: Tue, 23 Jan 2007 18:58:27 +0000 Subject: [PATCH] via 8748 (callerid.c loses name when returning PRIVATE_NUMBER flag), the user suggested this mod, saying it would allow 'WITHHELD' to appear in the name field, which would be useful git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51683 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/callerid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/callerid.c b/main/callerid.c index f7745bd49a..9f42ccf1fd 100644 --- a/main/callerid.c +++ b/main/callerid.c @@ -161,7 +161,7 @@ struct callerid_state *callerid_new(int cid_signalling) void callerid_get(struct callerid_state *cid, char **name, char **number, int *flags) { *flags = cid->flags; - if (cid->flags & (CID_UNKNOWN_NAME | CID_PRIVATE_NUMBER)) + if (cid->flags & (CID_UNKNOWN_NAME | CID_PRIVATE_NAME)) *name = NULL; else *name = cid->name;