[Serusers] need help with AVP module (print_sattr())
Greger V. Teigre
greger at teigre.com
Mon Dec 4 21:28:59 CET 2006
I think you need to log to stderr. Also, you may need to increase the
debug level (but I wouldn't think so).
g-)
Kostas Marneris wrote:
> Hello,
> I have the following config :
>
> loadmodule "/opt/ser-0.9.6/lib/ser/modules/avp.so"
>
> and in main route block, after the first Sanity Check Section :
>
> uri2attr("ruri");
> print_sattr("ruri");
> #
> if (is_sattr_set("ruri")) {
> xlog("L_NOTICE", "SET");
> print_sattr("ruri");
> } else {
> xlog("L_NOTICE", "NOT SET");
> };
>
> It seems that 'print_sattr()' simply does not work.
> On first 'print_sattr("ruri")' command I have nothing at my syslog.
> On 'if' block, the function 'is_sattr_set()' works ok,
> I get the "SET" message @ syslog, but not the 'ruri' attribute.
>
>
> Am I miss something ?
>
> thanks for any help,
> Kostas
>
>
More information about the sr-users
mailing list