On Thursday 12 March 2009, Daniel-Constantin Mierla wrote:
working to integrate the PV module I reached the AVPs and after a short analyze I wonder (and ask you) whether you should drop the naming scheme we have in Kamailio (integer id and string name) and stick to string names all the time. ser seems to use mostly that although looks like support for ID is still there, but I cannot see how they can be used with the naming scheme in config (e.g., is it possible to have $f.i:34 in config to refer to avp with id 34?).
Hi Daniel,
i think its a good idea to go only for string names. We use only AVP aliases all the time in our configurations, because this typed names were so cumbersome to remember and type.
Drawback is the naming scheme backward compatibility. We can treat "i:20" simply as string or throw error at startup (I prefer the second because is cleaner in long time).
I also think the second approach is better.
Cheers,
Henning