[asterisk-commits] file: branch 1.4 r192429 - /branches/1.4/apps/app_followme.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 5 12:43:34 CDT 2009


Author: file
Date: Tue May  5 12:43:30 2009
New Revision: 192429

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=192429
Log:
Fix a bug where the followme application would continue trying numbers afther the caller hung up.

(closes issue #13624)
Reported by: sgenyuk

Modified:
    branches/1.4/apps/app_followme.c

Modified: branches/1.4/apps/app_followme.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/apps/app_followme.c?view=diff&rev=192429&r1=192428&r2=192429
==============================================================================
--- branches/1.4/apps/app_followme.c (original)
+++ branches/1.4/apps/app_followme.c Tue May  5 12:43:30 2009
@@ -874,22 +874,22 @@
 		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;	




More information about the asterisk-commits mailing list