$(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@aliax.net To: users@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@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_howi...