mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 03:08:45 +00:00
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
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