[Home]

Summary:ASTERISK-02566: [patch] app_lookupcidname borken (CVS rev 1.4 of app_lookupcidname.c)
Reporter:robf (robf)Labels:
Date Opened:2004-10-08 11:02:09Date Closed:2008-01-15 15:09:42.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:
LookupCIDName is a NOOP because 'shrunknum' string, used in call to ast_db_get, is left uninitialized.

****** ADDITIONAL INFORMATION ******


Simple patch to apply to CVS rev 1.4:

diff -r1.4 app_lookupcidname.c
50d49
<   char shrunknum[64] = "";
55c54
<       if (!ast_db_get ("cidname", shrunknum, dbname, sizeof (dbname))) {
---
>       if (!ast_db_get ("cidname", chan->cid.cid_num, dbname, sizeof (dbname))) {
Comments:By: Mark Spencer (markster) 2004-10-08 11:43:44

Fixed in CVS, thanks!

By: Digium Subversion (svnbot) 2008-01-15 15:09:42.000-0600

Repository: asterisk
Revision: 3950

U   trunk/apps/app_lookupcidname.c

------------------------------------------------------------------------
r3950 | markster | 2008-01-15 15:09:41 -0600 (Tue, 15 Jan 2008) | 2 lines

Fix lookup cidname (bug ASTERISK-2566)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=3950