[Asterisk-cvs] asterisk/res res_features.c,1.43,1.44
mattf at lists.digium.com
mattf at lists.digium.com
Thu Mar 17 15:57:35 CST 2005
Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv1180/res
Modified Files:
res_features.c
Log Message:
Fixed Parking bug where SIP calls would loose MOH after an attended transfer to
the park extension.
Index: res_features.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_features.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- res_features.c 4 Mar 2005 06:47:24 -0000 1.43
+++ res_features.c 17 Mar 2005 21:52:57 -0000 1.44
@@ -113,6 +113,7 @@
int parkingtime;
int notquiteyet;
char peername[1024];
+ unsigned char moh_trys;
struct parkeduser *next;
};
@@ -1212,6 +1213,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