mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Fix a bug where the followme application would continue trying numbers after the caller hung up.
(closes issue #13624) Reported by: sgenyuk git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@192429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -874,22 +874,22 @@ static void findmeexec(struct fm_args *tpargs)
|
||||
status = 0;
|
||||
if (!AST_LIST_EMPTY(findme_user_list))
|
||||
winner = wait_for_winner(findme_user_list, nm, caller, tpargs->namerecloc, &status, tpargs);
|
||||
|
||||
|
||||
|
||||
AST_LIST_TRAVERSE_SAFE_BEGIN(findme_user_list, fmuser, entry) {
|
||||
if (!fmuser->cleared && fmuser->ochan != winner)
|
||||
clear_caller(fmuser);
|
||||
AST_LIST_REMOVE_CURRENT(findme_user_list, entry);
|
||||
free(fmuser);
|
||||
}
|
||||
AST_LIST_TRAVERSE_SAFE_END
|
||||
AST_LIST_TRAVERSE_SAFE_END;
|
||||
|
||||
fmuser = NULL;
|
||||
tmpuser = NULL;
|
||||
headuser = NULL;
|
||||
if (winner)
|
||||
break;
|
||||
|
||||
if (!caller) {
|
||||
if (!caller || ast_check_hangup(caller)) {
|
||||
tpargs->status = 1;
|
||||
free(findme_user_list);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user