[asterisk-dev] [svn-commits] kpfleming: branch 1.4 r3490 - /branches/1.4/

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Dec 14 19:19:59 CST 2007


Hi

On Fri, Dec 14, 2007 at 11:47:32PM -0000, SVN commits to the Digium repositories wrote:
> Author: kpfleming
> Date: Fri Dec 14 17:47:31 2007
> New Revision: 3490
> 
> URL: http://svn.digium.com/view/zaptel?view=rev&rev=3490
> Log:
> (merging dtmf-twister branch plus a few fixes)
> 
> move DTMF/MF generation into tonezone.c (libtonezone) so that it can happen at runtime instead of compile time; this allows for DTMF/MF to be different on a zone-by-zone basis without requiring a recompile of Zaptel
> 
> set DTMF 'twist' for Brazil (zone 'br') to 2dB

Wow, that looks nice :-)

One thing, though:

> Modified: branches/1.4/tonezone.h
> URL: http://svn.digium.com/view/zaptel/branches/1.4/tonezone.h?view=diff&rev=3490&r1=3489&r2=3490
> ==============================================================================
> --- branches/1.4/tonezone.h (original)
> +++ branches/1.4/tonezone.h Fri Dec 14 17:47:31 2007
> @@ -41,11 +41,16 @@
>  };
>  
>  struct tone_zone {
> -	int zone;					/* Zone number */
> +	int zone;				/* Zone number */
>  	char country[10];			/* Country code */
> -	char description[40];		/* Description */
> +	char description[40];			/* Description */
>  	int ringcadence[ZT_MAX_CADENCE];	/* Ring cadence */
>  	struct tone_zone_sound tones[ZT_TONE_MAX];
> +	int dtmf_high_level;			/* Power level of high frequency component
> +						   of DTMF, expressed in dBm0. */
> +	int dtmf_low_level;			/* Power level of low frequency component
> +						   of DTMF, expressed in dBm0. */
> +	int mf_level;				/* Power level of MF, expressed in dBm0. */
>  };
>  
>  extern struct tone_zone builtin_zones[];
> 

How can a libtonezone user (e.g.: Asterisk) know of the change?
(Can I upgrade libtonezone and not rebuild asterisk?)

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+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-dev mailing list