On Mon, 2007-09-10 at 17:10 +0200, Martin Hoffmann wrote:
Michal Matyska wrote:
append_to_reply uses the same formatting as xlog does, so that's the
reason for putting the % sign.
Appart from the fact that I don't see the point in having double
prefixes (the $ in itself should be enough), does that mean I can do
well due to the fact xlog was using % to prefix it's entities and %$ has
evolved from %{avp_name} when selects were introduced %@ (what
surprise), the strange dual prefix was left.
append_to_reply ("P-Asserted-Identity:
%$actual_identity")
yes
Now a possibly stupid question: Is there some
documentation for this?
Stupid answer - in the docs which does not exist. Yes trying to keep
uptodate docs on wiki might help us to get it in pace with the code.
OK, I know README still shows %{avp_name}.
Can I embedd an attribute or select into the middle of
the string? If
so, how?
%| or %<single space char> can do the end of select/avp name mark. e.g.
append_to_reply("X-hdr: xxx%@contact.uri.user%|yyy@%@contact.uri.host");
Contact: abc(a)1.2.3.4 -> X-hdr: xxxabcyyy(a)1.2.3.4
Oh, and isn't pretty much all of the stuff in xlog
obsolete since we are
having selects for all of it now?
Yes... the idea was to allow using the $ and @ inside-string formating
whenever you can use string. Was not done in time as it is more complex,
and there is code-freeze now (for quite a long time) to let ser 2.0 get
out into the masses. So maybe 2.1, maybe 3.0 (as it will change the
ser.cfg's again).
Michal