[OpenSIPS-Users] retrieving a parameter from one of two the same SIP headers

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Dec 23 20:47:40 CET 2011


Hi Andreas,

$(hdr(P-Asserted-Identity)[1]{nameaddr.uri}{uri.param,phone-context})

Relevant links are:
       SIP headers variable - 
http://www.opensips.org/Resources/DocsCoreVar17#toc93
       name addr transformation - 
http://www.opensips.org/Resources/DocsCoreTran17#toc49
       uri transformation - 
http://www.opensips.org/Resources/DocsCoreTran17#toc23

Regards,
Bogdan


On 12/23/2011 01:58 PM, Andreas Sikkema wrote:
> Hi,
>
> My question is twofold. Suppose I have the following two
> P-Asserted-Identity headers in one INVITE:
>
> P-Asserted-Identity: "My Name"<sip:0123456789 at 192.168.1.1:5060>
> P-Asserted-Identity:<tel:0123456789;ext=200;phone-context=Foo>
>
> How do I get retrieve the phone-context parameter from the second PAID header?
>


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




More information about the Users mailing list