[svn-commits] mattf: trunk r47784 - /trunk/channels/chan_zap.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Nov 16 18:05:28 MST 2006


Author: mattf
Date: Thu Nov 16 19:05:28 2006
New Revision: 47784

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47784
Log:
Make sure we choose the last channel as the dchannel if it's not E1 (for BRI).  (#8077) Thanks Tzafrir.

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=47784&r1=47783&r2=47784
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Thu Nov 16 19:05:28 2006
@@ -7320,8 +7320,9 @@
 		} else {
 			if (si->totalchans == 31) { /* if it's an E1 */
 				pris[*span].dchannels[0] = 16 + offset;
-			} else {
-				pris[*span].dchannels[0] = 24 + offset;
+			} else { /* T1 or BRI: D Channel is the last Channel */
+				pris[*span].dchannels[0] = 
+					si->totalchans + offset;
 			}
 			pris[*span].dchanavail[0] |= DCHAN_PROVISIONED;
 			pris[*span].offset = offset;



More information about the svn-commits mailing list