<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>but it seems that value of variable defined in external file is not getting populated during the dialplan execution.<br><br>My example: <br><br>extract from one external file in /etc/asterisk/abc.conf<br><br>PROV=1.2.3.4<br>[abc]<br>exten => _1X.,1,Dial(SIP/${PROV}/${EXTEN})<br><br>and extensions.conf contains:<br>[globals]<br>#include "abc.conf"<br><br>if call is made by the user of abc context, variable ${PROV} is having empty value. Please suggest where is the problem.<br><br>Thanks,<br>Kamlesh<br><br><div>> From: asterisk_list@earthshod.co.uk<br>> To: asterisk-users@lists.digium.com<br>> Date: Fri, 26 Jul 2013 11:12:28 +0100<br>> Subject: Re: [asterisk-users] limitation on number of contexts in        extensions.conf<br>> <br>> On Friday 26 July 2013, Kamlesh Kumar wrote:<br>> > Thank you Carlos,<br>> > <br>> > you were right, there was one empty file among all included files which<br>> > were causing this problem.<br>> > <br>> > Couple of more queries:<br>> > <br>> > Will system performance be affected if there are 20k dialplan<br>> > entries(including all external files and contexts) in extensions.conf?<br>> <br>> Not by as much as you think, because the dialplan is compiled into an <br>> intermediate form when Asterisk starts (and again when you execute `dialplan <br>> reload`) -- it doesn't have to parse the whole text file for every call.<br>> <br>> > Can we define variable in external file, and include that external file in<br>> > extensions.conf and then use that variable in dialplan?<br>> <br>> Yes (and that's a sensible way of doing it anyway). Just remember, a <br>> variable won't have a value until the include statement which includes the file <br>> with the line that defines it is parsed.<br>> <br>> <br>> -- <br>> AJS<br>> <br>> Answers come *after* questions.<br>> <br>> -<br>> _____________________________________________________________________<br>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>> New to Asterisk? Join us for a live introductory webinar every Thurs:<br>> http://www.asterisk.org/hello<br>> <br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> http://lists.digium.com/mailman/listinfo/asterisk-users<br></div>                                            </div></body>
</html>