On Sep 18, 2003 at 09:37, Jakob Schlyter <jakob(a)rfc.se> wrote:
hi,
I'm trying to get the Remote-Party-ID stuff to play with anonymous calls.
here is a snipplet of what I'm trying to do:
modparam("auth", "rpid_suffix",
";party=calling;id-type=subscriber;screen=yes")
...
if (is_present_hf("Remote-Party-ID")) {
xlog("L_INFO", "Removing existing Remote-Party-ID from %fu\n");
remove_hf("Remote-Party-ID");
};
append_rpid_hf();
if (search("From:.*Anonymous")) {
search_append("Remote-Party-ID:.*;screen=yes", ";privacy=on");
} else {
search_append("Remote-Party-ID:.*;screen=yes", ";privacy=off");
};
however, this does not seem to work. is the rpid really added to the
message at when requested or actually later (at transmit) ?
At transmit. Amost all the stuff that gets added will show up only at
transmit time (you will see the original message, one exception is uri
processing -- you'll always see the modified uri).
The ideea is to keep the original message and a set of diffs to it
(struct lump). This "diffs" will be applied only on transmit. This will
speed things up quite a bit.
Andrei