[Asterisk-Dev] patch for zaptel/zonedata.c to include a "jp" zone

timecop at pbx.mine.nu timecop at pbx.mine.nu
Tue Jul 29 00:35:11 MST 2003


i cut & pasted last 3 indicators from the u.s. zone changing dialtone
frequency as necessary
the other ones are according to an official NTT document provided by |BK|
on #asterisk.

patch zaptel, recompile, change loadzone/defaultzone=jp, run ztcfg, run
asterisk.
-------------- next part --------------
Index: zonedata.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zonedata.c,v
retrieving revision 1.5
diff -u -r1.5 zonedata.c
--- zonedata.c	23 Jun 2003 16:38:32 -0000	1.5
+++ zonedata.c	29 Jul 2003 07:58:12 -0000
@@ -121,6 +121,18 @@
 		{ ZT_TONE_INFO, "950/330,0/1000" },
 		{ ZT_TONE_STUTTER, "425/500,0/50" } },
 	},
+	{ 7,"jp","Japan", { 1000, 2000 },
+	{
+		{ ZT_TONE_DIALTONE, "400" },
+		{ ZT_TONE_BUSY, "400/500,0/500" },
+		{ ZT_TONE_RINGTONE, "400+15/1000,0/2000" },
+		{ ZT_TONE_CONGESTION, "400/500,0/500" },
+		{ ZT_TONE_CALLWAIT, "400+16/500,0/8000" },
+		{ ZT_TONE_DIALRECALL, "!400/200,!0/200,!400/200,!0/200,!400/200,!0/200,400" },
+		{ ZT_TONE_RECORDTONE, "1400/500,0/15000" },
+		{ ZT_TONE_INFO, "!950/330,!1400/330,!1800/330,0" },
+		{ ZT_TONE_STUTTER, "!400/100,!0/100,!400/100,!0/100,!400/100,!0/100,!400/100,!0/100,!400/100,!0/100,!400/100,!0/100,400" } },
+	},
 	{ -1 }		
 };
 


More information about the asterisk-dev mailing list