[asterisk-dev] more dynamic zaptel
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Thu Apr 13 06:56:46 MST 2006
On Fri, Mar 03, 2006 at 05:03:19PM +0200, 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) .
>
> Surprisingly, on my first test "zap reload" segfaulted and "zap restart"
> managed to register a shiny new channel.
Sorry for the delay. Had other things to work on. Anyway:
http://bugs.digium.com/view.php?id=6955 includes this one. It also
destroys existing channels before restarting. Not perfect but still
beats having to restart asterisk.
So where does this break?
--
Tzafrir Cohen sip:tzafrir at local.xorcom.com
icq#16849755 iax:tzafrir at local.xorcom.com
+972-50-7952406
tzafrir.cohen at xorcom.com http://www.xorcom.com
More information about the asterisk-dev
mailing list