[asterisk-dev] Defining new section type in sip.conf - question about syntax

John Todd jtodd at digium.com
Wed Apr 15 16:17:41 CDT 2009


On Apr 14, 2009, at 2:47 PM, Olle E. Johansson wrote:

> [snip]
> 1. Using a prefix
> =============
>
> We have a way of defining context/section prefixes, used in the  
> dialplan
>
> [macro_<something>]
>
> I could define
>
> [domain_<someting>]
>
> like
>
> [domain_edvina.net]
>
> 2. Using type=
> ============
>
> [edvina.net]
> type=domain
>
> [snip
> /O
>

I know there have been a few answers on this already, and I'll throw  
my $.002 in (to make fun of a thread in asteris-biz) anyway...

I'm not in favor of overloading the names to have separate meanings by  
construction of the name itself in a place where the name is otherwise  
free-form.  XML starts to look appealing after staring at these  
problems for too long.

I'd like to see either a separate config file (not my favorite idea)  
or type= or perhaps even some separate value definition.  (domain=  
would be good, but we've already used that for other purposes, sort-of.)

JT

---
John Todd                       email:jtodd at digium.com
Digium, Inc. | Asterisk Open Source Community Director
445 Jan Davis Drive NW -  Huntsville AL 35806  -   USA
direct: +1-256-428-6083         http://www.digium.com/






More information about the asterisk-dev mailing list