[asterisk-dev] automatic "ztcfg" for analog cards
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Sun Jul 30 00:54:39 MST 2006
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.
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.
--
Tzafrir Cohen sip:tzafrir at local.xorcom.com
icq#16849755 iax:tzafrir at local.xorcom.com
+972-50-7952406 jabber:tzafrir at jabber.org
tzafrir.cohen at xorcom.com http://www.xorcom.com
More information about the asterisk-dev
mailing list