<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Then, I am wondering how we can check the following condition:<div><br></div><div>route[AUTH] {</div><div><span style="font-size: 12pt;">....</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="background-color: rgb(255, 255, 0);">if (from_uri!=myself && uri!=myself)</span></div><div>{</div><div><br></div><div>}</div><div><br></div><div>Thanks,</div><div>Al<br><br><div>> Date: Thu, 28 May 2015 16:26:59 +0200<br>> From: abalashov@evaristesys.com<br>> To: sr-users@lists.sip-router.org<br>> Subject: Re: [SR-Users] log the value of "from_uri" and "myself"<br>> <br>> That's not possible, as these classical composite variables cannot be interpolated into strings.<br>> ý<br>> But if you want to log ýthe From URI, you can log $fu. <br>> <br>> 'myself' expands into a variable-length list of bound interface addresses and DNS names, so you can't log that. But you can log the address on which the message was received, i.e. $Ri. <br>> <br>> ýMore generally, take a look at the built-in PV list:<br>> ý<br>> ýhttp://www.kamailio.org/wiki/cookbooks/4.2.x/pseudovariables<br>> ý<br>> All these can be logged.ý<br>> <br>> --<br>> Alex Balashov | Principal | Evariste Systems LLC<br>> 303 Perimeter Center North, Suite 300<br>> Atlanta, GA 30346<br>> United States<br>> <br>> Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)<br>> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/<br>> <br>> Sent from my BlackBerry.<br>>   Original Message  <br>> From: Al S<br>> Sent: Thursday, May 28, 2015 16:23<br>> To: sr-users@lists.sip-router.org<br>> Reply To: Kamailio (SER) - Users Mailing List<br>> Subject: [SR-Users] log the value of "from_uri" and "myself"<br>> <br>> <br>> <br>> Hi,<br>> <br>> I would like to know how to log the value of "from_uri" and "myself" attributes on kamailio 3.3.7 ?<br>> None of the following works:<br>> <br>> xlog("L_INFO","from_uri: $dlg(from_uri)");<br>> <br>> $var(x) = from_uri;<br>> xlog("L_INFO","$var(x)");<br>> <br>> Thanks,<br>> Al<br>> <br>> <br>> _______________________________________________<br>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>> sr-users@lists.sip-router.org<br>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br></div></div>                                           </div></body>
</html>