From 6868babd229a635c5fd89c7b284025a92e0a3f9d Mon Sep 17 00:00:00 2001 From: markster Date: Sat, 2 Oct 2004 00:58:31 +0000 Subject: Huge callerid rework (might break H.323, others) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3874 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_talkdetect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/app_talkdetect.c') diff --git a/apps/app_talkdetect.c b/apps/app_talkdetect.c index 0816949af..5d15d94d8 100755 --- a/apps/app_talkdetect.c +++ b/apps/app_talkdetect.c @@ -124,7 +124,7 @@ static int background_detect_exec(struct ast_channel *chan, void *data) char t[2]; t[0] = fr->subclass; t[1] = '\0'; - if (ast_canmatch_extension(chan, chan->context, t, 1, chan->callerid)) { + if (ast_canmatch_extension(chan, chan->context, t, 1, chan->cid.cid_num)) { /* They entered a valid extension, or might be anyhow */ res = fr->subclass; ast_frfree(fr); @@ -146,7 +146,7 @@ static int background_detect_exec(struct ast_channel *chan, void *data) ms = 0; if ((ms > min) && ((max < 0) || (ms < max))) { ast_log(LOG_DEBUG, "Found qualified token of %d ms\n", ms); - if (ast_exists_extension(chan, chan->context, "talk", 1, chan->callerid)) { + if (ast_exists_extension(chan, chan->context, "talk", 1, chan->cid.cid_num)) { strncpy(chan->exten, "talk", sizeof(chan->exten) -1 ); chan->priority = 0; } -- cgit v1.2.3