[asterisk-dev] automatic "ztcfg" for analog cards

Steven critch at basesys.com
Sun Jul 30 07:53:01 MST 2006


On Sun, 2006-07-30 at 10:54 +0300, Tzafrir Cohen wrote:
> Hi
> 
> I said before that ztcfg should not be necessary for analog cards...
> So here is http://bugs.digium.com/view.php?id=7613 to implement it.
> 
> This patch generlly does two things:
> 
> 1. Moves almost all the functionality of the ioctl ZT_CHANCONFIG to a
> separate function.
> 
> 2. Calls that function from the end of zt_register for each channel if
> exactly one of the following two conditions hold:
> 
> * The channel is capable of fxoks signalling
> * The channel is capable of fxsks signalling
> 
> In such a case the channel is probably an analog channel. This seems to
> also hold for TDM400P/2400P cards: slots with no modules have both
> capabilities whereas slots with a certain module have just one specific
> capability.

Those signalling choices are also available for T1 spans.

> I consider KS a very sane default. If one needs LS or GS, ztcfg can
> always be used. But for most people this would just work. You'd just
> have to set the coutry on zaptel.conf, and that can never fail.

So this shortcut is for those on the lower end of the zaptel deployment
scale and yet does nothing for the rest except put more lines of code
into the drivers that potentially could have a bug now or later.
-- 
Steven <critch at basesys.com>




More information about the asterisk-dev mailing list