[Asterisk-Dev] RFC: simplifying sip configuration sections

Kevin P. Fleming kpfleming at digium.com
Wed Dec 7 11:24:10 MST 2005


Luigi Rizzo wrote:

> I would propose shortening them in a way similar to the one used
> for 'register= ...' i.e. put in a single line most of the info, and
> use sensible defaults. With my proposal the above would become
> 
>     [provider18]
>     peer= 1234567:mysecretkey at asterisk.myprovider.org/8901234 at from-provider18

This would be quite ugly, and nearly impossible to use with Realtime.

Instead, you can use 'templates' that we already support. Examples are 
in extensions.conf.sample. I use them to good effect to manage hundreds 
of SIP peers while only having 2-3 lines in each one for the parts that 
differ.



More information about the asterisk-dev mailing list