Hi,

if want to replace only the display, set the second param to empty string. Also do not forget to set the from_restore_mode to "auto" - see the doc:
   http://openser.org/docs/modules/1.0.x/uac.html#AEN75

regards,
bogdan

unplug wrote:

Thanks!  I have tested it. That function works fine.

However, the setting doesn't work for me.  I noticed that there is a
problem after executing the function
uac_replace_from("anonymous", "sip:[EMAIL PROTECTED]");
This function with parameter will totally replace the From header and
it will cause one way ringing.


On 2/21/06, Klaus Darilion <[EMAIL PROTECTED]> wrote:
No, it works in all versions of (open)ser. It was only forgotten to
document it.

regards
klaus

unplug wrote:
How about the setting in version 1.0.0?  As found that remove_hf
function is only available in devel version.

unplug

For the remove_hf

On 2/21/06, Wolfgang Hottgenroth <[EMAIL PROTECTED]> wrote:
I've done it this way:

if (search("^Remote-Party-ID:.*<sip:.*?>.*?;privacy=full.*?")) {
  xlog("L_NOTICE", "*** full privacy requested\n");
  remove_hf("Remote-Party-ID");
  append_hf("Remote-Party-ID:\
<sip:[EMAIL PROTECTED]>;party=calling;screen=yes;privacy=full\n");
  uac_replace_from("anonymous", "sip:[EMAIL PROTECTED]");

  avp_printf("contacthelp", "$hdr(contact)");
  # xlog("L_NOTICE", "*** contact: $avp(contacthelp)\n");
  avp_subst("contacthelp", "/<sip:(.*)@(.*)>/<sip:\2>/");
  # xlog("L_NOTICE", "*** contact substituted: $avp(contacthelp)\n");
  remove_hf("Contact");
  avp_pushto("$Contact", "s:contacthelp");
}

More interesting than disabling the callees phone from displaying the
number is to remove it completely from the SIP messages, since the
black-hat callee could run tcpdump in front of his phone.


What do other ones think about my approach? In my setup it works fine,
as it seems.

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to