Thanks all,<br><br>What are the security risks when using #exec directive?<br><br><br clear="all"> <b style="color:rgb(153, 153, 153)"><span style="color:rgb(153, 153, 153)"><font size="2"><font size="2"><span style="font-family:verdana,sans-serif"><span style="font-family:trebuchet ms,sans-serif"><span style="font-family:verdana,sans-serif">José Pablo Méndez</span></span></span></font><br>
</font></span></b><br>
<br><br><div class="gmail_quote">On Tue, Apr 12, 2011 at 12:42 PM, Tilghman Lesher <span dir="ltr"><<a href="mailto:tilghman@meg.abyt.es">tilghman@meg.abyt.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Tuesday 12 April 2011 00:46:00 Tzafrir Cohen wrote:<br>
> On Mon, Apr 11, 2011 at 09:37:08PM -0600, José Pablo Méndez Soto wrote:<br>
> > Hi,<br>
> ><br>
> > Trying to create templates that allow higher compression of sip.conf,<br>
> > so for example:<br>
> ><br>
> > [internal-number](!)<br>
> > type=friend<br>
> > secret=bigsecret<br>
> > host=dynamic<br>
> > context=internal<br>
> > disallow=all<br>
> > allow=ulaw<br>
> ><br>
> > [100](internal-extensions)<br>
><br>
> [100](internal-number)<br>
><br>
> Right? Also in the following lines.<br>
><br>
> > mailbox=100@internal-extensions<br>
> > [101](internal-extensions)<br>
> > mailbox=101@internal-extensions<br>
> > [102](internal-extensions)<br>
> > mailbox=102@internal-extensions<br>
> ><br>
> > The mailbox= parameter, as many others like username=, need a unique<br>
> > value. In my case, the sip profiles are very straight forward, I<br>
> > would like to know if I can use variables of some sort like this:<br>
> ><br>
> > [internal-extensions](!)<br>
> > mailbox=$[user]@internal-extensions<br>
<br>
</div></div>To be more specific, this is not an evaluation environment, and the same<br>
tools that parse the config for sip.conf also parse the config for<br>
extensions.conf. So to do what you're suggesting would massively break<br>
existing setups. If you want better compression, might I suggest that you<br>
turn on execincludes and write your own script that will generate your<br>
configuration file. You can then do all sorts of neat things within an<br>
evaluation context, without breaking other configurations.<br>
<br>
--<br>
<font color="#888888">Tilghman<br>
</font><div><div></div><div class="h5"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>