From e0f02b46f1b18d2cdd5f218db49f9dcb1fe6d3a6 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Wed, 7 Sep 2005 19:13:00 +0000 Subject: convert a bunch of apps to use ast_goto_if_exists() (issue #5138) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6533 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_talkdetect.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/app_talkdetect.c') diff --git a/apps/app_talkdetect.c b/apps/app_talkdetect.c index e60f3a8e9..7a76250e5 100755 --- a/apps/app_talkdetect.c +++ b/apps/app_talkdetect.c @@ -155,10 +155,7 @@ static int background_detect_exec(struct ast_channel *chan, void *data) sprintf(ms_str, "%d", ms ); pbx_builtin_setvar_helper(chan, "TALK_DETECTED", ms_str); - if (ast_exists_extension(chan, chan->context, "talk", 1, chan->cid.cid_num)) { - ast_copy_string(chan->exten, "talk", sizeof(chan->exten)); - chan->priority = 0; - } + ast_goto_if_exists(chan, chan->context, "talk", 1); res = 0; ast_frfree(fr); break; -- cgit v1.2.3