Changeset 2750c33 in freewrt
- Timestamp:
- May 20, 2007, 3:15:22 PM (19 years ago)
- Children:
- 0cba375
- Parents:
- 0eff8a9
- Files:
-
- 13 added
- 5 deleted
- 7 edited
- 2 moved
-
mk/modules.mk (modified) (1 diff)
-
package/asterisk-12/Config.in (modified) (3 diffs)
-
package/asterisk-12/Makefile (modified) (4 diffs)
-
package/asterisk-12/patches/100-junghanns-0.3.0-PRE-1y-e.patch (added)
-
package/libpri/patches/100-junghanns-0.3.0-PRE-1y-e.patch (moved) (moved from package/libpri/patches/100-junghanns.patch ) (30 diffs)
-
package/zaptel-12/Config.in (modified) (1 diff)
-
package/zaptel-12/Config.in.kernel (modified) (3 diffs)
-
package/zaptel-12/Makefile (modified) (3 diffs)
-
package/zaptel-12/extra/qozap.c (added)
-
package/zaptel-12/extra/qozap.h (added)
-
package/zaptel-12/extra/zaphfc.c (added)
-
package/zaptel-12/extra/zaphfc.h (added)
-
package/zaptel-12/files/qozap.modules (added)
-
package/zaptel-12/files/zaphfc.modules (added)
-
package/zaptel-12/files/zaptel.modules (added)
-
package/zaptel-12/files/ztdummy.modules (added)
-
package/zaptel-12/ipkg/kmod-qozap-12.control (added)
-
package/zaptel-12/ipkg/kmod-zaphfc-12.control (modified) (1 diff)
-
package/zaptel-12/patches/001-cross.patch (deleted)
-
package/zaptel-12/patches/002-strip_zaptel.conf.patch (deleted)
-
package/zaptel-12/patches/003-config.h-fixup.patch (deleted)
-
package/zaptel-12/patches/004-x86-xpp-disable.patch (deleted)
-
package/zaptel-12/patches/100-junghanns-bristuff-0.3.0-PRE-1y-e.patch (moved) (moved from package/zaptel-12/patches/100-junghanns.patch ) (21 diffs)
-
package/zaptel-12/patches/110-zaphfc.patch (deleted)
-
package/zaptel-12/patches/patch-Makefile (added)
-
package/zaptel-12/patches/patch-Makefile_kernel26 (added)
-
package/zaptel-12/patches/patch-zaptel_h (added)
Legend:
- Unmodified
- Added
- Removed
-
mk/modules.mk
r0eff8a9 r2750c33 998 998 999 999 # Library modules 1000 $(eval $(call KMOD_template,C CITT,crc-ccitt, \1000 $(eval $(call KMOD_template,CRC_CCITT,crc-ccitt, \ 1001 1001 $(MODULES_DIR)/kernel/lib/crc-ccitt \ 1002 1002 ,20)) -
package/asterisk-12/Config.in
r0eff8a9 r2750c33 85 85 tristate 86 86 default n 87 dependsFWRT_PACKAGE_KMOD_ZTDUMMY_1287 select FWRT_PACKAGE_KMOD_ZTDUMMY_12 88 88 select FWRT_PACKAGE_ASTERISK_12_ZAPTEL 89 89 help … … 94 94 tristate 95 95 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 98 97 select FWRT_PACKAGE_ZAPTEL_12 98 select FWRT_PACKAGE_KMOD_ZAPTEL_12 99 99 help 100 This package allows creation of conference channels.100 This package allows using ISDN zaptel hardware. 101 101 102 102 config FWRT_PACKAGE_ASTERISK_12_CHAN_MISDN … … 104 104 tristate 105 105 default n 106 depends on FWRT_PACKAGE_ASTERISK_12 106 depends on FWRT_LINUX_2_6 107 depends FWRT_PACKAGE_ASTERISK_12 107 108 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. 109 112 endmenu -
package/asterisk-12/Makefile
r0eff8a9 r2750c33 8 8 9 9 PKG_NAME:= asterisk 10 PKG_VERSION:= 1.2.1 711 PKG_RELEASE:= 312 PKG_MD5SUM:= 1a41a1f4a535813b1272bae0545c799010 PKG_VERSION:= 1.2.18 11 PKG_RELEASE:= 1 12 PKG_MD5SUM:= 84d16eb0a94a3da883cb9bd6cb8a3fca 13 13 PKG_SOURCE_URL:= http://ftp.digium.com/pub/asterisk/old-releases \ 14 14 ftp://ftp.digium.com/pub/asterisk/old-releases … … 25 25 $(eval $(call PKG_template,ASTERISK_12_CHAN_SKINNY,asterisk-12-chan-skinny,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) 26 26 $(eval $(call PKG_template,ASTERISK_12_CHAN_IAX2,asterisk-12-chan-iax2,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) 27 ifeq ($(FWRT_LINUX_2_6),y) 27 28 $(eval $(call PKG_template,ASTERISK_12_CHAN_MISDN,asterisk-12-chan-misdn,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) 29 endif 28 30 $(eval $(call PKG_template,ASTERISK_12_CODEC_SPEEX,asterisk-12-codec-speex,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) 29 31 $(eval $(call PKG_template,ASTERISK_12_PBX_DUNDI,asterisk-12-pbx-dundi,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) … … 37 39 SUB_INSTALLS-${FWRT_PACKAGE_ASTERISK_12_SOUNDS}+= asterisk-sounds-install 38 40 SUB_INSTALLS-${FWRT_PACKAGE_ASTERISK_12_CHAN_MGCP}+= asterisk-chan-mgcp-install 41 ifeq ($(FWRT_LINUX_2_6),y) 39 42 SUB_INSTALLS-${FWRT_PACKAGE_ASTERISK_12_CHAN_MISDN}+= asterisk-chan-misdn-install 43 endif 40 44 SUB_INSTALLS-${FWRT_PACKAGE_ASTERISK_12_CHAN_SKINNY}+= asterisk-chan-skinny-install 41 45 SUB_INSTALLS-${FWRT_PACKAGE_ASTERISK_12_CHAN_IAX2}+= asterisk-chan-iax2-install … … 79 83 rm -f *ilbc* *agi* *sqlite* *iax* *lpc10* \ 80 84 *voicemail* *dundi* *adsi* *skinny* \ 81 *mgcp* *misdn* *meetme* *speex* *zap* ; \85 *mgcp* *misdn* *meetme* *speex* *zap* *format_ogg_vorbis*; \ 82 86 ) 83 87 (cd ${IDIR_ASTERISK_12}/etc/asterisk ; \ -
package/libpri/patches/100-junghanns-0.3.0-PRE-1y-e.patch
r0eff8a9 r2750c33 333 333 diff -urN libpri-1.2.4.orig/Makefile libpri-1.2.4/Makefile 334 334 --- libpri-1.2.4.orig/Makefile 2006-04-30 17:17:47.000000000 +0200 335 +++ libpri-1.2.4/Makefile 200 6-07-27 17:45:09.000000000+0200336 @@ -27,6 +27,1 3@@335 +++ libpri-1.2.4/Makefile 2007-04-02 14:37:02.876417878 +0200 336 @@ -27,6 +27,16 @@ 337 337 # Uncomment if you want libpri to count number of Q921/Q931 sent/received 338 338 #LIBPRI_COUNTERS=-DLIBPRI_COUNTERS … … 345 345 +#FASTBUSYONBUSY=-DFASTBUSYONBUSY 346 346 + 347 +# workaround for slowly responding COs 348 +#RELAXEDTIMERS=-DRELAXED_TIMERS 349 + 347 350 CC=gcc 348 351 349 352 OSARCH=$(shell uname -s) 350 @@ -38,7 +4 5,7 @@353 @@ -38,7 +48,7 @@ 351 354 DYNAMIC_LIBRARY=libpri.so.1.0 352 355 STATIC_OBJS=copy_string.o pri.o q921.o prisched.o q931.o pri_facility.o 353 356 DYNAMIC_OBJS=copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_facility.lo 354 357 -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 356 359 INSTALL_PREFIX=$(DESTDIR) 357 360 INSTALL_BASE=/usr … … 359 362 diff -urN libpri-1.2.4.orig/pri.c libpri-1.2.4/pri.c 360 363 --- libpri-1.2.4.orig/pri.c 2005-11-29 19:39:18.000000000 +0100 361 +++ libpri-1.2.4/pri.c 200 6-07-11 12:39:20.000000000 +0200364 +++ libpri-1.2.4/pri.c 2007-02-02 11:16:23.000000000 +0100 362 365 @@ -1,24 +1,14 @@ 363 366 /* … … 519 522 { 520 523 if (pri && call) 521 @@ -499,6 +524, 76@@524 @@ -499,6 +524,83 @@ 522 525 return q931_connect(pri, call, channel, nonisdn); 523 526 } … … 589 592 +int pri_deflect(struct pri *pri, q931_call *call, char *destination) 590 593 +{ 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 + } 593 603 +} 594 604 + … … 596 606 /* deprecated routines, use pri_hangup */ 597 607 int pri_release(struct pri *pri, q931_call *call, int cause) 598 @@ -541,14 +6 36,35 @@608 @@ -541,14 +643,35 @@ 599 609 return 0; 600 610 } … … 634 644 635 645 int pri_reset(struct pri *pri, int channel) 636 @@ -688,15 +8 04,15 @@646 @@ -688,15 +811,15 @@ 637 647 return q931_setup(pri, c, &req); 638 648 } … … 654 664 __pri_error = func; 655 665 } 656 @@ -708,10 +8 24,14 @@666 @@ -708,10 +831,14 @@ 657 667 va_start(ap, fmt); 658 668 vsnprintf(tmp, sizeof(tmp), fmt, ap); … … 673 683 674 684 void pri_error(struct pri *pri, char *fmt, ...) 675 @@ -721,10 +84 1,14 @@685 @@ -721,10 +848,14 @@ 676 686 va_start(ap, fmt); 677 687 vsnprintf(tmp, sizeof(tmp), fmt, ap); … … 692 702 693 703 /* Set overlap mode */ 694 @@ -765,11 +8 89,13 @@704 @@ -765,11 +896,13 @@ 695 705 } 696 706 len += sprintf(buf + len, "Q921 Outstanding: %d\n", q921outstanding); … … 711 721 len += sprintf(buf + len, "T200 Timer: %d\n", pri->timers[PRI_TIMER_T200]); 712 722 len += sprintf(buf + len, "T203 Timer: %d\n", pri->timers[PRI_TIMER_T203]); 713 @@ -778,6 +9 04,7 @@723 @@ -778,6 +911,7 @@ 714 724 len += sprintf(buf + len, "T313 Timer: %d\n", pri->timers[PRI_TIMER_T313]); 715 725 len += sprintf(buf + len, "N200 Counter: %d\n", pri->timers[PRI_TIMER_N200]); … … 719 729 } 720 730 721 @@ -819,10 +9 46,11 @@731 @@ -819,10 +953,11 @@ 722 732 return 0; 723 733 } … … 732 742 } 733 743 734 @@ -851,3 +9 79,14 @@744 @@ -851,3 +986,14 @@ 735 745 sr->redirectingreason = reason; 736 746 return 0; … … 764 774 diff -urN libpri-1.2.4.orig/pri_facility.c libpri-1.2.4/pri_facility.c 765 775 --- libpri-1.2.4.orig/pri_facility.c 2006-02-14 00:06:02.000000000 +0100 766 +++ libpri-1.2.4/pri_facility.c 200 6-06-06 14:26:01.000000000 +0200776 +++ libpri-1.2.4/pri_facility.c 2007-01-31 15:48:56.000000000 +0100 767 777 @@ -1,26 +1,17 @@ 768 778 -/* … … 1048 1058 { 1049 1059 int i = 0, j, compsp = 0; 1050 @@ -694,6 +702, 64@@1060 @@ -694,6 +702,131 @@ 1051 1061 return 0; 1052 1062 } … … 1110 1120 +} 1111 1121 + 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 + 1112 1189 /* Sending callername information functions */ 1113 1190 static int add_callername_facility_ies(struct pri *pri, q931_call *c, int cpe) 1114 1191 { 1115 @@ -936,7 +10 02,7 @@1192 @@ -936,7 +1069,7 @@ 1116 1193 CHECK_COMPONENT(comp, ASN1_ENUMERATED, "!! Invalid AOC Charging Request argument. Expected Enumerated (0x0A) but Received 0x%02X\n"); 1117 1194 ASN1_GET_INTEGER(comp, chargingcase); … … 1122 1199 call->ds1no, call->channelno, call->cr, chargingcase); 1123 1200 } else { 1124 @@ -1054,7 +11 20,7 @@1201 @@ -1054,7 +1187,7 @@ 1125 1202 return 0; 1126 1203 } … … 1131 1208 /* sample data: [ 91 a1 12 02 02 3a 78 02 01 24 30 09 30 07 a1 05 30 03 02 01 01 ] */ 1132 1209 int i = 0, res = 0, compsp = 0; 1133 @@ -1108,18 +1 174,20 @@1210 @@ -1108,18 +1241,20 @@ 1134 1211 dump_apdu (pri, buffer, i); 1135 1212 … … 1157 1234 1158 1235 return 0; 1159 @@ -1152,13 +12 20,15 @@1236 @@ -1152,13 +1287,15 @@ 1160 1237 NEXT_COMPONENT(comp, i); 1161 1238 … … 1178 1255 if (pri->debug & PRI_DEBUG_APDU) 1179 1256 pri_message(pri, " [ Handling operation %d ]\n", operation_tag); 1180 @@ -1182,7 +1 252,11 @@1257 @@ -1182,7 +1319,11 @@ 1181 1258 case ROSE_DIVERTING_LEG_INFORMATION2: 1182 1259 if (pri->debug & PRI_DEBUG_APDU) … … 1191 1268 if (pri->debug & PRI_DEBUG_APDU) { 1192 1269 pri_message(pri, "ROSE %i: AOC No Charging Info Available - not handled!", operation_tag); 1193 @@ -1210,6 +1 284,7 @@1270 @@ -1210,6 +1351,7 @@ 1194 1271 } 1195 1272 return -1; … … 1199 1276 pri_message(pri, "ROSE %i: AOC-D Charging Unit - not handled!", operation_tag); 1200 1277 dump_apdu (pri, (u_int8_t *)comp, comp->len + 2); 1201 @@ -1224,7 +1 299,7 @@1278 @@ -1224,7 +1366,7 @@ 1202 1279 case ROSE_AOC_AOCE_CHARGING_UNIT: 1203 1280 return aoc_aoce_charging_unit_decode(pri, call, (u_int8_t *)comp, comp->len + 2); … … 1208 1285 } 1209 1286 case ROSE_AOC_IDENTIFICATION_OF_CHARGE: 1210 @@ -1233,6 +13 08,22 @@1287 @@ -1233,6 +1375,22 @@ 1211 1288 dump_apdu (pri, (u_int8_t *)comp, comp->len + 2); 1212 1289 } … … 1233 1310 diff -urN libpri-1.2.4.orig/pri_facility.h libpri-1.2.4/pri_facility.h 1234 1311 --- libpri-1.2.4.orig/pri_facility.h 2005-11-29 19:39:18.000000000 +0100 1235 +++ libpri-1.2.4/pri_facility.h 200 6-04-15 21:35:05.000000000 +02001312 +++ libpri-1.2.4/pri_facility.h 2007-02-01 13:21:36.000000000 +0100 1236 1313 @@ -34,7 +34,7 @@ 1237 1314 /* Operation ID values */ … … 1243 1320 /* Q.956 ROSE operations (Advice Of Charge) */ 1244 1321 #define ROSE_AOC_NO_CHARGING_INFO_AVAILABLE 26 1245 @@ -48,11 +48,1 5@@1322 @@ -48,11 +48,16 @@ 1246 1323 #define ROSE_AOC_IDENTIFICATION_OF_CHARGE 37 1247 1324 /* Q.SIG operations */ … … 1254 1331 1255 1332 +#define ROSE_CALLDEFLECTION 0x0D 1333 +#define ROSE_CALLREROUTING 0x0E 1256 1334 +#define ROSE_EXPLICIT_CALL_TRANSFER 0x06 1257 1335 +#define ROSE_MALICIOUS_CID 0x31 … … 1260 1338 #define INVOKE_IDENTIFIER 0x02 1261 1339 #define INVOKE_LINKED_IDENTIFIER 0x80 1262 @@ -180,12 +18 4,6 @@1340 @@ -180,12 +185,6 @@ 1263 1341 (variable) = ((variable) << 8) | (component)->data[comp_idx]; \ 1264 1342 } while (0) … … 1273 1351 do { \ 1274 1352 (component) = (struct rose_component *)&((ptr)[(idx)]); \ 1275 @@ -260,4 +25 8,8@@1353 @@ -260,4 +259,10 @@ 1276 1354 /* Adds the "standard" ADPUs to a call */ 1277 1355 extern int pri_call_add_standard_apdus(struct pri *pri, q931_call *call); 1278 1356 1279 1357 +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); 1280 1360 + 1281 1361 +extern int aoc_aoce_charging_unit_encode(struct pri *pri, q931_call *c, long chargedunits, int send_facility_message); … … 1845 1925 diff -urN libpri-1.2.4.orig/pri_timers.h libpri-1.2.4/pri_timers.h 1846 1926 --- 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 1850 1933 /* -1 means we dont currently support the timer/counter */ 1851 1934 #define PRI_TIMERS_DEFAULT { 3, /* N200 */ \ … … 1865 1948 -1, /* T302 */ \ 1866 1949 - -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 */ \ 1867 1981 + 4000, /* T303 */ \ 1868 1982 -1, /* T304 */ \ 1869 1983 30000, /* T305 */ \ 1870 1984 -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 1871 1993 diff -urN libpri-1.2.4.orig/q921.c libpri-1.2.4/q921.c 1872 1994 --- libpri-1.2.4.orig/q921.c 2005-12-06 22:35:50.000000000 +0100 -
package/zaptel-12/Config.in
r0eff8a9 r2750c33 2 2 prompt "zaptel-12......................... Zaptel library (Version 1.2)" 3 3 tristate 4 select FWRT_PACKAGE_LIBPRI 5 depends FWRT_PACKAGE_ASTERISK_VERSION_12 4 6 default n 5 depends on FWRT_LINUX_2_6_RB || FWRT_LINUX_2_6_X866 7 help 7 8 -
package/zaptel-12/Config.in.kernel
r0eff8a9 r2750c33 2 2 prompt "kmod-zaptel-12.................... Zaptel generic support (Version 1.2)" 3 3 tristate 4 select FWRT_KPACKAGE_KMOD_CRC_CCITT 4 5 default n 5 depends on FWRT_LINUX_2_6_RB || FWRT_LINUX_2_6_X86 || FWRT_LINUX_2_6_BRCM6 6 help 7 7 … … 12 12 tristate 13 13 default n 14 depends onFWRT_PACKAGE_KMOD_ZAPTEL_1214 select FWRT_PACKAGE_KMOD_ZAPTEL_12 15 15 help 16 16 … … 18 18 19 19 config 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)" 21 21 tristate 22 22 default n 23 select FWRT_PACKAGE_LIBPRI 24 depends on FWRT_PACKAGE_KMOD_ZAPTEL_12 23 select FWRT_PACKAGE_KMOD_ZAPTEL_12 25 24 help 25 Kernel driver for Zaphfc one-port ISDN cards. 26 27 http://www.junghanns.net 28 29 config 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. 26 36 27 http://www. asterisk.org37 http://www.junghanns.net -
package/zaptel-12/Makefile
r0eff8a9 r2750c33 9 9 10 10 PKG_NAME:= zaptel 11 PKG_VERSION:= 1.2.10 12 PKG_RELEASE:= 2 13 PKG_MODULE:= 60 14 PKG_MD5SUM:= 25f9a78272104efdbd44261e33edb725 11 PKG_VERSION:= 1.2.17.1 12 PKG_RELEASE:= 1 13 PKG_MD5SUM:= 328504be9851ae180232efe7c453e3d2 15 14 PKG_SOURCE_URL:= http://ftp.digium.com/pub/zaptel/releases 16 15 17 16 include ${TOPDIR}/mk/package.mk 17 include ${TOPDIR}/mk/kpkg.mk 18 18 19 19 $(eval $(call PKG_template,ZAPTEL_12,zaptel-12,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) … … 21 21 $(eval $(call PKG_template,KMOD_ZTDUMMY_12,kmod-ztdummy-12,${KERNEL_VERSION}-${BOARD}-${PKG_VERSION}-${PKG_RELEASE},${ARCH})) 22 22 $(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})) 23 24 24 25 BUILD_STYLE:= auto 25 TCFLAGS+= -DZAPTEL_CONFIG=\"${WRKINST}/etc/zaptel.conf\"26 26 ifeq ($(KERNEL),2.4) 27 MAKE_FLAGS+= LD="${TARGET_CROSS}ld" \ 28 KFLAGS="${KFLAGS}" \ 27 XAKE_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" \ 29 34 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} 33 38 else 34 MAKE_FLAGS+= LD="${TARGET_CROSS}ld" \ 35 KFLAGS="${KFLAGS}" \ 39 XAKE_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' \ 36 43 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} 40 49 endif 41 50 INSTALL_STYLE:= auto 42 XAKE_FLAGS+= CC="${TARGET_CC}" \43 KSRC="${LINUX_DIR}" \44 51 FAKE_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 52 ZAPTEL_KFLAGS:= ${TCFLAGS} ${KERNEL_C_INCS} ${KERNEL_M_OPTS} \ 53 -DEXPORT_SYMTAB \ 54 -DSTANDALONE_ZAPATA \ 55 -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" 51 56 52 57 pre-build: 53 $(SED) 's/ @@ARCH@@/${KERNEL_ARCH}/g' ${WRKBUILD}/Makefile58 $(SED) 's/##ARCH##/${KERNEL_ARCH}/g' ${WRKBUILD}/Makefile 54 59 55 60 post-install: … … 59 64 ${INSTALL_BIN} ${WRKINST}/sbin/ztcfg ${IDIR_ZAPTEL_12}/usr/sbin/ 60 65 ${INSTALL_DATA} ${WRKINST}/etc/zaptel.conf ${IDIR_ZAPTEL_12}/etc/ 66 ${INSTALL_DIR} ${IDIR_KMOD_ZAPTEL_12}/etc/modules.d 61 67 ${INSTALL_DIR} ${IDIR_KMOD_ZAPTEL_12}/lib/modules/${KERNEL_VERSION} 62 68 ${INSTALL_DATA} ${WRKBUILD}/zaptel.${KERNEL_MOD_SUFFIX} \ 63 69 ${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 64 72 ${INSTALL_DIR} ${IDIR_KMOD_ZTDUMMY_12}/lib/modules/${KERNEL_VERSION} 65 73 ${INSTALL_DATA} ${WRKBUILD}/ztdummy.${KERNEL_MOD_SUFFIX} \ 66 74 ${IDIR_KMOD_ZTDUMMY_12}/lib/modules/${KERNEL_VERSION}/ 75 ${INSTALL_DATA} ./files/ztdummy.modules ${IDIR_KMOD_ZTDUMMY_12}/etc/modules.d/60-ztdummy 67 76 ${INSTALL_DIR} ${IDIR_KMOD_ZAPHFC_12}/lib/modules/${KERNEL_VERSION} 77 ${INSTALL_DIR} ${IDIR_KMOD_ZAPHFC_12}/etc/modules.d 68 78 ${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 70 86 71 87 include ${TOPDIR}/mk/pkg-bottom.mk -
package/zaptel-12/ipkg/kmod-zaphfc-12.control
r0eff8a9 r2750c33 3 3 Section: sys 4 4 Depends: libpri, zaptel-12, kmod-zaptel-12 5 Description: ZaptelHFC ISDN card driver5 Description: 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 @@ 1 diff -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 84 diff -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 @@ 40 88 EXPORT_SYMBOL(zt_qevent_lock); 41 89 EXPORT_SYMBOL(zt_hooksig); … … 45 93 EXPORT_SYMBOL(zt_ec_chunk); 46 94 EXPORT_SYMBOL(zt_ec_span); 47 @@ -5 56,6 +557,10 @@95 @@ -582,6 +583,10 @@ 48 96 len += sprintf(page + len, "\tIRQ misses: %d\n", spans[span]->irqmisses); 49 97 len += sprintf(page + len, "\n"); … … 56 104 for (x=1;x<ZT_MAX_CHANNELS;x++) { 57 105 if (chans[x]) { 58 @@ -27 00,6 +2705,30 @@106 @@ -2762,6 +2767,30 @@ 59 107 } 60 108 } … … 87 135 if ((j >= ZT_MAX_SPANS) || (j < 1)) \ 88 136 return -EINVAL; \ 89 @@ - 4928,11 +4957,40 @@137 @@ -5009,11 +5038,40 @@ 90 138 *(txb++) = fasthdlc_tx_run_nocheck(&ms->txhdlc); 91 139 } … … 111 159 + memcpy(txb, buf + ms->writeidx[ms->outwritebuf], left); 112 160 + ms->writeidx[ms->outwritebuf] += left + 2; 113 + txb += left ;161 + txb += left + 2; 114 162 + ms->bytes2transmit = left; 115 163 + ms->eoftx = 1; … … 128 176 /* Check buffer status */ 129 177 if (ms->writeidx[ms->outwritebuf] >= ms->writen[ms->outwritebuf]) { 130 @@ - 4977,6 +5035,17 @@178 @@ -5058,6 +5116,17 @@ 131 179 /* Transmit a flag if this is an HDLC channel */ 132 180 if (ms->flags & ZT_FLAG_HDLC) … … 146 194 if (ms->flags & ZT_FLAG_NETDEV) 147 195 netif_wake_queue(ztchan_to_dev(ms)); 148 @@ - 4987,7 +5056,7 @@196 @@ -5068,7 +5137,7 @@ 149 197 tasklet_schedule(&ms->ppp_calls); 150 198 } … … 155 203 left = ms->curtone->tonesamples - ms->tonep; 156 204 if (left > bytes) 157 @@ -5 033,6 +5102,10@@205 @@ -5114,6 +5183,12 @@ 158 206 memset(txb, 0xFF, bytes); 159 207 } … … 161 209 +#if defined(CONFIG_ZAPATA_BRI_DCHANS) 162 210 + } else if(ms->flags & ZT_FLAG_BRIDCHAN) { 211 + ms->bytes2transmit = 0; 212 + ms->eoftx = 0; 163 213 + bytes = 0; 164 214 +#endif … … 166 216 memset(txb, ZT_LIN2X(0, ms), bytes); /* Lastly we use silence on telephony channels */ 167 217 bytes = 0; 168 @@ -5 758,6 +5831,13 @@218 @@ -5850,6 +5925,13 @@ 169 219 int left, x; 170 220 … … 180 230 while(bytes) { 181 231 #if defined(CONFIG_ZAPATA_NET) || defined(CONFIG_ZAPATA_PPP) 182 @@ -5 816,6 +5896,19 @@232 @@ -5908,6 +5990,19 @@ 183 233 } 184 234 } … … 200 250 /* Not HDLC */ 201 251 memcpy(buf + ms->readidx[ms->inreadbuf], rxb, left); 202 diff -urN zaptel-1.2.1 0.orig/zaptel.h zaptel-1.2.10/zaptel.h203 --- zaptel-1.2.1 0.orig/zaptel.h 2005-12-17 03:04:05.000000000 +0100204 +++ zaptel-1.2.1 0/zaptel.h 2006-12-19 13:36:19.000000000 +0100205 @@ - 994,6 +994,13 @@252 diff -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 @@ 206 256 int do_ppp_error; 207 257 struct sk_buff_head ppp_rq; … … 217 267 char name[40]; /* Name */ 218 268 /* Specified by zaptel */ 219 @@ -1 068,7 +1075,7 @@269 @@ -1117,7 +1124,7 @@ 220 270 int txbufpolicy; /* Buffer policy */ 221 271 int rxbufpolicy; /* Buffer policy */ … … 226 276 227 277 /* Tone zone stuff */ 228 @@ -12 31,6 +1238,10 @@278 @@ -1280,6 +1287,10 @@ 229 279 #define ZT_FLAG_T1PPP (1 << 15) 230 280 #define ZT_FLAG_SIGFREEZE (1 << 16) /* Freeze signalling */ … … 237 287 spinlock_t lock; 238 288 void *pvt; /* Private stuff */ 239 @@ -13 31,6 +1342,10 @@289 @@ -1380,6 +1391,10 @@ 240 290 int watchcounter; 241 291 int watchstate; … … 247 297 }; 248 298 249 #define ZT_WATCHDOG_NOINTS (1 << 0)250 @@ -14 04,6 +1419,9 @@299 struct zt_transcoder_channel { 300 @@ -1494,6 +1509,9 @@ 251 301 /* Notify a change possible change in alarm status */ 252 externvoid zt_alarm_notify(struct zt_span *span);302 void zt_alarm_notify(struct zt_span *span); 253 303 254 304 +/* Notify a change possible change in alarm status, DONT change the zaptel master! */ … … 256 306 + 257 307 /* Initialize a tone state */ 258 externvoid zt_init_tone_state(struct zt_tone_state *ts, struct zt_tone *zt);259 260 diff -urN zaptel-1.2.1 0.orig/zconfig.h zaptel-1.2.10/zconfig.h261 --- zaptel-1.2.1 0.orig/zconfig.h 2005-11-29 19:42:08.000000000 +0100262 +++ zaptel-1.2.1 0/zconfig.h 2006-10-19 11:16:47.000000000+0200263 @@ - 49,11 +49,11 @@308 void zt_init_tone_state(struct zt_tone_state *ts, struct zt_tone *zt); 309 310 diff -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 @@ 264 314 /* #define ECHO_CAN_MARK */ 265 315 /* #define ECHO_CAN_MARK2 */ … … 275 325 /* 276 326 * Uncomment for aggressive residual echo supression under 277 @@ -15 2,4 +152,10 @@327 @@ -156,4 +156,10 @@ 278 328 */ 279 329 /* #define FXSFLASH */ … … 286 336 + 287 337 #endif 288 diff -urN zaptel-1.2.1 0.orig/ztcfg.c zaptel-1.2.10/ztcfg.c289 --- zaptel-1.2.1 0.orig/ztcfg.c 2006-02-01 03:33:54.000000000 +0100290 +++ zaptel-1.2.1 0/ztcfg.c 2006-12-05 12:37:31.000000000 +0100338 diff -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 291 341 @@ -90,6 +90,10 @@ 292 342 … … 369 419 if (ioctl(fd, ZT_SPANCONFIG, lc + x)) { 370 420 fprintf(stderr, "ZT_SPANCONFIG failed on span %d: %s (%d)\n", lc[x].span, strerror(errno), errno); 371 @@ -13 48,12 +1378,25 @@421 @@ -1358,12 +1388,25 @@ 372 422 exit(1); 373 423 } … … 396 446 } 397 447 } 398 diff -urN zaptel-1.2.1 0.orig/ztpty.c zaptel-1.2.10/ztpty.c399 --- zaptel-1.2.1 0.orig/ztpty.c 1970-01-01 01:00:00.000000000 +0100400 +++ zaptel-1.2.1 0/ztpty.c 2006-10-19 11:16:47.000000000+0200448 diff -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 401 451 @@ -0,0 +1,112 @@ 402 452 +#include <stdio.h>
Note:
See TracChangeset
for help on using the changeset viewer.
