[Kamailio-Users] Kamalio Support for RFC 3323 " Privacy"

Alexandr Dubovikov voip at start4.info
Fri Dec 5 19:13:52 CET 2008


Iñaki Baz Castillo пишет:
> El Viernes, 5 de Diciembre de 2008, Juha Heinanen escribió:
>   
>> if caller needs privacy, then it is up to the UA to send anonymous from
>> header together with p-p-i and privacy headers.
>>     
>
> That would be so cool... Unfortunatelly I just know a SIP phone implementing 
> it: Twinkle.
>
> Other phones (as Linksys) when the user enables privacy during a call, just 
> set the From Display-Name with "Anonymous" value, while the From username 
> remains the real :(
>
>   
Yep, some UAC set "Anonymous" only in Display Name. But u can fix it 
using this code:

$var(url) = $fu;
if(is_present_hf("Privacy") && ($hdr(Privacy)=="id" || 
$hdr(Privacy)=="user") && search("(From|f):\s*\"?anonymous")) {
uac_replace_from("Anonymous","sip:anonymous at anonymous.invalid");
if(!is_present_hf("P-Asserted-Identity")) { 
append_hf("P-Asserted-Identity: <$var(url)>\r\n"); };
}


With best regards,

-- 

Alexandr Dubovikov * baron at iRC RusNet * mailto:shurik at start4.info
    AD1-UANIC      *  ICQ: 122351182  *  http://www.start4.info






More information about the Users mailing list