[asterisk-commits] russell: branch 1.4 r91693 - /branches/1.4/apps/app_dial.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 6 20:51:22 CST 2007


Author: russell
Date: Thu Dec  6 20:51:22 2007
New Revision: 91693

URL: http://svn.digium.com/view/asterisk?view=rev&rev=91693
Log:
Don't unlock the dialed_interfaces list until we're done messing with the iterator.

Modified:
    branches/1.4/apps/app_dial.c

Modified: branches/1.4/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_dial.c?view=diff&rev=91693&r1=91692&r2=91693
==============================================================================
--- branches/1.4/apps/app_dial.c (original)
+++ branches/1.4/apps/app_dial.c Thu Dec  6 20:51:22 2007
@@ -1160,8 +1160,8 @@
 			strcpy(di->interface, interface);
 			AST_LIST_INSERT_TAIL(dialed_interfaces, di, list);
 		} else if (dialed) {
+			ast_log(LOG_WARNING, "Skipping dialing interface '%s' again since it has already been dialed\n", di->interface);
 			AST_LIST_UNLOCK(dialed_interfaces);
-			ast_log(LOG_WARNING, "Skipping dialing interface '%s' again since it has already been dialed\n", di->interface);
 			fulldial++;
 			free(tmp);
 			continue;




More information about the asterisk-commits mailing list