[svn-commits] crichter: branch 1.2 r59062 -
/branches/1.2/channels/chan_misdn.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Tue Mar 20 02:18:06 MST 2007
Author: crichter
Date: Tue Mar 20 04:18:06 2007
New Revision: 59062
URL: http://svn.digium.com/view/asterisk?view=rev&rev=59062
Log:
avoid sending a disconnect when we already received one.
Modified:
branches/1.2/channels/chan_misdn.c
Modified: branches/1.2/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_misdn.c?view=diff&rev=59062&r1=59061&r2=59062
==============================================================================
--- branches/1.2/channels/chan_misdn.c (original)
+++ branches/1.2/channels/chan_misdn.c Tue Mar 20 04:18:06 2007
@@ -3877,6 +3877,8 @@
cb_log(1,bc->port," --> found holded ch\n");
misdn_transfer_bc(ch, holded_ch) ;
}
+
+ bc->need_disconnect=0;
stop_bc_tones(ch);
hangup_chan(ch);
@@ -3892,6 +3894,9 @@
case EVENT_RELEASE:
{
+ bc->need_disconnect=0;
+ bc->need_release=0;
+
hangup_chan(ch);
release_chan(bc);
@@ -3901,6 +3906,10 @@
break;
case EVENT_RELEASE_COMPLETE:
{
+ bc->need_disconnect=0;
+ bc->need_release=0;
+ bc->need_release_complete=0;
+
stop_bc_tones(ch);
hangup_chan(ch);
release_chan(bc);
More information about the svn-commits
mailing list