[asterisk-dev] more dynamic zaptel

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Fri Mar 3 08:30:08 MST 2006


On Friday 03 March 2006 09:03, Tzafrir Cohen wrote:
> On Tue, Feb 21, 2006 at 01:09:23PM -0600, Kevin P. Fleming wrote:
> > Tzafrir Cohen wrote:
> > > Is a span a better object for such actions or does chan_zap
> > > (mainly/exclusivly) deals with channels?
> >
> > chan_zap does not really deal with Zaptel spans at all, just
> > channels (and groups of channels).
> >
> > Changing chan_zap to handle channel addition/removal will be
> > non-trivial, though; even handling non-contiguous channel
> > numbering is less than optimal right now (everything is done
> > using arrays).
>
> Your post has put me off for a while. Then I took a look at the
> code and noticed that it actually uses linked lists mostly.
>
> So I decided to just feel lucky and add two CLI commands: 'zap
> reload' to call setup_zap(1) and 'zap restart' to call setup_zap(0)

How is your first command different than simply calling 'reload
chan_zap.so' ?

-- 
Tilghman



More information about the asterisk-dev mailing list