[Users] caller number removal
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Tue Feb 21 12:22:21 CET 2006
Hi,
here is a sample:
# replace only display and do not touch uri
uac_replace_from("batman","");
regards,
bogdan
unplug wrote:
>Hi,
>
> Thanks for the hint. I have tried it and it has no effect when a
>call come from the other network. Instead, I need to remove the From
>and reconstruct the From header as below.
> remove_hf("From");
> avp_pushto("$From", "s:fromheader");
>
>Rgds,
>unplug
>
>On 2/21/06, Bogdan-Andrei Iancu <bogdan at voice-system.ro> wrote:
>
>
>>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:anonymous at 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 at 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 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.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>_______________________________________________
>>>Users mailing list
>>>Users at openser.org
>>>http://openser.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>
>>>
>>>
>>
>>
More information about the Users
mailing list