[asterisk-users] zonedata.c

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sun May 13 00:58:44 MST 2007


On Sat, May 12, 2007 at 08:27:23PM -0500, Jadrien Wauthier wrote:
> Hi,
> 
> Could anyone tell me how to read the values in the "zonedata.c" file?  
> I am looking at the "zt_tone_ringtone" field mainly.

  { ZT_TONE_RINGTONE, "425/1000,0/4000" }

means a tone of frequency 425 Hz for 1000 ms and then silense (0 Hz) for 
4000 ms.

  { ZT_TONE_RINGTONE, "400+450/400,0/200,400+450/400,0/2000" }

Similar notation. Though in this case the "frequency" is a bit more complex: 
400+450 mean means a sound composed of a 400Hz and 450Hz frequencies.
(right?)

  { ZT_TONE_INFO, "!950/330,!1440/330,!1800/330,0/1000" }

The '!' tells that those sounds should not be repeated on the second 
time this sound is played.

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrir at jabber.org
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir


More information about the asterisk-users mailing list