[asterisk-users] Re: Realtime in the Real World

Benny Amorsen benny+usenet at amorsen.dk
Mon Oct 30 09:15:43 MST 2006


>>>>> "DG" == Douglas Garstang <dgarstang at oneeighty.com> writes:

DG> If you include 10 contexts, and each one of those has a realtime
DG> switch, than that's 10 times that Asterisk has to query the
DG> database, for a single call.

Not that I would make extensions.conf realtime, but...

One trick to avoid includes is to use a Goto multiplexer instead...
Like:

_2XX,1,Goto(internal,$EXTEN,1)

_18005551XXX,1,Goto(movienumbers,${EXTEN},1)

and so on and so forth.

That way you're down to two queries instead of ten.

/Benny




More information about the asterisk-users mailing list