<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Hi Gomtesh,<br>
<br>
Unfortunately it will not work with 1.6 :(... Anyhow I would
strongly suggest to use a newer version - 1.6 is really old and
unmaintained. See :<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/About/AvailableVersions">http://www.opensips.org/About/AvailableVersions</a><br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 10.07.2014 09:57, Gomtesh Jain wrote:<br>
</div>
<blockquote
cite="mid:CAFMhgaZyeWOy_fuEH2Nz4Lgd9TDJX7qSHKJjWcaSHGk8EVETFA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Bogdan,
<div> I tried as you suggested ...</div>
<div><br>
</div>
<div>here is what I wrote in script ...</div>
<div><br>
</div>
<div> xlog("L_NOTICE", " Source IP ($Si) : method ($rm) r-uri
($ru) : callID $ci $Ts Trans $stat(inuse_transactions) \n");<br>
</div>
<div><br>
</div>
<div>Here is what error I got in logs...</div>
<div><br>
</div>
<div>
<div><b> ERROR:core:pv_parse_spec: pvar "stat"(inner_name) not
found</b></div>
<div><b>Jul 10 02:50:11 localhost
/usr/local/sbin/opensips[12531]: ERROR:core:pv_parse_spec:
wrong char [i/105] in [$stat(inuse_transactions) #012] at
[6 (5)]</b></div>
<div><b>Jul 10 02:50:11 localhost
/usr/local/sbin/opensips[12531]: ERROR:xlog:xdbg_fixup:
ERROR: wrong format[ Source IP ($Si) : method ($rm) r-uri
($ru) : callID $ci $Ts Trans</b></div>
</div>
<div><b><br>
</b></div>
<div><b><br>
</b></div>
<div><b>Unfortunatly my production is still on 1.6 .....will it
work on 1.6 ?</b></div>
<div><b><br>
</b></div>
<div><b>Thanks,</b></div>
<div><b>Gomtesh</b></div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
On Wed, Jul 9, 2014 at 6:42 PM, Bogdan-Andrei Iancu <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div><tt>Hello Gomtesh,<br>
<br>
You can access that statistic from script via the
"statistics" module like $stat(inuse_transactions) :<br>
<a moz-do-not-send="true"
href="http://www.opensips.org/html/docs/modules/1.11.x/statistics.html#id293417"
target="_blank">http://www.opensips.org/html/docs/modules/1.11.x/statistics.html#id293417</a><br>
<br>
Best regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div class="h5"> On 09.07.2014 14:29, Gomtesh Jain
wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">I want to redirect calls based on
current load on opensips.
<div>To measure the load I want to know the count
of inuse transaction at opensips. </div>
<div>Please someone help me to know the
transaction count.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Gomtesh </div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>