[Asterisk-Dev] ztcfg and wctdm/wcfxo

Tzafrir Cohen tzafrir.cohen at xorcom.com
Tue Oct 11 23:47:55 MST 2005


On Tue, Oct 11, 2005 at 07:29:45PM -0500, Kevin P. Fleming wrote:
> Tzafrir Cohen wrote:
> 
> >1. Need to run ztcfg in the first place. Complicates setup unnecesarily.
> >2. What happens if you can plug in hardware without shutting down the
> >box? (hot-plug PCI, wcufb, whatever)
> 
> You run ztcfg again.

Which means rewriting zaptel.conf to fit the new configuration or
writing a new zaptel.conf just for the new span. Otherwise it will
probably fail. You also need to actually pass that information to 
userspace.

> 
> >It only works well if channel numbers don't move.
> 
> Then provide some other means of configuration determining which 
> physical device to talk to; ztcfg and chan_zap use the same channel 
> numbers, so this point makes no difference... Asterisk would have the 
> same trouble talking to the devices if the channel numbers changed as 
> ztcfg would.

Right now Asterisk will badly crash on startup if it has any unmatched
zaptel channel in its configuration. Adding a channel or changing
anything in their configuration requires a full restart of Asterisk.

So if channel numbers happen to move, you need to rewrite the
configuration. If you want to plug in hardware and have it work, you
have to generate zapata.conf in an automated manner.

There are some settings for which you can give reasonable defaults on
the top. But for some you just have to give new values at some channels:
caller ID, context.

-- 
Tzafrir Cohen     icq#16849755  +972-50-7952406
tzafrir.cohen at xorcom.com  http://www.xorcom.com



More information about the asterisk-dev mailing list