diff options
Diffstat (limited to 'apps/app_talkdetect.c')
-rwxr-xr-x | apps/app_talkdetect.c | 5 |
1 files changed, 1 insertions, 4 deletions
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; |