[asterisk-users] Templates

Tzafrir Cohen
2011-04-12T05:46:00Z

On Mon, Apr 11, 2011 at 09:37:08PM -0600, Jos? Pablo M?ndez Soto
wrote:
> Hi,
>
> Trying to create templates that allow higher compression of sip.conf, so
for
> example:
>
> [internal-number](!)
> type=friend
> secret=bigsecret
> host=dynamic
> context=internal
> disallow=all
> allow=ulaw
>
> [100](internal-extensions)

[100](internal-number)

Right? Also in the following lines.

> mailbox=100 at internal-extensions
> [101](internal-extensions)
> mailbox=101 at internal-extensions
> [102](internal-extensions)
> mailbox=102 at internal-extensions
>
> The mailbox=  parameter, as many others like username=, need a unique
value.
> In my case, the sip profiles are very straight forward, I would like to
know
> if I can use variables of some sort like this:
>
> [internal-extensions](!)
> mailbox=$[user]@internal-extensions

No.

--
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir