[asterisk-commits] mattf: branch mattf/asterisk-ss7 r41474 - /team/mattf/asterisk-ss7/channels/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Aug 30 14:37:59 MST 2006


Author: mattf
Date: Wed Aug 30 16:37:59 2006
New Revision: 41474

URL: http://svn.digium.com/view/asterisk?rev=41474&view=rev
Log:
Add support for individual circuit reset.

Modified:
    team/mattf/asterisk-ss7/channels/chan_zap.c

Modified: team/mattf/asterisk-ss7/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/team/mattf/asterisk-ss7/channels/chan_zap.c?rev=41474&r1=41473&r2=41474&view=diff
==============================================================================
--- team/mattf/asterisk-ss7/channels/chan_zap.c (original)
+++ team/mattf/asterisk-ss7/channels/chan_zap.c Wed Aug 30 16:37:59 2006
@@ -8183,11 +8183,22 @@
 		while ((e = ss7_check_event(ss7))) {
 			switch (e->e) {
 			case SS7_EVENT_UP:
-				ast_log(LOG_DEBUG, "--- SS7 Up ---\n");
+				ast_verbose("--- SS7 Up ---\n");
 				ss7_reset_linkset(linkset);
 				break;
 			case MTP2_LINK_UP:
 				ast_log(LOG_DEBUG, "MTP2 link up\n");
+				break;
+			case ISUP_EVENT_RSC:
+				ast_verbose("Resetting CIC %d\n", e->rsc.cic);
+				chanpos = ss7_find_cic(linkset, e->rsc.cic);
+				if (chanpos < 0) {
+					ast_log(LOG_WARNING, "RSC on unconfigured CIC %d\n", e->iam.cic);
+					break;
+				}
+				p = linkset->pvts[chanpos];
+				p->blocked = 0;
+				isup_rlc(ss7, e->rsc.call);
 				break;
 			case ISUP_EVENT_GRS:
 				ast_log(LOG_DEBUG, "Got Reset for CICs %d to %d: Acknowledging\n", e->grs.startcic, e->grs.endcic);



More information about the asterisk-commits mailing list