[Kamailio-Users] URIs in "P-Asserted-Identity" headers

Alex R.S.M alex_rsm at hotmail.com
Thu Jan 15 22:45:41 CET 2009



  $(hdr(P-Asserted-Identity)[1])  returns the second uri header.
However, $(hdr(P-Asserted-Identity)[1]){uri.host} didn't return the host portion of the second uri header.

thanks


> From: ibc at aliax.net
> To: users at lists.kamailio.org
> Date: Thu, 15 Jan 2009 22:12:33 +0100
> Subject: Re: [Kamailio-Users] URIs in "P-Asserted-Identity" headers
> 
> El Jueves, 15 de Enero de 2009, Alex R.S.M escribió:
> > Hi,
> >
> > How can I extract the URIs in "P-Asserted-Identity" when there are multiple
> > "P-Asserted-Identity" headers. Variable $ai return the URI in the first
> > "P-Asserted-Identity" header.
> 
> You should play with URI transformations, something like (not tested):
> 
>   $(hdr(P-Asserted-Identity)[1]){uri.transport}
>   $(hdr(P-Asserted-Identity)[1]){uri.user}
>   $(hdr(P-Asserted-Identity)[1]){uri.host}
> 
> 
> 
> 
> -- 
> Iñaki Baz Castillo
> 
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

_________________________________________________________________
Windows Live™ Hotmail®: Chat. Store. Share. Do more with mail. 
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_howitworks_012009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20090115/68ab5cef/attachment.htm 


More information about the Users mailing list