[asterisk-users] limitation on number of contexts in extensions.conf
Kamlesh Kumar
kamlesh_kmr at hotmail.com
Mon Jul 29 01:59:57 CDT 2013
but it seems that value of variable defined in external file is not getting populated during the dialplan execution.
My example:
extract from one external file in /etc/asterisk/abc.conf
PROV=1.2.3.4
[abc]
exten => _1X.,1,Dial(SIP/${PROV}/${EXTEN})
and extensions.conf contains:
[globals]
#include "abc.conf"
if call is made by the user of abc context, variable ${PROV} is having empty value. Please suggest where is the problem.
Thanks,
Kamlesh
> From: asterisk_list at earthshod.co.uk
> To: asterisk-users at lists.digium.com
> Date: Fri, 26 Jul 2013 11:12:28 +0100
> Subject: Re: [asterisk-users] limitation on number of contexts in extensions.conf
>
> 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.
>
> -
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130729/8f4b4a8c/attachment.htm>
More information about the asterisk-users
mailing list