Merged revisions 51683 via svnmerge from
authorSteve Murphy <murf@digium.com>
Tue, 23 Jan 2007 19:11:53 +0000 (19:11 +0000)
committerSteve Murphy <murf@digium.com>
Tue, 23 Jan 2007 19:11:53 +0000 (19:11 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r51683 | murf | 2007-01-23 11:58:27 -0700 (Tue, 23 Jan 2007) | 1 line

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/trunk@51684 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/callerid.c

index e6a36d9..f93c352 100644 (file)
@@ -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;