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) . Surprisingly, on my first test "zap reload" segfaulted and "zap restart" managed to register a shiny new channel. (Asterisk 1.2.4) -- Tzafrir Cohen icq#16849755 +972-50-7952406 [EMAIL PROTECTED] http://www.xorcom.com _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev