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