<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 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 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 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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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>