[asterisk-commits] murf: branch murf/11583-disconB4bridge r178952 - /team/murf/11583-disconB4bri...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 26 13:47:44 CST 2009


Author: murf
Date: Thu Feb 26 13:47:13 2009
New Revision: 178952

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=178952
Log:
checking in some fixes

Modified:
    team/murf/11583-disconB4bridge/apps/app_dial.c

Modified: team/murf/11583-disconB4bridge/apps/app_dial.c
URL: http://svn.digium.com/svn-view/asterisk/team/murf/11583-disconB4bridge/apps/app_dial.c?view=diff&rev=178952&r1=178951&r2=178952
==============================================================================
--- team/murf/11583-disconB4bridge/apps/app_dial.c (original)
+++ team/murf/11583-disconB4bridge/apps/app_dial.c Thu Feb 26 13:47:13 2009
@@ -829,7 +829,9 @@
 		int numlines = prestart;
 		struct ast_channel *winner;
 		struct ast_channel *watchers[AST_MAX_WATCHERS];
-
+		char featurecode[FEATURE_MAX_LEN + 1];
+
+		featurecode[0] = 0;
 		watchers[pos++] = in;
 		for (o = outgoing; o; o = o->next) {
 			/* Keep track of important channels */
@@ -1055,7 +1057,7 @@
 				}
 
 				if (ast_test_flag64(peerflags, OPT_CALLER_HANGUP) &&
-						detect_disconnect(in, f->subclass)) {
+					detect_disconnect(in, f->subclass, featurecode)) {
 					ast_verb(3, "User requested call disconnect.\n");
 					*to = 0;
 					strcpy(pa->status, "CANCEL");
@@ -1100,9 +1102,7 @@
 	return peer;
 }
 
-static char featurecode[FEATURE_MAX_LEN + 1] = "";
-
-static int detect_disconnect(struct ast_channel *chan, char code)
+static int detect_disconnect(struct ast_channel *chan, char code, char featurecode[FEATURE_MAX_LEN + 1])
 {
 	struct feature_interpret_result result;
 	int x;




More information about the asterisk-commits mailing list