[Kamailio-Devel] Syntax for mi commands

Daniel-Constantin Mierla miconda at gmail.com
Fri Jan 30 16:39:43 CET 2009


Hello,

On 01/30/2009 04:21 PM, Iñaki Baz Castillo wrote:
> 2009/1/30 Henning Westerholt <henning.westerholt at 1und1.de>:
>   
>> On Friday 30 January 2009, Iñaki Baz Castillo wrote:
>>     
>>> 2009/1/30 Henning Westerholt <henning.westerholt at 1und1.de>:
>>>       
>>>> hm, this would lead to long module names in certain cases, e.g. for
>>>> carrierroute - "carrierroute_reload_routes". There was a reason i used
>>>> 'cr_' as prefix. :-) And for the case of usrloc, i think that using 'ul'
>>>> is ok, instead of renaming all commands.
>>>>         
>>> There will be more and more modules. The MI command "cr_do_something"
>>> is part of "carrierroute" module or part of a new module called
>>> "codec_replace"? :)
>>>       
>> Hi Iñaki,
>>
>> valid argument. But what is then with modules that already uses a abbreviation
>> as their name, as e.g. 'lcr'? :-)
>>     
>
> Also good argument :)
> IMHO naming a module with an abbreviation (rr, lcr, tm, sl...) is not
> a good idea. Perhaps core and very important modules (tm, sl) can have
> this short name, but other modules that provide logic features rather
> than SIP core features, should (IMHO) be named with no abbreviation.
>   
probably this is going to be a political/religious debate what are 
V.I.Modules. I think it is ok if, based on first come first served, each 
modules takes a prefix and sticks to it. For example, dispatcher uses 
ds_, carrierroute cr_, usrloc ul_ ...

I think good naming of the module is important -- it should say as much 
as possible about provided functionality. But using module name as 
prefix might be too long some times.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the Devel mailing list