diff --git a/cas.h b/cas.h deleted file mode 100755 index ecc6c3cef..000000000 --- a/cas.h +++ /dev/null @@ -1,58 +0,0 @@ -/* cas.h: Generated from frequencies 2130 and 2750 - by gensound. 800 samples */ -static unsigned char cas[800] = { - 255, 177, 60, 69, 189, 105, 95, 95, 90, 188, 78, 56, 180, 207, 48, - 196, 191, 63, 117, 226, 224, 207, 60, 229, 180, 56, 66, 176, 80, 60, - 194, 226, 103, 101, 74, 189, 223, 50, 190, 187, 50, 241, 186, 72, 90, - 237, 238, 198, 63, 76, 177, 72, 54, 180, 215, 57, 207, 214, 120, 251, - 66, 196, 193, 49, 219, 178, 57, 73, 185, 91, 83, 124, 103, 191, 75, - 60, 179, 223, 48, 190, 191, 59, 241, 211, 244, 220, 63, 216, 184, 54, - 74, 175, 72, 59, 189, 230, 84, 113, 83, 191, 255, 53, 187, 190, 48, - 217, 185, 64, 89, 214, 243, 205, 64, 87, 179, 65, 57, 178, 233, 55, - 199, 208, 90, 122, 74, 196, 201, 50, 206, 180, 53, 78, 183, 79, 77, - 222, 119, 199, 74, 64, 179, 111, 49, 186, 194, 55, 222, 203, 101, 234, - 69, 210, 187, 54, 84, 175, 64, 60, 185, 246, 75, 236, 96, 196, 100, - 56, 185, 196, 47, 204, 184, 60, 91, 203, 117, 218, 69, 104, 182, 62, - 60, 176, 104, 54, 191, 207, 77, 252, 84, 199, 210, 52, 200, 183, 51, - 89, 180, 72, 74, 207, 255, 207, 74, 72, 180, 89, 51, 183, 200, 52, - 210, 199, 84, 252, 77, 207, 191, 54, 104, 176, 60, 62, 182, 104, 69, - 218, 117, 203, 91, 60, 184, 204, 47, 196, 185, 56, 100, 196, 96, 236, - 75, 246, 185, 60, 64, 175, 84, 54, 187, 210, 69, 234, 101, 203, 222, - 55, 194, 186, 49, 111, 179, 64, 74, 199, 119, 222, 77, 79, 183, 78, - 53, 180, 206, 50, 201, 196, 74, 122, 90, 208, 199, 55, 233, 178, 57, - 65, 179, 87, 64, 205, 243, 214, 89, 64, 185, 217, 48, 190, 187, 53, - 255, 191, 83, 113, 84, 230, 189, 59, 72, 175, 74, 54, 184, 216, 63, - 220, 244, 211, 241, 59, 191, 190, 48, 223, 179, 60, 75, 191, 103, 124, - 83, 91, 185, 73, 57, 178, 219, 49, 193, 196, 66, 251, 120, 214, 207, - 57, 215, 180, 54, 72, 177, 76, 63, 198, 238, 237, 90, 72, 186, 241, - 50, 187, 190, 50, 223, 189, 74, 101, 103, 226, 194, 60, 80, 176, 66, - 56, 180, 229, 60, 207, 224, 226, 117, 63, 191, 196, 48, 207, 180, 56, - 78, 188, 90, 95, 95, 105, 189, 69, 60, 177, 255, 49, 188, 197, 61, - 233, 223, 223, 218, 60, 206, 184, 52, 79, 176, 68, 63, 191, 245, 98, - 96, 79, 188, 101, 52, 184, 194, 48, 208, 188, 66, 98, 231, 229, 202, - 61, 95, 178, 62, 59, 178, 113, 58, 200, 218, 109, 110, 70, 191, 204, - 49, 200, 182, 52, 87, 185, 79, 86, 248, 123, 194, 68, 65, 177, 91, - 50, 185, 201, 57, 219, 211, 252, 231, 63, 203, 188, 51, 95, 176, 62, - 63, 187, 113, 83, 116, 92, 191, 88, 56, 182, 202, 47, 200, 187, 61, - 102, 212, 241, 211, 63, 255, 181, 59, 62, 176, 89, 57, 192, 217, 86, - 115, 77, 192, 215, 51, 193, 185, 50, 105, 183, 71, 80, 218, 250, 202, - 68, 73, 178, 78, 52, 181, 206, 55, 207, 205, 94, 247, 71, 202, 192, - 51, 239, 177, 58, 66, 183, 94, 75, 229, 106, 197, 82, 59, 182, 212, - 47, 192, 188, 57, 118, 203, 108, 224, 68, 228, 184, 57, 68, 175, 76, - 56, 188, 219, 75, 245, 90, 197, 232, 54, 190, 188, 48, 232, 182, 63, - 79, 205, 124, 212, 71, 82, 180, 72, 55, 179, 217, 52, 200, 202, 79, - 255, 79, 202, 200, 52, 217, 179, 55, 72, 180, 82, 71, 212, 124, 205, - 79, 63, 182, 232, 48, 188, 190, 54, 232, 197, 90, 245, 75, 219, 188, - 56, 76, 175, 68, 57, 184, 228, 68, 224, 108, 203, 118, 57, 188, 192, - 47, 212, 182, 59, 82, 197, 106, 229, 75, 94, 183, 66, 58, 177, 239, - 51, 192, 202, 71, 247, 94, 205, 207, 55, 206, 181, 52, 78, 178, 73, - 68, 202, 250, 218, 80, 71, 183, 105, 50, 185, 193, 51, 215, 192, 77, - 115, 86, 217, 192, 57, 89, 176, 62, 59, 181, 255, 63, 211, 241, 212, - 102, 61, 187, 200, 47, 202, 182, 56, 88, 191, 92, 116, 83, 113, 187, - 63, 62, 176, 95, 51, 188, 203, 63, 231, 252, 211, 219, 57, 201, 185, - 50, 91, 177, 65, 68, 194, 123, 248, 86, 79, 185, 87, 52, 182, 200, - 49, 204, 191, 70, 110, 109, 218, 200, 58, 113, 178, 59, 62, 178, 95, - 61, 202, 229, 231, 98, 66, 188, 208, 48, 194, 184, 52, 101, 188, 79, - 96, 98, 245, 191, 63, 68, 176, 79, 52, 184, 206, 60, 218, 223, 223, - 233, 61, 197, 188, 49, -}; diff --git a/include/asterisk/zonedata.h b/include/asterisk/zonedata.h deleted file mode 100755 index 3f1db6627..000000000 --- a/include/asterisk/zonedata.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * BSD Telephony Of Mexico "Tormenta" Tone Zone Support 2/22/01 - * - * Working with the "Tormenta ISA" Card - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * Primary Author: Mark Spencer - * - */ - -#ifndef _ASTERISK_ZONEDATA_H -#define _ASTERISK_ZONEDATA_H - -#define ZT_MAX_CADENCE 16 -#define ZT_TONE_MAX 16 - -struct tone_zone_sound { - int toneid; - char data[256]; /* Actual zone description */ - /* Description is a series of tones of the format: - [!]freq1[+freq2][/time] separated by commas. There - are no spaces. The sequence is repeated back to the - first tone description not preceeded by !. time is - specified in milliseconds */ -}; - -struct tone_zone { - int zone; /* Zone number */ - char country[10]; /* Country code */ - char description[40]; /* Description */ - int ringcadence[ZT_MAX_CADENCE]; /* Ring cadence */ - struct tone_zone_sound tones[ZT_TONE_MAX]; -}; - -extern struct tone_zone builtin_zones[]; - -#define ZT_TONE_DIALTONE 0 -#define ZT_TONE_BUSY 1 -#define ZT_TONE_RINGTONE 2 -#define ZT_TONE_CONGESTION 3 -#define ZT_TONE_CALLWAIT 4 -#define ZT_TONE_DIALRECALL 5 -#define ZT_TONE_RECORDTONE 6 -#define ZT_TONE_INFO 7 -#define ZT_TONE_CUST1 8 -#define ZT_TONE_CUST2 9 - -/* Retrieve a raw tone zone structure */ -extern struct tone_zone *tone_zone_find(char *country); - -#endif diff --git a/sas.h b/sas.h deleted file mode 100755 index 5b2495712..000000000 --- a/sas.h +++ /dev/null @@ -1,18 +0,0 @@ -/* sas.h: Generated from frequency 440 - by gensound. 200 samples */ -static unsigned char sas[200] = { - 255, 169, 155, 148, 144, 144, 147, 154, 167, 219, 43, 28, 20, 16, 15, - 19, 25, 38, 77, 173, 156, 149, 144, 143, 146, 153, 164, 197, 47, 29, - 21, 17, 15, 18, 24, 34, 62, 179, 158, 150, 145, 143, 145, 151, 160, - 186, 54, 31, 23, 17, 15, 17, 23, 31, 54, 186, 160, 151, 145, 143, - 145, 150, 158, 179, 62, 34, 24, 18, 15, 17, 21, 29, 47, 197, 164, - 153, 146, 143, 144, 149, 156, 173, 77, 38, 25, 19, 15, 16, 20, 28, - 43, 219, 167, 154, 147, 144, 144, 148, 155, 169, 255, 41, 27, 20, 16, - 16, 19, 26, 39, 91, 171, 156, 148, 144, 143, 147, 153, 166, 205, 45, - 28, 21, 16, 15, 18, 25, 36, 69, 175, 157, 149, 145, 143, 146, 152, - 162, 190, 51, 30, 22, 17, 15, 17, 23, 32, 58, 182, 159, 151, 145, - 143, 145, 151, 159, 182, 58, 32, 23, 17, 15, 17, 22, 30, 51, 190, - 162, 152, 146, 143, 145, 149, 157, 175, 69, 36, 25, 18, 15, 16, 21, - 28, 45, 205, 166, 153, 147, 143, 144, 148, 156, 171, 91, 39, 26, 19, - 16, 16, 20, 27, 41, -}; diff --git a/zonedata.c b/zonedata.c deleted file mode 100755 index 9378387a1..000000000 --- a/zonedata.c +++ /dev/null @@ -1,98 +0,0 @@ -/* - * BSD Telephony Of Mexico "Tormenta" Tone Zone Support 2/22/01 - * - * Working with the "Tormenta ISA" Card - * - * This program is free software; you can redistribute it and/or modify - * it under thet erms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * Primary Author: Mark Spencer - * - * This information from ITU E.180 Supplement 2. - * UK information from BT SIN 350 Issue 1.1 - */ -#include - -struct tone_zone builtin_zones[] = -{ - { 0, "us", "United States / North America", { 2000, 4000 }, - { - { ZT_TONE_DIALTONE, "350+440" }, - { ZT_TONE_BUSY, "480+620/500,0/500" }, - { ZT_TONE_RINGTONE, "440+480/2000,0/4000" }, - { ZT_TONE_CONGESTION, "480+620/250,0/250" }, - { ZT_TONE_CALLWAIT, "440/300,0/10000" }, - { ZT_TONE_DIALRECALL, "!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440" }, - { ZT_TONE_RECORDTONE, "1400/500,0/15000" }, - { ZT_TONE_INFO, "!950/330,!1400/330,!1800/330,0" } } - }, - { 1, "au", "Australia", { 400, 200, 400, 2000 }, - { - /* XXX Dialtone: Should be modulated, not added XXX */ - { ZT_TONE_DIALTONE, "425+25" }, - { ZT_TONE_BUSY, "400/375,0/375" }, - { ZT_TONE_RINGTONE, "400+17/400,0/200,400+17/400,0/2000" }, - /* XXX Congestion: Should reduce by 10 db every other cadence XXX */ - { ZT_TONE_CONGESTION, "400/375,0/375" }, - { ZT_TONE_CALLWAIT, "425/100,0/100,525/100,0/4700" }, - { ZT_TONE_DIALRECALL, "!425+25/100!0/100,!425+25/100,!0/100,!425+25/100,!0/100,425+25" }, - { ZT_TONE_RECORDTONE, "1400/425,0/14525" }, - { ZT_TONE_INFO, "400/2500,0/500" } } - }, - { 2, "fr", "France", { 1500, 3500 }, - { - /* Dialtone can also be 440+330 */ - { ZT_TONE_DIALTONE, "440" }, - { ZT_TONE_BUSY, "440/500,0/500" }, - { ZT_TONE_RINGTONE, "440/1500,0/3500" }, - /* XXX I'm making up the congestion tone XXX */ - { ZT_TONE_CONGESTION, "440/250,0/250" }, - /* XXX I'm making up the call wait tone too XXX */ - { ZT_TONE_CALLWAIT, "440/300,0/10000" }, - /* XXX I'm making up dial recall XXX */ - { ZT_TONE_DIALRECALL, "!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440" }, - /* XXX I'm making up the record tone XXX */ - { ZT_TONE_RECORDTONE, "1400/500,0/15000" }, - { ZT_TONE_INFO, "!950/330,!1400/330,!1800/330,0" } } - }, - { 3, "nl", "Netherlands", { 1000, 4000 }, - { - /* Most of these 425's can also be 450's */ - { ZT_TONE_DIALTONE, "425" }, - { ZT_TONE_BUSY, "425/500,0/500" }, - { ZT_TONE_RINGTONE, "425/1000,0/4000" }, - { ZT_TONE_CONGESTION, "425/250,0/250" }, - /* XXX I'm making up the call wait tone XXX */ - { ZT_TONE_CALLWAIT, "440/300,0/10000" }, - /* XXX Assuming this is "Special Dial Tone" XXX */ - { ZT_TONE_DIALRECALL, "425/500,0/50" }, - /* XXX I'm making up the record tone XXX */ - { ZT_TONE_RECORDTONE, "1400/500,0/15000" }, - { ZT_TONE_INFO, "!950/330,!1400/330,!1800/330,0" } } - }, - { 4, "uk", "United Kingdom", { 400, 200, 400, 2000 }, - { - { ZT_TONE_DIALTONE, "350+440" }, - { ZT_TONE_BUSY, "400/375,0/375" }, - { ZT_TONE_RINGTONE, "400+450/400,0/200,400+450/400,0/2000" }, - { ZT_TONE_CONGESTION, "400/400,0/350,400/225,0/525" }, - { ZT_TONE_CALLWAIT, "440/100,0/4000" }, - { ZT_TONE_DIALRECALL, "350+440" }, - /* Not sure about the RECORDTONE */ - { ZT_TONE_RECORDTONE, "1400/500,0/10000" }, - { ZT_TONE_INFO, "950/330,1400/330,1800/330,0" } } - }, - - { -1 } -};