[Devel] CVS commitlog: sip-server/modules/domain README domain.c
domain_mod.c sip-server/modules/domain/doc domain_user.sgml
Juha Heinanen
jh at tutpro.com
Sat Sep 30 22:04:48 CEST 2006
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
More information about the Devel
mailing list