Re: [OpenSIPS-Devel] [opensips] Allow pulling statistics from script logic (#362)

2014-10-17 Thread brettnem
Hey Bogdan, The docs don't really indicate how to use $stat to pull those variables. How does it work today? Does this work: $stat(load:1.2.3.4:5060-load) ? Since this is specific to the child making the call, I'm not sure how to dynamically indicate that. Almost need something like: $stat(load

Re: [OpenSIPS-Devel] [opensips] Allow pulling statistics from script logic (#362)

2014-10-17 Thread Bogdan Andrei IANCU
@brettnem , see the $stat() variables provide by the statistics module: http://www.opensips.org/html/docs/modules/1.11.x/statistics.html#id293417 I think it is exactly what you are looking for. If so, please close this ticket. --- Reply to this email directly or view it on GitHub: https://git

[OpenSIPS-Devel] AVP

2014-10-17 Thread Nikita Tarasov
Hello there   I am not good in developing in C and I need help   Can some provide sample code to set custom named AVP variable in module?     Nikita ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo

Re: [OpenSIPS-Devel] [opensips] opensipsctl on freebsd mkfifo issue (#364)

2014-10-17 Thread Liviu Chircu
Issue fixed on master and 1.11 branches. Thank you for reporting! --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/364#issuecomment-59484968___ Devel mailing list Devel@lists.opensips.org http://lists.ope

[OpenSIPS-Devel] [OpenSIPS/opensips] 290a77: opensipsctl: fix compatibility issues with FreeBSD

2014-10-17 Thread Liviu Chircu
Branch: refs/heads/1.11 Home: https://github.com/OpenSIPS/opensips Commit: 290a771e8516c9b879c5791372df01cf2367c497 https://github.com/OpenSIPS/opensips/commit/290a771e8516c9b879c5791372df01cf2367c497 Author: Liviu Chircu Date: 2014-10-17 (Fri, 17 Oct 2014) Changed paths:

[OpenSIPS-Devel] [OpenSIPS/opensips] a479b7: opensipsctl: fix compatibility issues with FreeBSD

2014-10-17 Thread Liviu Chircu
Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: a479b72cb52a4bc155491fe26f254ed4ad7730f8 https://github.com/OpenSIPS/opensips/commit/a479b72cb52a4bc155491fe26f254ed4ad7730f8 Author: Liviu Chircu Date: 2014-10-17 (Fri, 17 Oct 2014) Changed paths:

Re: [OpenSIPS-Devel] [opensips] opensipsctl on freebsd mkfifo issue (#364)

2014-10-17 Thread Liviu Chircu
Closed #364 via a479b72cb52a4bc155491fe26f254ed4ad7730f8. --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/364#event-179901989___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-

[OpenSIPS-Devel] [opensips] opensipsctl on freebsd mkfifo issue (#364)

2014-10-17 Thread buchtajz
Hi, I must use this patch to make opensipsctl working on FreeBSD (10.0-RELEASE) --- opensipsctl.fifo.orig 2014-10-15 17:54:27.0 +0200 +++ opensipsctl.fifo2014-10-17 09:30:00.333819898 +0200 @@ -65,7 +65,7 @@ while : do suffix=$(od -An -

[OpenSIPS-Devel] [OpenSIPS/opensips] 55ecd2: More async definition (module export related).

2014-10-17 Thread Bogdan-Andrei Iancu
Branch: refs/heads/async Home: https://github.com/OpenSIPS/opensips Commit: 55ecd24e9d675db572fe525fbc666c0ffe7d83c1 https://github.com/OpenSIPS/opensips/commit/55ecd24e9d675db572fe525fbc666c0ffe7d83c1 Author: Bogdan-Andrei Iancu Date: 2014-10-17 (Fri, 17 Oct 2014) Changed

[OpenSIPS-Devel] [OpenSIPS/opensips] 0a9f00: Added async related definitions.

2014-10-17 Thread Bogdan-Andrei Iancu
Branch: refs/heads/async Home: https://github.com/OpenSIPS/opensips Commit: 0a9f00ace01120d178afedbbe4666300e30829cb https://github.com/OpenSIPS/opensips/commit/0a9f00ace01120d178afedbbe4666300e30829cb Author: Bogdan-Andrei Iancu Date: 2014-10-17 (Fri, 17 Oct 2014) Changed

[OpenSIPS-Devel] [opensips] avpops: Allow a per query timeout in milliseconds (#363)

2014-10-17 Thread brettnem
For some specific in call queries, I need to specify a timeout. Basically, if I don't get a result in Xms, then give up and continue as if the database returned an errored resultset. I know there is timeout_interval, however, that is an integer value and is for each retry. I'm requesting an over

[OpenSIPS-Devel] [opensips] Allow pulling statistics from script logic (#362)

2014-10-17 Thread brettnem
In the following I'm specifically referencing the kinds of stats you can obtain from: opensipsctl fifo get_statistics all I'm not sure of the right way to do this. I think there are a number of reasons why during script processing we'd want to check on the international statistics. Normally I t

Re: [OpenSIPS-Devel] [opensips] added exec(cmd, output, input, avpenv) function for exec module (#360)

2014-10-17 Thread Walter Doekes
> @@ -243,6 +246,48 @@ exec_getenv("HOSTNAME"); > exec_getenv("HOSTNAME", "$avp(localhost)"); > ... > > +1.4.5. exec(command, [output], [input], [envavp]) > + > + Executes an external command. The input is passed to the > + standard input of the new process, if specified, and the output >