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:anonymous@127.0.0.1");
This function with parameter will totally replace the From header and
it will cause one way ringing.
On 2/21/06, Klaus Darilion <klaus.mailinglists(a)pernau.at> 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 <woho(a)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@127.0.0.1>;party=calling;screen=yes;privacy=full\n");
>> uac_replace_from("anonymous",
"sip:anonymous@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.