[Asterisk-Dev] I need help to make a simple iax switch/proxy
Steven
critch at basesys.com
Thu Sep 8 07:24:13 MST 2005
On Thu, 2005-09-08 at 13:11 +0200, Goldenear wrote:
> Steven wrote :
>
> >Since most of the features you mention are built as modules, you can
> >just not load them. Also with some Makefile editing, you can go in and
> >eliminate a lot of the compiled in portions that you don't need. It
> >might even be possible to do everything you need in just the makefile.
> >
> >If you can do it in the makefile, I'd suggest making a new target for
> >the router. This would allow you to merge the changes back upstream if
> >you like.
> >
> >
> >
> I've first browsed the asterisk source code before posting here... Some
> part of the asterisk code may indeed be useful (as least as a
> reference), but I don't think I can make asterisk a simple iax
> proxy/switch just by editing the makefile...
Correct, but you may find there is no need to go that simple.
> Asterisk is really made to
> be a PBX and it deeply works like this. For example, the iax part of it
> seems to need a zaptel module to work properly (at least the dummy one).
> Indeed, Asterisk show me error/warning message when I run it without
> ztdummy loaded.
Trunking needs timing, but the rest of IAX shouldn't. There are some
other parts of asterisk that would want timing, but you would probably
be removing these for your small footprint.
> In my projet, I only need to use the "net part" of iax,
> no audio/media management, only pure point to point routing/transfer. I
> even doesn't need iax trunk function. That's why I don't think asterisk
> can be build as a simple iax proxy/switch without pretty heavy
> modification of the source code. Isn't the project I need help for
> simple enough to be started from scratch (with the use of libiax) ?
Well think about what you will have to implement.
1) registration
2) routing
3) config files
4) linking into libiax
Asterisk already has all the above with exception of libiax. I still
feel that by gutting large chunks of the makefile, you will find that
you can strip asterisk down to the bare minimum amount needed to get it
simplified to use on your router.
--
Steven Critchfield
critch at basesys.com
KI4KTY
More information about the asterisk-dev
mailing list