On 01/15/2009 11:45 PM, Alex R.S.M wrote: > > $(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. proably you need to use nameaddr.uri transformation first. $(hdr(P-Asserted-Identity)[1]{nameaddr.uri}{uri.host})
Cheers, Daniel > > thanks > > > > From: i...@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. See how > it works. > <http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_howitworks_012009> > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 -- Daniel-Constantin Mierla http://www.asipto.com _______________________________________________ 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