[Asterisk-Users] Largest working config files?
Kevin Walsh
kevin at cursor.biz
Mon Oct 24 09:19:37 MST 2005
Steve Davies [davies147 at gmail.com] wrote:
> I hope this is not a FAQ - I have not been able to find it if it is
> covered already...
>
> I have a dial-plan on my asterisk system that is becoming potentially
> quite large and complex - Of the order of 12 lines of dialplan per
> extension number. Most of this is in order to record suitable CDR
> data, access voicemail, and play "polite" goodbye messages etc. The
> operation of each extension can potentially be unique, making a common
> [extensions-generic] almost impossible to write.
>
Have you looked into creating a couple of macros to reuse your code?
[local-extensions]
exten => 2100,1,Macro(call-local,${EXTEN},cursor,${OPERATOR_EXTEN})
exten => 2101,1,Macro(call-local,${EXTEN},cursor,${OPERATOR_EXTEN})
exten => 2102,1,Macro(call-local,${EXTEN},cursor,${OPERATOR_EXTEN})
exten => 2103,1,Macro(call-local,${EXTEN},cursor,${OPERATOR_EXTEN})
...
As you can see, I only need one line per extension; All of the call
logic is in the [macro-call-local] macro. The maintenance is a lot
simpler too, of course.
>
> Does anybody have experience of how big an extensions.conf can get
> before problems start occuring? If anyone has experienced problems, what
> sort of things happen?
>
I have no idea. Here's our dialplan line count (quite small because of
the macros):
218 extensions/incoming.conf
354 extensions/internal.conf
225 extensions/macros.conf
471 extensions/outgoing.conf
151 extensions/routes.conf
1419 total
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the asterisk-users
mailing list