[asterisk-users] limitation on number of contexts in extensions.conf
A J Stiles
asterisk_list at earthshod.co.uk
Fri Jul 26 05:12:28 CDT 2013
On Friday 26 July 2013, Kamlesh Kumar wrote:
> Thank you Carlos,
>
> you were right, there was one empty file among all included files which
> were causing this problem.
>
> Couple of more queries:
>
> Will system performance be affected if there are 20k dialplan
> entries(including all external files and contexts) in extensions.conf?
Not by as much as you think, because the dialplan is compiled into an
intermediate form when Asterisk starts (and again when you execute `dialplan
reload`) -- it doesn't have to parse the whole text file for every call.
> Can we define variable in external file, and include that external file in
> extensions.conf and then use that variable in dialplan?
Yes (and that's a sensible way of doing it anyway). Just remember, a
variable won't have a value until the include statement which includes the file
with the line that defines it is parsed.
--
AJS
Answers come *after* questions.
More information about the asterisk-users
mailing list