Hi, I've been digging around /zaptel/zonedata.c file which has the different frequency tones per country, and I would like to know the purpose of the following fields in the struct data defined there. For example in US data we have: { 0, "us", "United States / North America", { 2000, 4000 }, { ZT_TONE_INFO, "!950/330,!1400/330,!1800/330,0" }, { ZT_TONE_STUTTER, "!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,!350+440/ 100,!0/100,!350+440/100,!0/100,350+440" } }, }, The others are self explained (Congestion, busy, ringtone, etc). Thanks in advance. Luis Palma
Peter Svensson
2004-Nov-01 12:01 UTC
[Asterisk-Users] field description /zaptel/zonedata.c
On Mon, 1 Nov 2004, Lu?s Palma wrote:> I've been digging around /zaptel/zonedata.c file which has the > different frequency tones per country, and I would like to know the > purpose of the following fields in the struct data defined there. > > For example in US data we have: > { 0, "us", "United States / North America", { 2000, 4000 },^zone-number ^ ^ ring cadence ( 2000 ms ring, 4000 ms pause, repeat )> > { ZT_TONE_INFO, "!950/330,!1400/330,!1800/330,0" },"No such number" three-tone message. Used if an invalid extension is entered, I think.> { ZT_TONE_STUTTER, > "!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,!350+440/ > 100,!0/100,!350+440/100,!0/100,350+440" } },This is used for when you have messages waiting. Peter
Luís Palma
2004-Nov-02 17:03 UTC
Fwd: [Asterisk-Users] field description /zaptel/zonedata.c
Thanks, for the info. How do I include a patch in asterisk for my country (Portugal) in zonedata.c? Here are E.180 Recommendation 2 settings for my country. Tone Frequency (ITU E.180 supplement 2) - Portugal Type Frequency Cadence DIAL TONE 400//425 CONTINUOUS SPECIAL DIAL TONE 425 1.0 ? 0.2 RINGING TONE 400//425 1.0 ? 5.0 BUSY TONE 400//425 0.5 ? 0.5 CONGESTION TONE 425 0.2 ? 0.2 NUMBER UNOBTAINABLE TONE 400//425 27) 0.2 ? 0.2 WAITING TONE 425 0.2 ? 0.2 ? 0.2 ? 5.0 PAYPHONE RECOGNITION TONE 1477/941 0.2 ? 0.2 ? 0.2 ? 2.0 Analogue exchanges: 400 Hz; digital exchanges: 425 Hz As default I think we should use 425 Hz (most of exchanges are digital). Other question, is there any policy on adding country setting as a per needed basis on asterisk files zonedata.c? Regards Lu?s Palma