mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merged revisions 51683 via svnmerge from
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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user