[Users] caller number removal

unplug maillisting at gmail.com
Tue Feb 21 05:38:02 CET 2006


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 <woho at hottis.de> 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:anonymous at 127.0.0.1>;party=calling;screen=yes;privacy=full\n");
>    uac_replace_from("anonymous", "sip:anonymous at 127.0.0.1");
>
>    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.
>
>
> Wolfgang
>
>
>
>
>
>
> unplug wrote:
> > In the situation below, a call made from PSTN to openser.
> >
> > PSTN -----> openser ---------> UA1
> >
> > How can I remove the caller such that UA1 can't show the caller number
> > in her display?
> >
> > _______________________________________________
> > Users mailing list
> > Users at openser.org
> > http://openser.org/cgi-bin/mailman/listinfo/users
>
>




More information about the Users mailing list