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

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Aug 15 11:51:06 MST 2006


Author: mattf
Date: Tue Aug 15 13:51:06 2006
New Revision: 39861

URL: http://svn.digium.com/view/asterisk?rev=39861&view=rev
Log:
Loopback mode works!!!! Now we should be able to pass continuity testing.

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=39861&r1=39860&r2=39861&view=diff
==============================================================================
--- team/mattf/asterisk-ss7/channels/chan_zap.c (original)
+++ team/mattf/asterisk-ss7/channels/chan_zap.c Tue Aug 15 13:51:06 2006
@@ -8039,6 +8039,14 @@
 	}
 }
 
+static void zt_loopback(struct zt_pvt *p, int enable)
+{
+	if (ioctl(p->subs[SUB_REAL].zfd, ZT_LOOPBACK, &enable)) {
+		ast_log(LOG_WARNING, "Unable to set loopback on channel %d\n", p->channel);
+		return;
+	}
+}
+
 static void ss7_start_call(struct zt_pvt *p, struct zt_ss7 *linkset)
 {
 	struct ss7 *ss7 = linkset->ss7;
@@ -8225,9 +8233,7 @@
 				if (ast_exists_extension(NULL, p->context, p->exten, 1, p->cid_num)) {
 
 					if (e->iam.cot_check_required) {
-#if 0
 						zt_loopback(p, 1);
-#endif
 					} else
 						ss7_start_call(p, linkset);
 				} else {
@@ -8245,9 +8251,7 @@
 				}
 				p = linkset->pvts[chanpos];
 
-#if 0
 				zt_loopback(p, 0);
-#endif
 				
 				isup_acm(ss7, p->ss7call);
 				ss7_start_call(p, linkset);



More information about the svn-commits mailing list