Version 0.3.0 from FTP
[asterisk/asterisk.git] / zonedata.c
1 /*
2  * BSD Telephony Of Mexico "Tormenta" Tone Zone Support 2/22/01
3  * 
4  * Working with the "Tormenta ISA" Card 
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under thet erms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  * 
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU Lesser General Public License for more details.
15  * 
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
19  *
20  * Primary Author: Mark Spencer <markster@linux-support.net>
21  *
22  * This information from ITU E.180 Supplement 2.
23  * UK information from BT SIN 350 Issue 1.1
24  */
25 #include <asterisk/zonedata.h>
26
27 struct tone_zone builtin_zones[]  =
28 {
29         { 0, "us", "United States / North America", { 2000, 4000 }, 
30         {
31                 { ZT_TONE_DIALTONE, "350+440" },
32                 { ZT_TONE_BUSY, "480+620/500,0/500" },
33                 { ZT_TONE_RINGTONE, "440+480/2000,0/4000" },
34                 { ZT_TONE_CONGESTION, "480+620/250,0/250" },
35                 { ZT_TONE_CALLWAIT, "440/300,0/10000" },
36                 { ZT_TONE_DIALRECALL, "!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440" },
37                 { ZT_TONE_RECORDTONE, "1400/500,0/15000" },
38                 { ZT_TONE_INFO, "!950/330,!1400/330,!1800/330,0" } }
39         },
40         { 1, "au", "Australia", {  400, 200, 400, 2000 },
41         {
42                 /* XXX Dialtone: Should be modulated, not added XXX */
43                 { ZT_TONE_DIALTONE, "425+25" },         
44                 { ZT_TONE_BUSY, "400/375,0/375" },
45                 { ZT_TONE_RINGTONE, "400+17/400,0/200,400+17/400,0/2000" },
46                 /* XXX Congestion: Should reduce by 10 db every other cadence XXX */
47                 { ZT_TONE_CONGESTION, "400/375,0/375" }, 
48                 { ZT_TONE_CALLWAIT, "425/100,0/100,525/100,0/4700" },
49                 { ZT_TONE_DIALRECALL, "!425+25/100!0/100,!425+25/100,!0/100,!425+25/100,!0/100,425+25" },
50                 { ZT_TONE_RECORDTONE, "1400/425,0/14525" },
51                 { ZT_TONE_INFO, "400/2500,0/500" } }
52         },
53         { 2, "fr", "France", { 1500, 3500 },
54         {
55                 /* Dialtone can also be 440+330 */
56                 { ZT_TONE_DIALTONE, "440" },
57                 { ZT_TONE_BUSY, "440/500,0/500" },
58                 { ZT_TONE_RINGTONE, "440/1500,0/3500" },
59                 /* XXX I'm making up the congestion tone XXX */
60                 { ZT_TONE_CONGESTION, "440/250,0/250" },
61                 /* XXX I'm making up the call wait tone too XXX */
62                 { ZT_TONE_CALLWAIT, "440/300,0/10000" },
63                 /* XXX I'm making up dial recall XXX */
64                 { ZT_TONE_DIALRECALL, "!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440" },
65                 /* XXX I'm making up the record tone XXX */
66                 { ZT_TONE_RECORDTONE, "1400/500,0/15000" },
67                 { ZT_TONE_INFO, "!950/330,!1400/330,!1800/330,0" } }
68         },
69         { 3, "nl", "Netherlands", { 1000, 4000 },
70         {
71                 /* Most of these 425's can also be 450's */
72                 { ZT_TONE_DIALTONE, "425" },
73                 { ZT_TONE_BUSY, "425/500,0/500" },
74                 { ZT_TONE_RINGTONE, "425/1000,0/4000" },
75                 { ZT_TONE_CONGESTION, "425/250,0/250" },
76                 /* XXX I'm making up the call wait tone XXX */
77                 { ZT_TONE_CALLWAIT, "440/300,0/10000" },
78                 /* XXX Assuming this is "Special Dial Tone" XXX */
79                 { ZT_TONE_DIALRECALL, "425/500,0/50" },
80                 /* XXX I'm making up the record tone XXX */
81                 { ZT_TONE_RECORDTONE, "1400/500,0/15000" },
82                 { ZT_TONE_INFO, "!950/330,!1400/330,!1800/330,0" } }
83         },
84         { 4, "uk", "United Kingdom", { 400, 200, 400, 2000 },
85         {
86                 { ZT_TONE_DIALTONE, "350+440" },
87                 { ZT_TONE_BUSY, "400/375,0/375" },
88                 { ZT_TONE_RINGTONE, "400+450/400,0/200,400+450/400,0/2000" },
89                 { ZT_TONE_CONGESTION, "400/400,0/350,400/225,0/525" },
90                 { ZT_TONE_CALLWAIT, "440/100,0/4000" },
91                 { ZT_TONE_DIALRECALL, "350+440" },
92                 /* Not sure about the RECORDTONE */
93                 { ZT_TONE_RECORDTONE, "1400/500,0/10000" },
94                 { ZT_TONE_INFO, "950/330,1400/330,1800/330,0" } }
95         },
96                 
97         { -1 }          
98 };