[asterisk-commits] moy: trunk r213454 - /trunk/channels/chan_dahdi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Aug 20 23:09:30 CDT 2009
Author: moy
Date: Thu Aug 20 23:09:26 2009
New Revision: 213454
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=213454
Log:
increment the mfcr2 monitor count when clearing the call request
Modified:
trunk/channels/chan_dahdi.c
Modified: trunk/channels/chan_dahdi.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=213454&r1=213453&r2=213454
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Thu Aug 20 23:09:26 2009
@@ -5271,7 +5271,12 @@
dahdi_r2_update_monitor_count(p->mfcr2, 1);
} else if (p->mfcr2call) {
ast_log(LOG_DEBUG, "Clearing call request on channel %d\n", p->channel);
+ /* since ast_request() was called but not ast_call() we have not yet dialed
+ and the openr2 stack will not call on_call_end callback, we need to unset
+ the mfcr2call flag and bump the monitor count so the monitor thread can take
+ care of this channel events from now on */
p->mfcr2call = 0;
+ dahdi_r2_update_monitor_count(p->mfcr2, 1);
}
#endif
switch (p->sig) {
More information about the asterisk-commits
mailing list