[Kamailio-Devel] avp naming

Juha Heinanen jh at tutpro.com
Fri Mar 13 21:47:39 CET 2009


Daniel-Constantin Mierla writes:

 > not using them as well, I'm using M4.

i too have been using M4 for avp names.  the advantage over string names
is that if i mistype a M4 macro AVP name, parsing of kamailio.cfg fails.
if i mistype string avp name, it goes unnoticed and can lead to
difficult to find bug.

so perhaps there should be a possibility to declare avps so that
undeclared would make parsing to fail.

-- juha



More information about the Devel mailing list