[Serusers] header matching

Jakob Schlyter jakob at rfc.se
Thu Sep 18 09:37:54 CEST 2003


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) ?


	jakob




More information about the sr-users mailing list