[zaptel-commits] tzafrir: trunk r2249 - in /trunk: zaptel.c
zaptel.h zconfig.h
zaptel-commits at lists.digium.com
zaptel-commits at lists.digium.com
Wed Feb 28 01:31:15 MST 2007
Author: tzafrir
Date: Wed Feb 28 02:31:15 2007
New Revision: 2249
URL: http://svn.digium.com/view/zaptel?view=rev&rev=2249
Log:
If the span sets its sync_tick method, call it on every tick of the sync
master.
Modified:
trunk/zaptel.c
trunk/zaptel.h
trunk/zconfig.h
Modified: trunk/zaptel.c
URL: http://svn.digium.com/view/zaptel/trunk/zaptel.c?view=diff&rev=2249&r1=2248&r2=2249
==============================================================================
--- trunk/zaptel.c (original)
+++ trunk/zaptel.c Wed Feb 28 02:31:15 2007
@@ -6631,6 +6631,10 @@
int x,y,z;
unsigned long flags;
+#ifdef ZAPTEL_SYNC_TICK
+ if(span->sync_tick)
+ span->sync_tick(span, span == master);
+#endif
#if 1
for (x=0;x<span->channels;x++) {
spin_lock_irqsave(&span->chans[x].lock, flags);
Modified: trunk/zaptel.h
URL: http://svn.digium.com/view/zaptel/trunk/zaptel.h?view=diff&rev=2249&r1=2248&r2=2249
==============================================================================
--- trunk/zaptel.h (original)
+++ trunk/zaptel.h Wed Feb 28 02:31:15 2007
@@ -1376,6 +1376,11 @@
/* Opt: Enable maintenance modes */
int (*maint)(struct zt_span *span, int mode);
+#ifdef ZAPTEL_SYNC_TICK
+ /* Opt: send sync to spans */
+ int (*sync_tick)(struct zt_span *span, int is_master);
+#endif
+
/* ==== Channel Callback Operations ==== */
/* Opt: Set signalling type (if appropriate) */
int (*chanconfig)(struct zt_chan *chan, int sigtype);
Modified: trunk/zconfig.h
URL: http://svn.digium.com/view/zaptel/trunk/zconfig.h?view=diff&rev=2249&r1=2248&r2=2249
==============================================================================
--- trunk/zconfig.h (original)
+++ trunk/zconfig.h Wed Feb 28 02:31:15 2007
@@ -176,5 +176,6 @@
* Most applications will want this commented out.
*/
/* #define FXSFLASH */
+#define ZAPTEL_SYNC_TICK
#endif
More information about the zaptel-commits
mailing list