<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>  $(hdr(P-Asserted-Identity)[1])&nbsp; returns the second uri header.<br>However, $(hdr(P-Asserted-Identity)[1]){uri.host} didn't return the host portion of the second uri header.<br><br>thanks<br><br><br>&gt; From: ibc@aliax.net<br>&gt; To: users@lists.kamailio.org<br>&gt; Date: Thu, 15 Jan 2009 22:12:33 +0100<br>&gt; Subject: Re: [Kamailio-Users] URIs in "P-Asserted-Identity" headers<br>&gt; <br>&gt; El Jueves, 15 de Enero de 2009, Alex R.S.M escribió:<br>&gt; &gt; Hi,<br>&gt; &gt;<br>&gt; &gt; How can I extract the URIs in "P-Asserted-Identity" when there are multiple<br>&gt; &gt; "P-Asserted-Identity" headers. Variable $ai return the URI in the first<br>&gt; &gt; "P-Asserted-Identity" header.<br>&gt; <br>&gt; You should play with URI transformations, something like (not tested):<br>&gt; <br>&gt;   $(hdr(P-Asserted-Identity)[1]){uri.transport}<br>&gt;   $(hdr(P-Asserted-Identity)[1]){uri.user}<br>&gt;   $(hdr(P-Asserted-Identity)[1]){uri.host}<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Iñaki Baz Castillo<br>&gt; <br>&gt; _______________________________________________<br>&gt; Kamailio (OpenSER) - Users mailing list<br>&gt; Users@lists.kamailio.org<br>&gt; http://lists.kamailio.org/cgi-bin/mailman/listinfo/users<br>&gt; http://lists.openser-project.org/cgi-bin/mailman/listinfo/users<br><br /><hr />Windows Live™ Hotmail®: Chat. Store. Share. Do more with mail.  <a href='http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_howitworks_012009' target='_new'>See how it works.</a></body>
</html>