[Asterisk-cvs] asterisk/res res_features.c,1.16.2.3,1.16.2.4

mattf at lists.digium.com mattf at lists.digium.com
Thu Mar 17 17:53:20 CST 2005


Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv1821/res

Modified Files:
      Tag: v1-0
	res_features.c 
Log Message:
Fixed parking bug w/ chan_sip and loss of MOH


Index: res_features.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_features.c,v
retrieving revision 1.16.2.3
retrieving revision 1.16.2.4
diff -u -d -r1.16.2.3 -r1.16.2.4
--- res_features.c	28 Jan 2005 01:24:59 -0000	1.16.2.3
+++ res_features.c	17 Mar 2005 23:48:42 -0000	1.16.2.4
@@ -103,6 +103,7 @@
 	int priority;
 	int parkingtime;
 	int notquiteyet;
+	unsigned char moh_trys;
 	struct parkeduser *next;
 };
 
@@ -635,6 +636,11 @@
 						} else {
 							/* XXX Maybe we could do something with packets, like dial "0" for operator or something XXX */
 							ast_frfree(f);
+							if (pu->moh_trys < 3 && !pu->chan->generatordata) {
+								ast_log(LOG_DEBUG, "MOH on parked call stopped by outside source.  Restarting\n");
+								ast_moh_start(pu->chan, NULL);
+								pu->moh_trys++;
+							}
 							goto std;	/* XXX Ick: jumping into an else statement??? XXX */
 						}
 					}




More information about the svn-commits mailing list