-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I think what you're looking for are configuration templates:
http://www.voip-info.org/wiki/index.php?page=Asterisk+config+template
Then you would have something like:
[grandstream]
context=default
type=friend
qualify=yes
insecure=very
host=dynamic
canreinvite=no
nat=no
[412](grandstream)
username=412
Larry Alkoff wrote:> I have over 12 sip trunks that are very similiar, like extension 412 below.
>
> Is there any way to have a single variable in [general] that contains
> the 7 lines after 'username=412'? This would reduce clutter in
sip.conf.
>
> I don't want to put these common lines in [general].
>
>
> What I have now repeated 12x:
> [412]
> username=412
> context=default
> type=friend
> qualify=yes
> insecure=very
> host=dynamic
> canreinvite=no
> nat=no
>
> I'd like something in [general] like:
> grandstream={
> context=default
> type=friend
> qualify=yes
> insecure=very
> host=dynamic
> canreinvite=no
> nat=no }
>
> This would allow me to write 12 sip extensions each something like:
>
> [412]
> username=412
> include=${grandstream}
>
> Is there any syntax that would do this?
>
> Larry
>
- --
"What most profoundly divides two men is a different sense and degree of
cleanliness. What help is all honesty and mutual utility, what help is
all the good will for each other: in the end the fact remains-they can't
stand each other?s smell!"
- - Nietzsche
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFr+IB2QVs8jsa1mQRApFZAJ41txRH4QFOoiY1p3Xq7fYdPKOURACaAmjN
mICuj/AHVRsM7uPM1zrkABE=fzW2
-----END PGP SIGNATURE-----