Dan Pascu writes:

 > > - in w_is_domain_local, why do you use xl_printf_s to get the domain
 > >   instead of (i would assume) faster xl_get_spec_value?
 > 
 > Mainly because I didn't know about the latter.

that is used in other modules that need access to avp value.  they use
xl_parse_spec to parse the pseudo variable in fixup and then
xl_get_spec_value when value of pseudo variable is accessed by config
functions. 

 > Feel free to replace it as 
 > long as you think it's better and it doesn't change the behavior.

i don't know if using xl_parse_spec changes behavior.  it accepts any
pseudo variable as parameter.  it may not handle string parameter, but
you can always assign a string to an avp.  also, i don't know what would
be the use case of asking in config file if a fixed string value is
local domain.

-- juha

_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to