dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 38234 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r38234 | file | 2006-07-26 11:26:06 -0400 (Wed, 26 Jul 2006) | 2 lines

Put default callerid into contact when the one specified is either NULL or has a zero string length. (issue #7590 reported by key2)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38235 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
file 2006-07-26 15:27:45 +00:00
parent 2c80253492
commit 98aa2809e2
1 changed files with 1 additions and 1 deletions

View File

@ -6286,7 +6286,7 @@ static void initreqprep(struct sip_request *req, struct sip_pvt *p, int sipmetho
l = CALLERID_UNKNOWN;
n = l;
}
if (!l)
if (ast_strlen_zero(l))
l = default_callerid;
if (ast_strlen_zero(n))
n = l;