[asterisk-commits] mattf: branch mattf/bug13495 r191087 - /team/mattf/bug13495/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 29 11:08:00 CDT 2009


Author: mattf
Date: Wed Apr 29 11:07:49 2009
New Revision: 191087

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=191087
Log:
Add little_cot_fix patch from #13495

Modified:
    team/mattf/bug13495/channels/chan_dahdi.c

Modified: team/mattf/bug13495/channels/chan_dahdi.c
URL: http://svn.digium.com/svn-view/asterisk/team/mattf/bug13495/channels/chan_dahdi.c?view=diff&rev=191087&r1=191086&r2=191087
==============================================================================
--- team/mattf/bug13495/channels/chan_dahdi.c (original)
+++ team/mattf/bug13495/channels/chan_dahdi.c Wed Apr 29 11:07:49 2009
@@ -10933,8 +10933,10 @@
 					ast_verbose("COT request on previous CIC %d in IAM PC %d\n", (e->iam.cic - 1), e->iam.opc);
 					p = linkset->pvts[chanpos];
 					ast_mutex_lock(&p->lock);
-					p->inservice = 0; /* to prevent to use this circuit */
-					dahdi_loopback(p, 1);
+					if (!p->ss7call) {
+						p->inservice = 0; /* to prevent to use this circuit */
+						dahdi_loopback(p, 1);
+					} /* If already have a call don't loop */
 					ast_mutex_unlock(&p->lock);
 				}
 				break;
@@ -10948,7 +10950,7 @@
 						p->inservice = 1;
 						dahdi_loopback(p, 0);
 						ast_mutex_unlock(&p->lock);
-						ast_verbose("Loop turned of on CIC: %d PC: %d",  (e->cot.cic - 1), e->cot.opc);
+						ast_verbose("Loop turned off on CIC: %d PC: %d\n",  (e->cot.cic - 1), e->cot.opc);
 					}
 				}
 
@@ -10965,7 +10967,7 @@
 
 				if (p->loopedback) {
 					dahdi_loopback(p, 0);
-					ast_verbose("Loop turned of on CIC: %d PC: %d",  e->cot.cic, e->cot.opc);
+					ast_verbose("Loop turned off on CIC: %d PC: %d\n",  e->cot.cic, e->cot.opc);
 				}
 
 				/* Don't start call if we didn't get IAM or COT failed! */




More information about the asterisk-commits mailing list