aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-08 15:44:28 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-08 15:44:28 +0000
commit679f51131db153d20f064051278394d2a24e0a53 (patch)
tree2c99638b8558103eebb6ccd36f35c299c499a55a /apps
parenta6c84e4ac9a25c1c163a4f39ef7c9d9e0beb3be8 (diff)
Fix lookup cidname (bug #2609)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3950 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_lookupcidname.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/app_lookupcidname.c b/apps/app_lookupcidname.c
index aac3191fe..52d9670d6 100755
--- a/apps/app_lookupcidname.c
+++ b/apps/app_lookupcidname.c
@@ -47,12 +47,11 @@ static int
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",