<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
you could use the pseudo variable $ml (<strong>$ml</strong> -
reference to SIP message length
). or if needed: $cl (content-length header)<br>
<br>
Hope this helps.<br>
<br>
<br>
Max M.<br>
<br>
Am 19.10.2010 15:48, schrieb Dmitry Kravchenko:
<blockquote
cite="mid:AANLkTi=mEY9ytEwJ6EG4tpLh9cm2BQ=xCXk87G1V5-PS@mail.gmail.com"
type="cite">
<pre wrap="">Hi!
</pre>
<blockquote type="cite">
<pre wrap="">Those values - uri and myself can only be used for comparisons/tests,
you can not print them.
</pre>
</blockquote>
<pre wrap="">
But why??? Who invented this "quark gluon plasma"??
</pre>
<blockquote type="cite">
<pre wrap="">The uri is the same as $ru so you can print that
and myself is the list of local IP addresses, hostnames and DNS names(
if you have auto_aliases=yes) and aliases ( set with the alias parameter
in the global section of the script).
</pre>
</blockquote>
<pre wrap="">
And what about msg:len? Is it also QGP?
Is it possible to replace the code
if( uri == myself )
with some explicit contruct?
It is impossible to debug such magic expressions which are
thing-in-itselfs. When they work they work, but when they do not work,
you have no way to know why.
</pre>
<blockquote type="cite">
<pre wrap="">On 10/19/2010 03:45 PM, Dmitry Kravchenko wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi!
Is there a way to printout (with xlog) certain variables, like myself,
uri, msg:len and so on?
I have tried the following ways, but failed:
#xlog("L_NOTICE", "DIMS: uri (" + $uri + ") == myself (" +
$myself + " block...");
#xlog("L_NOTICE", "DIMS: uri (" + uri + ") == myself (" +
myself + " block...");
#$var(myuri) = uri;
#$var(mymyself) = myself;
#xlog("L_NOTICE", "DIMS: uri ($var(myuri)) == myself
($var(mymyself)) block...");
#xlog("L_NOTICE", "DIMS: uri ($uri) == myself ($myself) block...");
#xlog("L_NOTICE", "DIMS: uri ($var(uri)) == myself
($var(myself)) block...");
#$avp(myuri) = uri;
#$avp(mymyself) = myself;
#xlog("L_NOTICE", "DIMS: uri ($vap(myuri)) == myself
($avp(mymyself)) block...");
All versions of code cause some error.
Thanks.
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>