[asterisk-users] Templates

José Pablo Méndez Soto auxcri at gmail.com
Mon Apr 11 22:37:08 CDT 2011


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)
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

[user](internal-extensions)
--> automatically drags the mailbox= parameter filling it with the value
between square brackets by virtue of the statement in the template


Is this possible?



 *José Pablo Méndez
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110411/8b8f6299/attachment.htm>


More information about the asterisk-users mailing list