Changeset 2750c33 in freewrt


Ignore:
Timestamp:
May 20, 2007, 3:15:22 PM (19 years ago)
Author:
Waldemar Brodkorb <wbx@…>
Children:
0cba375
Parents:
0eff8a9
Message:
  • update asterisk, zaptel and libpri to latest upstream version
  • add junghanns latest asterisk patches and drivers for qozap and zaphfc

runtime tests on routerboard 2.6, compiles on brcm-2.4.
more testing as soon as my ISDN line is up and running, after LT2007...

git-svn-id: svn://www.freewrt.org/trunk/freewrt@2562 afb5a338-a214-0410-bd46-81f09a774fd1

Files:
13 added
5 deleted
7 edited
2 moved

Legend:

Unmodified
Added
Removed
  • mk/modules.mk

    r0eff8a9 r2750c33  
    998998
    999999# Library modules
    1000 $(eval $(call KMOD_template,CCITT,crc-ccitt, \
     1000$(eval $(call KMOD_template,CRC_CCITT,crc-ccitt, \
    10011001        $(MODULES_DIR)/kernel/lib/crc-ccitt \
    10021002,20))
  • package/asterisk-12/Config.in

    r0eff8a9 r2750c33  
    8585        tristate
    8686        default n
    87         depends FWRT_PACKAGE_KMOD_ZTDUMMY_12
     87        select FWRT_PACKAGE_KMOD_ZTDUMMY_12
    8888        select FWRT_PACKAGE_ASTERISK_12_ZAPTEL
    8989        help
     
    9494        tristate
    9595        default n
    96         depends on FWRT_PACKAGE_ASTERISK_12
    97         depends on FWRT_LINUX_2_6_RB || FWRT_LINUX_2_6_X86
     96        depends FWRT_PACKAGE_ASTERISK_12
    9897        select FWRT_PACKAGE_ZAPTEL_12
     98        select FWRT_PACKAGE_KMOD_ZAPTEL_12
    9999        help
    100           This package allows creation of conference channels.
     100          This package allows using ISDN zaptel hardware.
    101101
    102102config FWRT_PACKAGE_ASTERISK_12_CHAN_MISDN
     
    104104        tristate
    105105        default n
    106         depends on FWRT_PACKAGE_ASTERISK_12
     106        depends on FWRT_LINUX_2_6
     107        depends FWRT_PACKAGE_ASTERISK_12
    107108        select FWRT_PACKAGE_MISDNUSER
    108         depends on FWRT_LINUX_2_6_RB
     109        select FWRT_KPACKAGE_KMOD_MISDN_DRV
     110        help
     111          This package allows using ISDN hardware supported by mISDN.
    109112endmenu
  • package/asterisk-12/Makefile

    r0eff8a9 r2750c33  
    88
    99PKG_NAME:=              asterisk
    10 PKG_VERSION:=           1.2.17
    11 PKG_RELEASE:=           3
    12 PKG_MD5SUM:=            1a41a1f4a535813b1272bae0545c7990
     10PKG_VERSION:=           1.2.18
     11PKG_RELEASE:=           1
     12PKG_MD5SUM:=            84d16eb0a94a3da883cb9bd6cb8a3fca
    1313PKG_SOURCE_URL:=        http://ftp.digium.com/pub/asterisk/old-releases \
    1414                        ftp://ftp.digium.com/pub/asterisk/old-releases
     
    2525$(eval $(call PKG_template,ASTERISK_12_CHAN_SKINNY,asterisk-12-chan-skinny,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    2626$(eval $(call PKG_template,ASTERISK_12_CHAN_IAX2,asterisk-12-chan-iax2,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
     27ifeq ($(FWRT_LINUX_2_6),y)
    2728$(eval $(call PKG_template,ASTERISK_12_CHAN_MISDN,asterisk-12-chan-misdn,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
     29endif
    2830$(eval $(call PKG_template,ASTERISK_12_CODEC_SPEEX,asterisk-12-codec-speex,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    2931$(eval $(call PKG_template,ASTERISK_12_PBX_DUNDI,asterisk-12-pbx-dundi,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
     
    3739SUB_INSTALLS-${FWRT_PACKAGE_ASTERISK_12_SOUNDS}+=               asterisk-sounds-install
    3840SUB_INSTALLS-${FWRT_PACKAGE_ASTERISK_12_CHAN_MGCP}+=            asterisk-chan-mgcp-install
     41ifeq ($(FWRT_LINUX_2_6),y)
    3942SUB_INSTALLS-${FWRT_PACKAGE_ASTERISK_12_CHAN_MISDN}+=           asterisk-chan-misdn-install
     43endif
    4044SUB_INSTALLS-${FWRT_PACKAGE_ASTERISK_12_CHAN_SKINNY}+=          asterisk-chan-skinny-install
    4145SUB_INSTALLS-${FWRT_PACKAGE_ASTERISK_12_CHAN_IAX2}+=            asterisk-chan-iax2-install
     
    7983                rm -f *ilbc* *agi* *sqlite* *iax* *lpc10* \
    8084                        *voicemail* *dundi* *adsi* *skinny* \
    81                         *mgcp* *misdn* *meetme* *speex* *zap*; \
     85                        *mgcp* *misdn* *meetme* *speex* *zap* *format_ogg_vorbis*; \
    8286        )
    8387        (cd ${IDIR_ASTERISK_12}/etc/asterisk ; \
  • package/libpri/patches/100-junghanns-0.3.0-PRE-1y-e.patch

    r0eff8a9 r2750c33  
    333333diff -urN libpri-1.2.4.orig/Makefile libpri-1.2.4/Makefile
    334334--- libpri-1.2.4.orig/Makefile  2006-04-30 17:17:47.000000000 +0200
    335 +++ libpri-1.2.4/Makefile       2006-07-27 17:45:09.000000000 +0200
    336 @@ -27,6 +27,13 @@
     335+++ libpri-1.2.4/Makefile       2007-04-02 14:37:02.876417878 +0200
     336@@ -27,6 +27,16 @@
    337337 # Uncomment if you want libpri to count number of Q921/Q931 sent/received
    338338 #LIBPRI_COUNTERS=-DLIBPRI_COUNTERS
     
    345345+#FASTBUSYONBUSY=-DFASTBUSYONBUSY
    346346+
     347+# workaround for slowly responding COs
     348+#RELAXEDTIMERS=-DRELAXED_TIMERS
     349+
    347350 CC=gcc
    348351 
    349352 OSARCH=$(shell uname -s)
    350 @@ -38,7 +45,7 @@
     353@@ -38,7 +48,7 @@
    351354 DYNAMIC_LIBRARY=libpri.so.1.0
    352355 STATIC_OBJS=copy_string.o pri.o q921.o prisched.o q931.o pri_facility.o
    353356 DYNAMIC_OBJS=copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_facility.lo
    354357-CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS)
    355 +CFLAGS=-Wall -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS) $(LAYER2ALWAYSUP) $(FASTBUSYONBUSY) -DRELAX_TRB
     358+CFLAGS=-Wall -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS) $(LAYER2ALWAYSUP) $(FASTBUSYONBUSY) -DRELAX_TRB -DRELAXED_TIMERS
    356359 INSTALL_PREFIX=$(DESTDIR)
    357360 INSTALL_BASE=/usr
     
    359362diff -urN libpri-1.2.4.orig/pri.c libpri-1.2.4/pri.c
    360363--- libpri-1.2.4.orig/pri.c     2005-11-29 19:39:18.000000000 +0100
    361 +++ libpri-1.2.4/pri.c  2006-07-11 12:39:20.000000000 +0200
     364+++ libpri-1.2.4/pri.c  2007-02-02 11:16:23.000000000 +0100
    362365@@ -1,24 +1,14 @@
    363366 /*
     
    519522 {
    520523        if (pri && call)
    521 @@ -499,6 +524,76 @@
     524@@ -499,6 +524,83 @@
    522525        return q931_connect(pri, call, channel, nonisdn);
    523526 }
     
    589592+int pri_deflect(struct pri *pri, q931_call *call, char *destination)
    590593+{
    591 +    add_call_deflection_facility_ie(pri, call, destination);
    592 +    return q931_facility(pri, call);
     594+    if ((pri->localtype == PRI_CPE) || (pri->localtype == BRI_CPE)) {
     595+       add_call_rerouting_facility_ie(pri, call, destination);
     596+       return q931_facility(pri, call);
     597+    } else if (pri->localtype == BRI_CPE_PTMP) {
     598+       add_call_deflection_facility_ie(pri, call, destination);
     599+       return q931_facility(pri, call);
     600+    } else {
     601+       return -1;
     602+    }
    593603+}
    594604+
     
    596606 /* deprecated routines, use pri_hangup */
    597607 int pri_release(struct pri *pri, q931_call *call, int cause)
    598 @@ -541,14 +636,35 @@
     608@@ -541,14 +643,35 @@
    599609        return 0;
    600610 }
     
    634644 
    635645 int pri_reset(struct pri *pri, int channel)
    636 @@ -688,15 +804,15 @@
     646@@ -688,15 +811,15 @@
    637647        return q931_setup(pri, c, &req);
    638648 }     
     
    654664        __pri_error = func;
    655665 }
    656 @@ -708,10 +824,14 @@
     666@@ -708,10 +831,14 @@
    657667        va_start(ap, fmt);
    658668        vsnprintf(tmp, sizeof(tmp), fmt, ap);
     
    673683 
    674684 void pri_error(struct pri *pri, char *fmt, ...)
    675 @@ -721,10 +841,14 @@
     685@@ -721,10 +848,14 @@
    676686        va_start(ap, fmt);
    677687        vsnprintf(tmp, sizeof(tmp), fmt, ap);
     
    692702 
    693703 /* Set overlap mode */
    694 @@ -765,11 +889,13 @@
     704@@ -765,11 +896,13 @@
    695705        }
    696706        len += sprintf(buf + len, "Q921 Outstanding: %d\n", q921outstanding);
     
    711721        len += sprintf(buf + len, "T200 Timer: %d\n", pri->timers[PRI_TIMER_T200]);
    712722        len += sprintf(buf + len, "T203 Timer: %d\n", pri->timers[PRI_TIMER_T203]);
    713 @@ -778,6 +904,7 @@
     723@@ -778,6 +911,7 @@
    714724        len += sprintf(buf + len, "T313 Timer: %d\n", pri->timers[PRI_TIMER_T313]);
    715725        len += sprintf(buf + len, "N200 Counter: %d\n", pri->timers[PRI_TIMER_N200]);
     
    719729 }
    720730 
    721 @@ -819,10 +946,11 @@
     731@@ -819,10 +953,11 @@
    722732        return 0;
    723733 }
     
    732742 }
    733743 
    734 @@ -851,3 +979,14 @@
     744@@ -851,3 +986,14 @@
    735745        sr->redirectingreason = reason;
    736746        return 0;
     
    764774diff -urN libpri-1.2.4.orig/pri_facility.c libpri-1.2.4/pri_facility.c
    765775--- libpri-1.2.4.orig/pri_facility.c    2006-02-14 00:06:02.000000000 +0100
    766 +++ libpri-1.2.4/pri_facility.c 2006-06-06 14:26:01.000000000 +0200
     776+++ libpri-1.2.4/pri_facility.c 2007-01-31 15:48:56.000000000 +0100
    767777@@ -1,26 +1,17 @@
    768778-/*
     
    10481058 {
    10491059        int i = 0, j, compsp = 0;
    1050 @@ -694,6 +702,64 @@
     1060@@ -694,6 +702,131 @@
    10511061        return 0;
    10521062 }
     
    11101120+}
    11111121+
     1122+/* Call rerouting */
     1123+int add_call_rerouting_facility_ie(struct pri *pri, q931_call *c, char *destination) {
     1124+    int i = 0, j, compsp = 0;
     1125+    struct rose_component *comp, *compstk[10];
     1126+    unsigned char buffer[256];
     1127+    unsigned char bcie[5] = { 0x04, 0x03, 0x90, 0x90, 0xA3 };
     1128+
     1129+    buffer[i++] = (ASN1_CONTEXT_SPECIFIC | Q932_PROTOCOL_ROSE);
     1130+    /* invoke */
     1131+    ASN1_ADD_SIMPLE(comp, COMP_TYPE_INVOKE, buffer, i);
     1132+    ASN1_PUSH(compstk, compsp, comp);
     1133+
     1134+    ASN1_ADD_BYTECOMP(comp, ASN1_INTEGER, buffer, i, get_invokeid(pri));
     1135+    ASN1_ADD_BYTECOMP(comp, ASN1_INTEGER, buffer, i, ROSE_CALLREROUTING);
     1136+
     1137+    /* Argument sequence */
     1138+    ASN1_ADD_SIMPLE(comp, (ASN1_CONSTRUCTOR | ASN1_SEQUENCE), buffer, i);
     1139+    ASN1_PUSH(compstk, compsp, comp);
     1140+
     1141+       /* DIVERSION REASON (CFU) */
     1142+       ASN1_ADD_BYTECOMP(comp, ASN1_ENUMERATED, buffer, i, 1);
     1143+
     1144+       /* arg.Address */
     1145+       ASN1_ADD_SIMPLE(comp, (ASN1_CONSTRUCTOR | ASN1_SEQUENCE), buffer, i);
     1146+        ASN1_PUSH(compstk, compsp, comp);
     1147+
     1148+           j = asn1_string_encode(0x80, &buffer[i], sizeof(buffer)-i, 20, destination, strlen(destination));
     1149+           if(j<0) return -1;
     1150+           i += j;
     1151+
     1152+       /* close Address */
     1153+       ASN1_FIXUP(compstk, compsp, buffer, i);
     1154+
     1155+       /* add rerouting counter tag */
     1156+       ASN1_ADD_BYTECOMP(comp, ASN1_INTEGER, buffer, i, 1);
     1157+
     1158+
     1159+           /* IE tag */
     1160+           j = asn1_string_encode(ASN1_APPLICATION, &buffer[i], sizeof(buffer)-i, 5, bcie, 5);
     1161+           if(j<0) return -1;
     1162+           i += j;
     1163+
     1164+       /* last rerouting number */
     1165+       ASN1_ADD_SIMPLE(comp, (ASN1_CONTEXT_SPECIFIC | ASN1_CONSTRUCTOR | ASN1_TAG_1), buffer, i);
     1166+       ASN1_PUSH(compstk, compsp, comp);
     1167+
     1168+       /* presented number unscreened */
     1169+       ASN1_ADD_SIMPLE(comp, (ASN1_CONTEXT_SPECIFIC | ASN1_CONSTRUCTOR | ASN1_TAG_0), buffer, i);
     1170+       ASN1_PUSH(compstk, compsp, comp);
     1171+
     1172+           j = asn1_string_encode(0x80, &buffer[i], sizeof(buffer)-i, 20, c->callednum, strlen(c->callednum));
     1173+           if(j<0) return -1;
     1174+           i += j;
     1175+
     1176+       /* close Address */
     1177+       ASN1_FIXUP(compstk, compsp, buffer, i);
     1178+
     1179+    /* Fix length of stacked components */
     1180+    while(compsp > 0) {
     1181+        ASN1_FIXUP(compstk, compsp, buffer, i);
     1182+    }
     1183+    if (pri_call_apdu_queue(c, Q931_FACILITY, buffer, i, NULL, NULL))
     1184+                     return -1;
     1185+   
     1186+        return 0;
     1187+}
     1188+
    11121189 /* Sending callername information functions */
    11131190 static int add_callername_facility_ies(struct pri *pri, q931_call *c, int cpe)
    11141191 {
    1115 @@ -936,7 +1002,7 @@
     1192@@ -936,7 +1069,7 @@
    11161193                CHECK_COMPONENT(comp, ASN1_ENUMERATED, "!! Invalid AOC Charging Request argument. Expected Enumerated (0x0A) but Received 0x%02X\n");
    11171194                ASN1_GET_INTEGER(comp, chargingcase);                           
     
    11221199                                        call->ds1no, call->channelno, call->cr, chargingcase);
    11231200                } else {
    1124 @@ -1054,7 +1120,7 @@
     1201@@ -1054,7 +1187,7 @@
    11251202        return 0;
    11261203 }
     
    11311208        /* sample data: [ 91 a1 12 02 02 3a 78 02 01 24 30 09 30 07 a1 05 30 03 02 01 01 ] */
    11321209        int i = 0, res = 0, compsp = 0;
    1133 @@ -1108,18 +1174,20 @@
     1210@@ -1108,18 +1241,20 @@
    11341211                dump_apdu (pri, buffer, i);
    11351212               
     
    11571234 
    11581235        return 0;
    1159 @@ -1152,13 +1220,15 @@
     1236@@ -1152,13 +1287,15 @@
    11601237                NEXT_COMPONENT(comp, i);
    11611238 
     
    11781255                if (pri->debug & PRI_DEBUG_APDU)
    11791256                        pri_message(pri, "  [ Handling operation %d ]\n", operation_tag);
    1180 @@ -1182,7 +1252,11 @@
     1257@@ -1182,7 +1319,11 @@
    11811258                case ROSE_DIVERTING_LEG_INFORMATION2:
    11821259                        if (pri->debug & PRI_DEBUG_APDU)
     
    11911268                        if (pri->debug & PRI_DEBUG_APDU) {
    11921269                                pri_message(pri, "ROSE %i: AOC No Charging Info Available - not handled!", operation_tag);
    1193 @@ -1210,6 +1284,7 @@
     1270@@ -1210,6 +1351,7 @@
    11941271                        }
    11951272                        return -1;
     
    11991276                                pri_message(pri, "ROSE %i: AOC-D Charging Unit - not handled!", operation_tag);
    12001277                                dump_apdu (pri, (u_int8_t *)comp, comp->len + 2);
    1201 @@ -1224,7 +1299,7 @@
     1278@@ -1224,7 +1366,7 @@
    12021279                case ROSE_AOC_AOCE_CHARGING_UNIT:
    12031280                        return aoc_aoce_charging_unit_decode(pri, call, (u_int8_t *)comp, comp->len + 2);
     
    12081285                        }
    12091286                case ROSE_AOC_IDENTIFICATION_OF_CHARGE:
    1210 @@ -1233,6 +1308,22 @@
     1287@@ -1233,6 +1375,22 @@
    12111288                                dump_apdu (pri, (u_int8_t *)comp, comp->len + 2);
    12121289                        }
     
    12331310diff -urN libpri-1.2.4.orig/pri_facility.h libpri-1.2.4/pri_facility.h
    12341311--- libpri-1.2.4.orig/pri_facility.h    2005-11-29 19:39:18.000000000 +0100
    1235 +++ libpri-1.2.4/pri_facility.h 2006-04-15 21:35:05.000000000 +0200
     1312+++ libpri-1.2.4/pri_facility.h 2007-02-01 13:21:36.000000000 +0100
    12361313@@ -34,7 +34,7 @@
    12371314 /* Operation ID values */
     
    12431320 /* Q.956 ROSE operations (Advice Of Charge) */
    12441321 #define ROSE_AOC_NO_CHARGING_INFO_AVAILABLE    26
    1245 @@ -48,11 +48,15 @@
     1322@@ -48,11 +48,16 @@
    12461323 #define ROSE_AOC_IDENTIFICATION_OF_CHARGE      37
    12471324 /* Q.SIG operations */
     
    12541331 
    12551332+#define ROSE_CALLDEFLECTION                    0x0D
     1333+#define ROSE_CALLREROUTING                     0x0E
    12561334+#define ROSE_EXPLICIT_CALL_TRANSFER            0x06
    12571335+#define ROSE_MALICIOUS_CID                     0x31
     
    12601338 #define INVOKE_IDENTIFIER                      0x02
    12611339 #define INVOKE_LINKED_IDENTIFIER       0x80
    1262 @@ -180,12 +184,6 @@
     1340@@ -180,12 +185,6 @@
    12631341                        (variable) = ((variable) << 8) | (component)->data[comp_idx]; \
    12641342        } while (0)
     
    12731351        do { \
    12741352                (component) = (struct rose_component *)&((ptr)[(idx)]); \
    1275 @@ -260,4 +258,8 @@
     1353@@ -260,4 +259,10 @@
    12761354 /* Adds the "standard" ADPUs to a call */
    12771355 extern int pri_call_add_standard_apdus(struct pri *pri, q931_call *call);
    12781356 
    12791357+extern int add_call_deflection_facility_ie(struct pri *pri, q931_call *c, char *destination);
     1358+
     1359+extern int add_call_rerouting_facility_ie(struct pri *pri, q931_call *c, char *destination);
    12801360+
    12811361+extern int aoc_aoce_charging_unit_encode(struct pri *pri, q931_call *c, long chargedunits, int send_facility_message);
     
    18451925diff -urN libpri-1.2.4.orig/pri_timers.h libpri-1.2.4/pri_timers.h
    18461926--- libpri-1.2.4.orig/pri_timers.h      2005-11-29 19:39:18.000000000 +0100
    1847 +++ libpri-1.2.4/pri_timers.h   2006-01-18 12:28:07.000000000 +0100
    1848 @@ -27,17 +27,17 @@
    1849  
     1927+++ libpri-1.2.4/pri_timers.h   2007-04-02 14:36:33.673501998 +0200
     1928@@ -25,19 +25,51 @@
     1929 #ifndef _PRI_TIMERS_H
     1930 #define _PRI_TIMERS_H
     1931 
     1932+#ifdef RELAXED_TIMERS
    18501933 /* -1 means we dont currently support the timer/counter */
    18511934 #define PRI_TIMERS_DEFAULT {   3,      /* N200 */ \
     
    18651948                                -1,     /* T302 */ \
    18661949-                               -1,     /* T303 */ \
     1950+                               6000,   /* T303 */ \
     1951+                               -1,     /* T304 */ \
     1952+                               30000,  /* T305 */ \
     1953+                               -1,     /* T306 */ \
     1954+                               -1,     /* T307 */ \
     1955+                               6000,   /* T308 */ \
     1956+                               -1,     /* T309 */ \
     1957+                               -1,     /* T310 */ \
     1958+                               4000,   /* T313 */ \
     1959+                               -1,     /* T314 */ \
     1960+                               -1,     /* T316 */ \
     1961+                               -1,     /* T317 */ \
     1962+                               -1,     /* T318 */ \
     1963+                               -1,     /* T319 */ \
     1964+                               -1,     /* T320 */ \
     1965+                               -1,     /* T321 */ \
     1966+                               -1      /* T322 */ \
     1967+                       }
     1968+#else
     1969+/* -1 means we dont currently support the timer/counter */
     1970+#define PRI_TIMERS_DEFAULT {   3,      /* N200 */ \
     1971+                               260,    /* N201 */ \
     1972+                               3,      /* N202 */ \
     1973+                               7,      /* K */ \
     1974+                               1000,   /* T200 */ \
     1975+                               2000,   /* T201 */ \
     1976+                               5000,   /* T202 */ \
     1977+                               10000,  /* T203 */ \
     1978+                               -1,     /* T300 */ \
     1979+                               -1,     /* T301 */ \
     1980+                               -1,     /* T302 */ \
    18671981+                               4000,   /* T303 */ \
    18681982                                -1,     /* T304 */ \
    18691983                                30000,  /* T305 */ \
    18701984                                -1,     /* T306 */ \
     1985@@ -55,6 +87,7 @@
     1986                                -1,     /* T321 */ \
     1987                                -1      /* T322 */ \
     1988                        }
     1989+#endif
     1990 
     1991 /* XXX Only our default timers are setup now XXX */
     1992 #define PRI_TIMERS_UNKNOWN PRI_TIMERS_DEFAULT
    18711993diff -urN libpri-1.2.4.orig/q921.c libpri-1.2.4/q921.c
    18721994--- libpri-1.2.4.orig/q921.c    2005-12-06 22:35:50.000000000 +0100
  • package/zaptel-12/Config.in

    r0eff8a9 r2750c33  
    22        prompt "zaptel-12......................... Zaptel library (Version 1.2)"
    33        tristate
     4        select FWRT_PACKAGE_LIBPRI
     5        depends FWRT_PACKAGE_ASTERISK_VERSION_12
    46        default n
    5         depends on FWRT_LINUX_2_6_RB || FWRT_LINUX_2_6_X86
    67        help
    78         
  • package/zaptel-12/Config.in.kernel

    r0eff8a9 r2750c33  
    22        prompt "kmod-zaptel-12.................... Zaptel generic support (Version 1.2)"
    33        tristate
     4        select FWRT_KPACKAGE_KMOD_CRC_CCITT
    45        default n
    5         depends on FWRT_LINUX_2_6_RB || FWRT_LINUX_2_6_X86 || FWRT_LINUX_2_6_BRCM
    66        help
    77         
     
    1212        tristate
    1313        default n
    14         depends on FWRT_PACKAGE_KMOD_ZAPTEL_12
     14        select FWRT_PACKAGE_KMOD_ZAPTEL_12
    1515        help
    1616         
     
    1818
    1919config FWRT_PACKAGE_KMOD_ZAPHFC_12
    20         prompt "kmod-zaphfc-12................... Zaptel HFC driver (Version 1.2)"
     20        prompt "kmod-zaphfc-12.................... Zaptel HFC driver (Version 1.2)"
    2121        tristate
    2222        default n
    23         select FWRT_PACKAGE_LIBPRI
    24         depends on FWRT_PACKAGE_KMOD_ZAPTEL_12
     23        select FWRT_PACKAGE_KMOD_ZAPTEL_12
    2524        help
     25          Kernel driver for Zaphfc one-port ISDN cards.
     26
     27          http://www.junghanns.net
     28
     29config FWRT_PACKAGE_KMOD_QOZAP_12
     30        prompt "kmod-qozap-12..................... Zaptel qozap driver (Version 1.2)"
     31        tristate
     32        default n
     33        select FWRT_PACKAGE_KMOD_ZAPTEL_12
     34        help
     35          Kernel driver for qozap duo-, quad- or octo-port ISDN cards.
    2636         
    27           http://www.asterisk.org
     37          http://www.junghanns.net
  • package/zaptel-12/Makefile

    r0eff8a9 r2750c33  
    99
    1010PKG_NAME:=              zaptel
    11 PKG_VERSION:=           1.2.10
    12 PKG_RELEASE:=           2
    13 PKG_MODULE:=            60
    14 PKG_MD5SUM:=            25f9a78272104efdbd44261e33edb725
     11PKG_VERSION:=           1.2.17.1
     12PKG_RELEASE:=           1
     13PKG_MD5SUM:=            328504be9851ae180232efe7c453e3d2
    1514PKG_SOURCE_URL:=        http://ftp.digium.com/pub/zaptel/releases
    1615
    1716include ${TOPDIR}/mk/package.mk
     17include ${TOPDIR}/mk/kpkg.mk
    1818
    1919$(eval $(call PKG_template,ZAPTEL_12,zaptel-12,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
     
    2121$(eval $(call PKG_template,KMOD_ZTDUMMY_12,kmod-ztdummy-12,${KERNEL_VERSION}-${BOARD}-${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    2222$(eval $(call PKG_template,KMOD_ZAPHFC_12,kmod-zaphfc-12,${KERNEL_VERSION}-${BOARD}-${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
     23$(eval $(call PKG_template,KMOD_QOZAP_12,kmod-qozap-12,${KERNEL_VERSION}-${BOARD}-${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    2324
    2425BUILD_STYLE:=           auto
    25 TCFLAGS+=               -DZAPTEL_CONFIG=\"${WRKINST}/etc/zaptel.conf\"
    2626ifeq ($(KERNEL),2.4)
    27 MAKE_FLAGS+=            LD="${TARGET_CROSS}ld" \
    28                         KFLAGS="${KFLAGS}" \
     27XAKE_FLAGS+=            LD="${TARGET_CROSS}ld" \
     28                        KFLAGS="${ZAPTEL_KFLAGS}" \
     29                        EXTRA_CFLAGS='${TARGET_CFLAGS} -DBUILDING_TONEZONE \
     30                                -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -I. \
     31                                -I${LINUX_DIR}/include' \
     32                        KVERS="2.4" \
     33                        BUILDVER="linux24" \
    2934                        V=1 \
    30                         MODULES="zaptel" \
    31                         KSRC=${LINUX_DIR} \
    32 ALL_TARGET:=            linux24
     35                        DYNFS=yes \
     36                        MODULES="zaptel ztdummy zaphfc qozap" \
     37                        KSRC=${LINUX_DIR}
    3338else
    34 MAKE_FLAGS+=            LD="${TARGET_CROSS}ld" \
    35                         KFLAGS="${KFLAGS}" \
     39XAKE_FLAGS+=            LD="${TARGET_CROSS}ld" \
     40                        KFLAGS="${ZAPTEL_KFLAGS}" \
     41                        EXTRA_CFLAGS='${TARGET_CFLAGS} -DBUILDING_TONEZONE \
     42                                -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -I. -I${LINUX_DIR}/include' \
    3643                        V=1 \
    37                         MODULES="zaptel ztdummy" \
    38                         KSRC=${LINUX_DIR} \
    39 ALL_TARGET:=            linux26
     44                        KVERS="2.6" \
     45                        DYNFS=yes \
     46                        BUILDVER="linux26" \
     47                        MODULES="zaptel ztdummy zaphfc qozap" \
     48                        KSRC=${LINUX_DIR}
    4049endif
    4150INSTALL_STYLE:=         auto
    42 XAKE_FLAGS+=            CC="${TARGET_CC}" \
    43                         KSRC="${LINUX_DIR}" \
    4451FAKE_FLAGS+=            INSTALL_PREFIX="${WRKINST}"
    45 
    46 KFLAGS:=                -I${LINUX_DIR}/include -Os -DMODULE -D__KERNEL__ \
    47                         -DEXPORT_SYMTAB -I${LINUX_DIR}/drivers/net \
    48                         -Wall -I. -Wstrict-prototypes -fomit-frame-pointer \
    49                         -I${LINUX_DIR}/drivers/net/wan -I${LINUX_DIR}/include/net \
    50                         -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=/etc/zaptel.conf
     52ZAPTEL_KFLAGS:=         ${TCFLAGS} ${KERNEL_C_INCS} ${KERNEL_M_OPTS} \
     53                        -DEXPORT_SYMTAB \
     54                        -DSTANDALONE_ZAPATA \
     55                        -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"
    5156
    5257pre-build:
    53         $(SED) 's/@@ARCH@@/${KERNEL_ARCH}/g' ${WRKBUILD}/Makefile
     58        $(SED) 's/##ARCH##/${KERNEL_ARCH}/g' ${WRKBUILD}/Makefile
    5459
    5560post-install:
     
    5964        ${INSTALL_BIN} ${WRKINST}/sbin/ztcfg ${IDIR_ZAPTEL_12}/usr/sbin/
    6065        ${INSTALL_DATA} ${WRKINST}/etc/zaptel.conf ${IDIR_ZAPTEL_12}/etc/
     66        ${INSTALL_DIR} ${IDIR_KMOD_ZAPTEL_12}/etc/modules.d
    6167        ${INSTALL_DIR} ${IDIR_KMOD_ZAPTEL_12}/lib/modules/${KERNEL_VERSION}
    6268        ${INSTALL_DATA} ${WRKBUILD}/zaptel.${KERNEL_MOD_SUFFIX} \
    6369                ${IDIR_KMOD_ZAPTEL_12}/lib/modules/${KERNEL_VERSION}/
     70        ${INSTALL_DATA} ./files/zaptel.modules ${IDIR_KMOD_ZAPTEL_12}/etc/modules.d/50-zaptel
     71        ${INSTALL_DIR} ${IDIR_KMOD_ZTDUMMY_12}/etc/modules.d
    6472        ${INSTALL_DIR} ${IDIR_KMOD_ZTDUMMY_12}/lib/modules/${KERNEL_VERSION}
    6573        ${INSTALL_DATA} ${WRKBUILD}/ztdummy.${KERNEL_MOD_SUFFIX} \
    6674                ${IDIR_KMOD_ZTDUMMY_12}/lib/modules/${KERNEL_VERSION}/
     75        ${INSTALL_DATA} ./files/ztdummy.modules ${IDIR_KMOD_ZTDUMMY_12}/etc/modules.d/60-ztdummy
    6776        ${INSTALL_DIR} ${IDIR_KMOD_ZAPHFC_12}/lib/modules/${KERNEL_VERSION}
     77        ${INSTALL_DIR} ${IDIR_KMOD_ZAPHFC_12}/etc/modules.d
    6878        ${INSTALL_DATA} ${WRKBUILD}/zaphfc.${KERNEL_MOD_SUFFIX} \
    69                 ${IDIR_KMOD_ZAPHFC_12}/lib/modules/${KERNEL_VERSION}/
     79                ${IDIR_KMOD_ZAPHFC_12}/lib/modules/${KERNEL_VERSION}/
     80        ${INSTALL_DATA} ./files/zaphfc.modules ${IDIR_KMOD_ZAPHFC_12}/etc/modules.d/70-zaphfc
     81        ${INSTALL_DIR} ${IDIR_KMOD_QOZAP_12}/lib/modules/${KERNEL_VERSION}
     82        ${INSTALL_DIR} ${IDIR_KMOD_QOZAP_12}/etc/modules.d
     83        ${INSTALL_DATA} ${WRKBUILD}/qozap.${KERNEL_MOD_SUFFIX} \
     84                ${IDIR_KMOD_QOZAP_12}/lib/modules/${KERNEL_VERSION}/
     85        ${INSTALL_DATA} ./files/qozap.modules ${IDIR_KMOD_QOZAP_12}/etc/modules.d/70-qozap
    7086
    7187include ${TOPDIR}/mk/pkg-bottom.mk
  • package/zaptel-12/ipkg/kmod-zaphfc-12.control

    r0eff8a9 r2750c33  
    33Section: sys
    44Depends: libpri, zaptel-12, kmod-zaptel-12
    5 Description: Zaptel HFC ISDN card driver
     5Description: Junghanns ZapHFC ISDN card driver
  • package/zaptel-12/patches/100-junghanns-bristuff-0.3.0-PRE-1y-e.patch

    r0eff8a9 r2750c33  
    1 
    2         this is the original zaptel patch by Junghanns
    3 
    4 diff -urN zaptel-1.2.10.orig/Makefile zaptel-1.2.10/Makefile
    5 --- zaptel-1.2.10.orig/Makefile 2006-10-11 19:22:10.000000000 +0200
    6 +++ zaptel-1.2.10/Makefile      2006-10-19 11:16:47.000000000 +0200
    7 @@ -133,7 +133,7 @@
    8  ifneq (,$(wildcard /usr/include/newt.h))
    9  ZTTOOL:=zttool
    10  endif
    11 -BINS=ztcfg torisatool makefw ztmonitor ztspeed $(ZTTOOL) zttest fxotune
    12 +BINS=ztcfg torisatool makefw ztmonitor ztspeed $(ZTTOOL) zttest fxotune ztpty
    13  
    14  all: $(BUILDVER) $(LIBTONEZONE_SO)
    15  
    16 @@ -215,6 +215,9 @@
    17  
    18  ztmonitor.o: ztmonitor.c zaptel.h
    19  
    20 +ztpty.o: ztpty.c
    21 +       $(CC) -o $@ -c $^
    22 +
    23  ztspeed.o: ztspeed.c
    24         $(CC) -o $@ -c $^
    25  
    26 @@ -227,6 +230,9 @@
    27  ztspeed: ztspeed.o
    28         $(CC) -o $@ $^
    29  
    30 +ztpty: ztpty.o
    31 +       $(CC) -o $@ $^
    32 +
    33  sethdlc-new: sethdlc-new.o
    34         $(CC) -o $@ $^
    35  
    36 diff -urN zaptel-1.2.10.orig/zaptel.c zaptel-1.2.10/zaptel.c
    37 --- zaptel-1.2.10.orig/zaptel.c 2006-09-16 09:45:04.000000000 +0200
    38 +++ zaptel-1.2.10/zaptel.c      2006-12-20 17:59:51.000000000 +0100
    39 @@ -139,6 +139,7 @@
     1diff -urN zaptel-1.2.16.orig/Modules.symvers zaptel-1.2.16/Modules.symvers
     2--- zaptel-1.2.16.orig/Modules.symvers  1970-01-01 01:00:00.000000000 +0100
     3+++ zaptel-1.2.16/Modules.symvers       2007-03-26 11:10:17.125425094 +0200
     4@@ -0,0 +1,79 @@
     5+0x9173fe1f     xframe_next_packet      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     6+0xf630b026     zt_qevent_lock  /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     7+0xc7bda6b6     fill_beep       /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     8+0xdab49cab     BRI_REGISTER_REQUEST_send       /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpd_bri
     9+0x8948c67f     xbus_activate   /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     10+0xf3d9c58b     xbus_disconnect /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     11+0x63d51be2     zt_dynamic_unregister   /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/ztdynamic
     12+0x8c425c95     xbus_remove     /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     13+0x32f63cb8     xproto_register /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     14+0x267de6d9     zt_receive      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     15+0xfa7cf279     xframe_receive  /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     16+0xac580846     __zt_lin2mu     /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     17+0x9cbfb9c3     xbus_poller_notify      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     18+0x4b71f6b7     update_xpd_status       /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     19+0xa372e367     zt_transcoder_alloc     /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zttranscode
     20+0xc5fb06b9     xproto_name     /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     21+0x3496985d     xpp_open        /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     22+0xd8e9f0a2     run_initialize_registers        /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     23+0x3e41bbd5     xpd_alloc       /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     24+0x2c50781a     __zt_lin2a      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     25+0xe9291125     xframe_send     /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     26+0x57f2b84c     BRI_RELAY_OUT_send      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpd_bri
     27+0x0b35e1d2     xpp_close       /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     28+0xb92d402c     GLOBAL_DESC_REQ_send    /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     29+0x7d3fe713     zt_alarm_notify_no_master_change        /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     30+0xde7da379     FXO_XPD_STATE_send      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpd_fxo
     31+0x9485299e     FXS_XPD_STATE_send      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpd_fxs
     32+0x5f48c41a     zt_set_dynamic_ioctl    /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     33+0x5cc7dbab     zt_qevent_nolock        /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     34+0x781e624e     card_detected   /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     35+0xe7b77ad3     GLOBAL_SYNC_SOURCE_send /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     36+0x847336f9     FXO_RING_send   /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpd_fxo
     37+0x4abb83ae     FXS_RING_send   /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpd_fxs
     38+0xdde1b229     zt_register     /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     39+0x3840fab2     zt_rbsbits      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     40+0xd79ba3d4     xbus_log        /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     41+0xb24a0379     zt_transmit     /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     42+0x66997372     xpd_disconnect  /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     43+0x3835d9ea     dump_reg_cmd    /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     44+0x6a54a8a7     BRI_SET_LED_send        /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpd_bri
     45+0x928540a9     dump_xframe     /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     46+0x70306de6     xproto_global_entry     /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     47+0x2d98a187     zt_transcoder_register  /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zttranscode
     48+0x158a450f     FXO_REGISTER_REQUEST_send       /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpd_fxo
     49+0x3795239a     FXS_REGISTER_REQUEST_send       /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpd_fxs
     50+0xdb998ed1     xpd_of  /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     51+0x9368653c     zt_dynamic_register     /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/ztdynamic
     52+0xe09f0def     valid_xpd_addr  /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     53+0x17d37725     xpp_ioctl       /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     54+0x18995856     xproto_card_entry       /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     55+0xb6b1af1f     dump_packet     /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     56+0xac6a5595     update_zap_ring /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     57+0x73eadab5     zt_ec_chunk     /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     58+0x61944157     __zt_mulaw      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     59+0xb54363ab     zt_dynamic_receive      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/ztdynamic
     60+0x6eec2be2     zt_transcode_fops       /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     61+0xe1e65698     zt_alarm_notify /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     62+0x856e5754     FXO_RELAY_OUT_send      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpd_fxo
     63+0x70af5bb6     FXS_RELAY_OUT_send      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpd_fxs
     64+0xee925711     zt_unregister   /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     65+0x0e6c01ec     xbus_reset_counters     /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     66+0x7e8714df     zt_hooksig      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     67+0x069805c7     zt_transcoder_unregister        /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zttranscode
     68+0x52b25132     BRI_XPD_STATE_send      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpd_bri
     69+0x84abd26e     zt_lboname      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     70+0x150c20a4     zt_dtmf_tone    /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     71+0x5ef1bd80     print_dbg       /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     72+0xeddb6a71     xpp_maint       /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     73+0xb8e746a5     update_line_status      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     74+0x283969d8     xpd_set_addr    /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     75+0x1abf24bd     zt_transcoder_free      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zttranscode
     76+0xec3c34d3     xpd_addr2num    /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     77+0x1519d3df     BRI_RING_send   /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpd_bri
     78+0xc54a0de1     zt_ec_span      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     79+0x1b29fdb2     zt_init_tone_state      /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     80+0xe4a5c870     zt_transcoder_alert     /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zttranscode
     81+0x519806d8     __zt_alaw       /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/zaptel
     82+0x8e38572d     xproto_unregister       /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     83+0xe61982bb     xbus_new        /usr/src/build-mobile/STABLE/build-1.2.17/zaptel-1.2.16/xpp/xpp
     84diff -urN zaptel-1.2.16.orig/zaptel-base.c zaptel-1.2.16/zaptel-base.c
     85--- zaptel-1.2.16.orig/zaptel-base.c    2007-02-21 05:25:21.000000000 +0100
     86+++ zaptel-1.2.16/zaptel-base.c 2007-03-26 10:59:54.002598219 +0200
     87@@ -138,6 +138,7 @@
    4088 EXPORT_SYMBOL(zt_qevent_lock);
    4189 EXPORT_SYMBOL(zt_hooksig);
     
    4593 EXPORT_SYMBOL(zt_ec_chunk);
    4694 EXPORT_SYMBOL(zt_ec_span);
    47 @@ -556,6 +557,10 @@
     95@@ -582,6 +583,10 @@
    4896                len += sprintf(page + len, "\tIRQ misses: %d\n", spans[span]->irqmisses);
    4997        len += sprintf(page + len, "\n");
     
    56104         for (x=1;x<ZT_MAX_CHANNELS;x++) {     
    57105                if (chans[x]) {
    58 @@ -2700,6 +2705,30 @@
     106@@ -2762,6 +2767,30 @@
    59107        }
    60108 }
     
    87135        if ((j >= ZT_MAX_SPANS) || (j < 1)) \
    88136                return -EINVAL; \
    89 @@ -4928,11 +4957,40 @@
     137@@ -5009,11 +5038,40 @@
    90138                                        *(txb++) = fasthdlc_tx_run_nocheck(&ms->txhdlc);
    91139                                }
     
    111159+                               memcpy(txb, buf + ms->writeidx[ms->outwritebuf], left);
    112160+                               ms->writeidx[ms->outwritebuf] += left + 2;
    113 +                               txb += left;
     161+                               txb += left + 2;
    114162+                               ms->bytes2transmit = left;
    115163+                               ms->eoftx = 1;
     
    128176                        /* Check buffer status */
    129177                        if (ms->writeidx[ms->outwritebuf] >= ms->writen[ms->outwritebuf]) {
    130 @@ -4977,6 +5035,17 @@
     178@@ -5058,6 +5116,17 @@
    131179                                /* Transmit a flag if this is an HDLC channel */
    132180                                if (ms->flags & ZT_FLAG_HDLC)
     
    146194                                if (ms->flags & ZT_FLAG_NETDEV)
    147195                                        netif_wake_queue(ztchan_to_dev(ms));
    148 @@ -4987,7 +5056,7 @@
     196@@ -5068,7 +5137,7 @@
    149197                                        tasklet_schedule(&ms->ppp_calls);
    150198                                }
     
    155203                        left = ms->curtone->tonesamples - ms->tonep;
    156204                        if (left > bytes)
    157 @@ -5033,6 +5102,10 @@
     205@@ -5114,6 +5183,12 @@
    158206                                memset(txb, 0xFF, bytes);
    159207                        }
     
    161209+#if defined(CONFIG_ZAPATA_BRI_DCHANS) 
    162210+               } else if(ms->flags & ZT_FLAG_BRIDCHAN) {
     211+                   ms->bytes2transmit = 0;
     212+                   ms->eoftx = 0;
    163213+                   bytes = 0;
    164214+#endif
     
    166216                        memset(txb, ZT_LIN2X(0, ms), bytes);    /* Lastly we use silence on telephony channels */
    167217                        bytes = 0;
    168 @@ -5758,6 +5831,13 @@
     218@@ -5850,6 +5925,13 @@
    169219        int left, x;
    170220 
     
    180230        while(bytes) {
    181231 #if defined(CONFIG_ZAPATA_NET)  || defined(CONFIG_ZAPATA_PPP)
    182 @@ -5816,6 +5896,19 @@
     232@@ -5908,6 +5990,19 @@
    183233                                                }
    184234                                        }
     
    200250                                /* Not HDLC */
    201251                                memcpy(buf + ms->readidx[ms->inreadbuf], rxb, left);
    202 diff -urN zaptel-1.2.10.orig/zaptel.h zaptel-1.2.10/zaptel.h
    203 --- zaptel-1.2.10.orig/zaptel.h 2005-12-17 03:04:05.000000000 +0100
    204 +++ zaptel-1.2.10/zaptel.h      2006-12-19 13:36:19.000000000 +0100
    205 @@ -994,6 +994,13 @@
     252diff -urN zaptel-1.2.16.orig/zaptel.h zaptel-1.2.16/zaptel.h
     253--- zaptel-1.2.16.orig/zaptel.h 2007-02-06 22:57:38.000000000 +0100
     254+++ zaptel-1.2.16/zaptel.h      2007-03-26 10:59:54.002598219 +0200
     255@@ -1043,6 +1043,13 @@
    206256        int do_ppp_error;
    207257        struct sk_buff_head ppp_rq;
     
    217267        char name[40];          /* Name */
    218268        /* Specified by zaptel */
    219 @@ -1068,7 +1075,7 @@
     269@@ -1117,7 +1124,7 @@
    220270        int             txbufpolicy;                    /* Buffer policy */
    221271        int             rxbufpolicy;                    /* Buffer policy */
     
    226276       
    227277        /* Tone zone stuff */
    228 @@ -1231,6 +1238,10 @@
     278@@ -1280,6 +1287,10 @@
    229279 #define ZT_FLAG_T1PPP                  (1 << 15)
    230280 #define ZT_FLAG_SIGFREEZE              (1 << 16)       /* Freeze signalling */
     
    237287        spinlock_t lock;
    238288        void *pvt;                      /* Private stuff */
    239 @@ -1331,6 +1342,10 @@
     289@@ -1380,6 +1391,10 @@
    240290        int watchcounter;
    241291        int watchstate;
     
    247297 };
    248298 
    249  #define ZT_WATCHDOG_NOINTS             (1 << 0)
    250 @@ -1404,6 +1419,9 @@
     299 struct zt_transcoder_channel {
     300@@ -1494,6 +1509,9 @@
    251301 /* Notify a change possible change in alarm status */
    252  extern void zt_alarm_notify(struct zt_span *span);
     302 void zt_alarm_notify(struct zt_span *span);
    253303 
    254304+/* Notify a change possible change in alarm status, DONT change the zaptel master! */
     
    256306+
    257307 /* Initialize a tone state */
    258  extern void zt_init_tone_state(struct zt_tone_state *ts, struct zt_tone *zt);
    259  
    260 diff -urN zaptel-1.2.10.orig/zconfig.h zaptel-1.2.10/zconfig.h
    261 --- zaptel-1.2.10.orig/zconfig.h        2005-11-29 19:42:08.000000000 +0100
    262 +++ zaptel-1.2.10/zconfig.h     2006-10-19 11:16:47.000000000 +0200
    263 @@ -49,11 +49,11 @@
     308 void zt_init_tone_state(struct zt_tone_state *ts, struct zt_tone *zt);
     309 
     310diff -urN zaptel-1.2.16.orig/zconfig.h zaptel-1.2.16/zconfig.h
     311--- zaptel-1.2.16.orig/zconfig.h        2007-02-01 01:55:41.000000000 +0100
     312+++ zaptel-1.2.16/zconfig.h     2007-03-26 10:59:54.002598219 +0200
     313@@ -53,11 +53,11 @@
    264314 /* #define ECHO_CAN_MARK */
    265315 /* #define ECHO_CAN_MARK2 */
     
    275325 /*
    276326  * Uncomment for aggressive residual echo supression under
    277 @@ -152,4 +152,10 @@
     327@@ -156,4 +156,10 @@
    278328  */
    279329 /* #define FXSFLASH */
     
    286336+
    287337 #endif
    288 diff -urN zaptel-1.2.10.orig/ztcfg.c zaptel-1.2.10/ztcfg.c
    289 --- zaptel-1.2.10.orig/ztcfg.c  2006-02-01 03:33:54.000000000 +0100
    290 +++ zaptel-1.2.10/ztcfg.c       2006-12-05 12:37:31.000000000 +0100
     338diff -urN zaptel-1.2.16.orig/ztcfg.c zaptel-1.2.16/ztcfg.c
     339--- zaptel-1.2.16.orig/ztcfg.c  2007-01-31 20:01:33.000000000 +0100
     340+++ zaptel-1.2.16/ztcfg.c       2007-03-26 10:59:54.022602931 +0200
    291341@@ -90,6 +90,10 @@
    292342 
     
    369419                                                if (ioctl(fd, ZT_SPANCONFIG, lc + x)) {
    370420                                                        fprintf(stderr, "ZT_SPANCONFIG failed on span %d: %s (%d)\n", lc[x].span, strerror(errno), errno);
    371 @@ -1348,12 +1378,25 @@
     421@@ -1358,12 +1388,25 @@
    372422                                                        exit(1);
    373423                                                }
     
    396446                                }
    397447                        }
    398 diff -urN zaptel-1.2.10.orig/ztpty.c zaptel-1.2.10/ztpty.c
    399 --- zaptel-1.2.10.orig/ztpty.c  1970-01-01 01:00:00.000000000 +0100
    400 +++ zaptel-1.2.10/ztpty.c       2006-10-19 11:16:47.000000000 +0200
     448diff -urN zaptel-1.2.16.orig/ztpty.c zaptel-1.2.16/ztpty.c
     449--- zaptel-1.2.16.orig/ztpty.c  1970-01-01 01:00:00.000000000 +0100
     450+++ zaptel-1.2.16/ztpty.c       2007-03-26 10:59:54.022602931 +0200
    401451@@ -0,0 +1,112 @@
    402452+#include <stdio.h>
Note: See TracChangeset for help on using the changeset viewer.