[libpri-commits] mattf: branch mattf/libpri-1.4-q921-rewrite r1329 - /team/mattf/libpri-1.4-q9...

SVN commits to the libpri project libpri-commits at lists.digium.com
Tue Nov 17 15:23:01 CST 2009


Author: mattf
Date: Tue Nov 17 15:22:57 2009
New Revision: 1329

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=1329
Log:
Make sure D-channel is set to be up when in NT-PTMP mode, regardless of state

Modified:
    team/mattf/libpri-1.4-q921-rewrite/q921.c

Modified: team/mattf/libpri-1.4-q921-rewrite/q921.c
URL: http://svnview.digium.com/svn/libpri/team/mattf/libpri-1.4-q921-rewrite/q921.c?view=diff&rev=1329&r1=1328&r2=1329
==============================================================================
--- team/mattf/libpri-1.4-q921-rewrite/q921.c (original)
+++ team/mattf/libpri-1.4-q921-rewrite/q921.c Tue Nov 17 15:22:57 2009
@@ -2300,6 +2300,14 @@
 	q921_send_sabme(pri);
 }
 
+static void nt_ptmp_dchannel_up(void *vpri)
+{
+	struct pri *pri = vpri;
+
+	pri->schedev = 1;
+	pri->ev.gen.e = PRI_EVENT_DCHAN_UP;
+}
+
 void q921_start(struct pri *pri)
 {
 	if (PTMP_MODE(pri)) {
@@ -2308,6 +2316,7 @@
 			q921_tei_request(pri);
 		} else {
 			q921_setstate(pri, Q921_TEI_UNASSIGNED);
+			pri_schedule_event(pri, 0, nt_ptmp_dchannel_up, pri);
 		}
 	} else {
 		/* PTP mode, no need for TEI management junk */




More information about the libpri-commits mailing list