[OpenSIPS-Users] How to change P-Preferred-Identity

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Dec 20 16:20:09 CET 2011


Hi Nick,

You can simply remove the header and add a new one preserving the URI 
part, like :

remove_hf("P-Preferred-Identity");
append_hf('P-Preferred-Identity: "my_display_name" 
<$(hdr(P-Preferred-Identity){nameaddr.uri})>\r\n');

Regards,
Bogdan

On 12/20/2011 11:26 AM, Nick wrote:
> Hello
>
> I want to change P-Preferred-Identity with header.
> Now, My P-Preferred-Identity is <sip:2 at xxx.net>
> I want to change display name.
>
> Can everyone give me a suggestion?
> Thanks
>
> Nick
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
OpenSIPS solutions and "know-how"




More information about the Users mailing list