Hi

 

I'm not to sure if this would be of benefit to anyone else, but is there
any chance of adding a "short hook flash" package option (100ms) to
Zaptel 1.2.x for us Australian Astlinux zaptel users, I've been
successfully using the patch below for sometime 

 

 

I've added and successfully tested the following on tags/0.4.8

 

1. add new patch file shortflash.patch to package/zaptel/

 

--- zaptel-1.2.19.orig/zaptel.h     2007-04-25 04:33:29.000000000 +1000

+++ zaptel-1.2.19/zaptel.h          2007-11-21 17:32:46.000000000 +1100

@@ -930,7 +930,7 @@

 

 

 #define    ZT_DEFAULT_WINKTIME     150   /* 150 ms default wink time */

-#define    ZT_DEFAULT_FLASHTIME    750   /* 750 ms default flash time
*/

+#define    ZT_DEFAULT_FLASHTIME    100   /* 750 ms default flash time,
100 ms for short flash */

 

 #define    ZT_DEFAULT_PREWINKTIME  50    /* 50 ms before wink */

 #define    ZT_DEFAULT_PREFLASHTIME 50    /* 50 ms before flash */

@@ -940,14 +940,14 @@

 #define    ZT_DEFAULT_RXWINKTIME 250     /* 250ms longest rx wink */

 #endif

 #define    ZT_DEFAULT_RXWINKTIME 300     /* 300ms longest rx wink (to
work with the Atlas) */

-#define    ZT_DEFAULT_RXFLASHTIME 1250   /* 1250ms longest rx flash */

+#define    ZT_DEFAULT_RXFLASHTIME 120    /* 1250ms longest rx flash,
120ms for short flash */

 #define    ZT_DEFAULT_DEBOUNCETIME 600   /* 600ms of FXS GS signalling
debounce */

 #define    ZT_DEFAULT_PULSEMAKETIME 50   /* 50 ms of line closed when
dial pulsing */

 #define    ZT_DEFAULT_PULSEBREAKTIME 50  /* 50 ms of line open when
dial pulsing */

 #define    ZT_DEFAULT_PULSEAFTERTIME 750 /* 750ms between dial pulse
digits */

 

 #define    ZT_MINPULSETIME (15 * 8)      /* 15 ms minimum */

-#define    ZT_MAXPULSETIME (200 * 8)     /* 200 ms maximum */

+#define    ZT_MAXPULSETIME (20 * 8)      /* 200 ms maximum, 20ms for
short flash */

 #define    ZT_PULSETIMEOUT ((ZT_MAXPULSETIME / 8) + 50)

 

 #define ZT_RINGTRAILER (50 * 8)    /* Don't consider a ring "over"
until it's been gone at least this

 

 

 

2. Change package/zaptel/Config.in

 

config BR2_PACKAGE_ZAPTEL

      bool "zaptel"

      default n

      depends on BR2_PACKAGE_LINUX

      depends on BR2_PACKAGE_NEWT

      help

            Zaptel - Linux drivers and utilities for Zapata and Digium
cards

            for use with Asterisk:

 

            http://www.asterisk.org <http://www.asterisk.org/> 

 

config BR2_PACKAGE_SHORTFLASH

      bool "short flash"

      default n

      depends on BR2_PACKAGE_ZAPTEL

      help

            Change hook flash timer from 1250ms to 100ms, used for
Australia

 

 

3. Add changes to package/zaptel/zaptel.mk

 

ifeq ($(strip $(BR2_ZAPTEL_SHORTFLASH)),y)

      toolchain/patch-kernel.sh $(ZAPTEL_DIR)
package/zaptel/shortflash.patch 

endif

 

3.1 Example

 

$(ZAPTEL_DIR)/.source: $(DL_DIR)/$(ZAPTEL_SOURCE)

      zcat $(DL_DIR)/$(ZAPTEL_SOURCE) | tar -C $(BUILD_DIR)
$(TAR_OPTIONS) -

      ln -sf $(ZAPTEL_DIR) $(BUILD_DIR)/zaptel 

ifeq ($(strip $(BR2_TARGET_RT)),y)

      toolchain/patch-kernel.sh $(ZAPTEL_DIR) package/zaptel/ rt\*.patch


endif 

ifeq ($(strip $(BR2_ZAPTEL_SHORTFLASH)),y)

      toolchain/patch-kernel.sh $(ZAPTEL_DIR)
package/zaptel/shortflash.patch 

endif

      toolchain/patch-kernel.sh $(ZAPTEL_DIR) package/zaptel/
zaptel\*.patch

      touch $(ZAPTEL_DIR)/.source

 

 

 

Guy

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to