Merged revisions 192429 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Tue, 5 May 2009 17:46:51 +0000 (17:46 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 5 May 2009 17:46:51 +0000 (17:46 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r192429 | file | 2009-05-05 14:43:30 -0300 (Tue, 05 May 2009) | 5 lines

  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/trunk@192430 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_followme.c

index 4575456..d27aa36 100644 (file)
@@ -887,7 +887,7 @@ static void findmeexec(struct fm_args *tpargs)
                if (winner)
                        break;
 
-               if (!caller) {
+               if (!caller || ast_check_hangup(caller)) {
                        tpargs->status = 1;
                        ast_free(findme_user_list);
                        return;