[asterisk-commits] file: branch 1.2 r38585 - /branches/1.2/res/res_features.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Jul 31 10:09:11 MST 2006


Author: file
Date: Mon Jul 31 12:09:10 2006
New Revision: 38585

URL: http://svn.digium.com/view/asterisk?rev=38585&view=rev
Log:
Add missing code to bring transferee channel out of MOH/autoservice under certain circumstance (issue #7611 reported by guillecabeza with minor mods by myself)

Modified:
    branches/1.2/res/res_features.c

Modified: branches/1.2/res/res_features.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/res/res_features.c?rev=38585&r1=38584&r2=38585&view=diff
==============================================================================
--- branches/1.2/res/res_features.c (original)
+++ branches/1.2/res/res_features.c Mon Jul 31 12:09:10 2006
@@ -842,6 +842,9 @@
 		}
 	}  else {
 		ast_log(LOG_WARNING, "Did not read data.\n");
+		ast_moh_stop(transferee);
+		ast_autoservice_stop(transferee);
+		ast_indicate(transferee, AST_CONTROL_UNHOLD);
 		res = ast_streamfile(transferer, "beeperr", transferer->language);
 		if (ast_waitstream(transferer, "") < 0) {
 			return -1;



More information about the asterisk-commits mailing list