Hi Gomtesh,

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 :
        http://www.opensips.org/About/AvailableVersions

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 10.07.2014 09:57, Gomtesh Jain wrote:
Hi Bogdan,
   I tried as you suggested ...

here is what I wrote in script ...

xlog("L_NOTICE", " Source IP ($Si) : method ($rm) r-uri ($ru) : callID $ci $Ts Trans $stat(inuse_transactions) \n");

Here is what error I got in logs...

* ERROR:core:pv_parse_spec: pvar "stat"(inner_name) not found*
*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)]* *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*
*
*
*
*
*Unfortunatly my production is still on 1.6 .....will it work on 1.6 ?*
*
*
*Thanks,*
*Gomtesh*


On Wed, Jul 9, 2014 at 6:42 PM, Bogdan-Andrei Iancu <[email protected] <mailto:[email protected]>> wrote:

    Hello Gomtesh,

    You can access that statistic from script via the "statistics"
    module like $stat(inuse_transactions) :
    http://www.opensips.org/html/docs/modules/1.11.x/statistics.html#id293417

    Best regards,

    Bogdan-Andrei Iancu
    OpenSIPS Founder and Developer
    http://www.opensips-solutions.com

    On 09.07.2014 14:29, Gomtesh Jain wrote:
    I want to redirect calls based on current load on opensips.
    To measure the load I want to know the count of inuse transaction
    at opensips.
    Please someone help me to know the transaction count.

    Thanks,
    Gomtesh


    _______________________________________________
    Users mailing list
    [email protected]  <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to