[OpenSIPS-Users] Opensips Transaction

Gomtesh Jain gomtesh at gmail.com
Thu Jul 10 08:57:24 CEST 2014


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 <bogdan at opensips.org>
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 Developerhttp://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 listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140710/44bf4eee/attachment.htm>


More information about the Users mailing list