[Asterisk-cvs] asterisk/apps app_lookupcidname.c,1.4,1.5

markster at lists.digium.com markster at lists.digium.com
Fri Oct 8 11:43:20 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv25126/apps

Modified Files:
	app_lookupcidname.c 
Log Message:
Fix lookup cidname (bug #2609)


Index: app_lookupcidname.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_lookupcidname.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- app_lookupcidname.c	2 Oct 2004 00:58:31 -0000	1.4
+++ app_lookupcidname.c	8 Oct 2004 15:44:28 -0000	1.5
@@ -47,12 +47,11 @@
 lookupcidname_exec (struct ast_channel *chan, void *data)
 {
   char dbname[64];
-  char shrunknum[64] = "";
   struct localuser *u;
 
   LOCAL_USER_ADD (u);
   if (chan->cid.cid_num) {
-	if (!ast_db_get ("cidname", shrunknum, dbname, sizeof (dbname))) {
+	if (!ast_db_get ("cidname", chan->cid.cid_num, dbname, sizeof (dbname))) {
 		ast_set_callerid (chan, NULL, dbname, NULL);
 		  if (option_verbose > 2)
 		    ast_verbose (VERBOSE_PREFIX_3 "Changed Caller*ID name to %s\n",




More information about the svn-commits mailing list