[asterisk-commits] jpeeler: branch jpeeler/asterisk-sigwork-trunk r203235 - /team/jpeeler/asteri...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 25 14:03:58 CDT 2009


Author: jpeeler
Date: Thu Jun 25 14:03:55 2009
New Revision: 203235

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=203235
Log:
stuff and things

Modified:
    team/jpeeler/asterisk-sigwork-trunk/channels/chan_dahdi.c

Modified: team/jpeeler/asterisk-sigwork-trunk/channels/chan_dahdi.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/jpeeler/asterisk-sigwork-trunk/channels/chan_dahdi.c?view=diff&rev=203235&r1=203234&r2=203235
==============================================================================
--- team/jpeeler/asterisk-sigwork-trunk/channels/chan_dahdi.c (original)
+++ team/jpeeler/asterisk-sigwork-trunk/channels/chan_dahdi.c Thu Jun 25 14:03:55 2009
@@ -10416,8 +10416,7 @@
 						destroy_dahdi_pvt(&tmp);
 						return NULL;
 					}
-					if ((chan_sig == SIG_PRI) || (chan_sig == SIG_BRI) || (chan_sig == SIG_BRI_PTMP))
-						myswitchtype = conf->pri.pri.switchtype;
+					myswitchtype = conf->pri.pri.switchtype;
 					/* Make sure this isn't a d-channel */
 					matchesdchan=0;
 					for (x = 0; x < NUM_SPANS; x++) {
@@ -10471,7 +10470,7 @@
 							return NULL;
 						}
 
-						ast_log(LOG_ERROR, "Adding callbacks %p to chan %d\n", &dahdi_pri_callbacks, tmp->channel);
+						ast_debug(4, "Adding callbacks %p to chan %d\n", &dahdi_pri_callbacks, tmp->channel);
 						pchan = sig_pri_chan_new(tmp, &dahdi_pri_callbacks, &pris[span].pri, tmp->logicalspan, p.chanpos);
 						if (!pchan) {
 							destroy_dahdi_pvt(&tmp);
@@ -13256,6 +13255,18 @@
 
 	if (!((a->argc == 3) || (a->argc == 5)))
 		return CLI_SHOWUSAGE;
+
+	if (a->argc == 5) {
+		if (!strcasecmp(a->argv[3], "group")) {
+			targetnum = atoi(a->argv[4]);
+			if ((targetnum < 0) || (targetnum > 63))
+				return CLI_SHOWUSAGE;
+			targetnum = 1 << targetnum;
+			filtertype = 1;
+		} else if (!strcasecmp(a->argv[3], "context")) {
+			filtertype = 2;
+		}
+	}
 
 	ast_mutex_lock(lock);
 	ast_cli(a->fd, FORMAT2, "Chan", "Extension", "Context", "Language", "MOH Interpret", "Blocked", "State");




More information about the asterisk-commits mailing list