[Asterisk-Dev] Dynamic IAX connections
Steve Rodgers
hwstar at rodgers.sdcoxmail.com
Tue Dec 16 19:42:30 MST 2003
Thanks for the answers. Your'e correct, I'm still pretty green when it comes
to understanding the inner workings of Asterisk.
Steve.
On Tuesday 16 December 2003 07:22, Steven Critchfield wrote:
> On Mon, 2003-12-15 at 22:26, Steve Rodgers wrote:
> > So, would one way to implement this as a standalone AGI be to store the
> > destinations as entries in the database along with the permitted dial
> > locations and pass the switch URL out of an AGI as a variable to a switch
> > statement in extensions.conf??
>
> Go read the wiki to understand how switch works.
>
> > I could then write another program as a server operating on another
> > unrelated port which would add and remove destinations from the database
> > on-the-fly as they become available/unavialable correct??
>
> plain registration. Nothing more needed. If the registration expires it
> is unavailable. pretty simple.
>
> > Finally, I would write a client to be used by the termination points
> > which wish to provide or stop providing service and they would talk to
> > the server program to add or remove thier entries from the database.
>
> This really should be done in the dial plan of the endpoint. I think the
> only thing that would be needed is a way to reject a call back to the
> central switch machine without causing the call to be dropped.
>
> > Obviously, there are still a few loose ends such as knowing when a
> > particular termination point is at capacity, and cannot take any more
> > calls so that a different termination point can be tried, as well as ways
> > to synchronize databases across backup servers.
>
> Yep, you still have a lot to learn to understand the technology already
> available to you before you go trying to create new tools.
More information about the asterisk-dev
mailing list