Re: [OpenSIPS-Users] New Accounting - PROBLEM

2016-03-25 Thread Dragomir Haralambiev
I try with:

do_accounting("log", "cdr");
and
do_accounting("aaa", "cdr");

and receive same error.

2016-03-25 21:49 GMT+02:00 Alex Balashov :

> On 03/25/2016 03:48 PM, Dragomir Haralambiev wrote:
>
> unknown command , missing loadmodule?
>>
>
> That sounds like a typo in the config.
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
> 1447 Peachtree Street NE, Suite 700
> Atlanta, GA 30309
> United States
>
> Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] New Accounting - PROBLEM

2016-03-25 Thread Alex Balashov

On 03/25/2016 03:48 PM, Dragomir Haralambiev wrote:


unknown command , missing loadmodule?


That sounds like a typo in the config.

--
Alex Balashov | Principal | Evariste Systems LLC
1447 Peachtree Street NE, Suite 700
Atlanta, GA 30309
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] New Accounting - PROBLEM

2016-03-25 Thread Dragomir Haralambiev
Hello,

When I try to start Opensips 2.2 with new accountig module I receive follow
error:

unknown command , missing loadmodule?

Regards,
Dragomir
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [2.2/devel] Heads up, major changes

2016-03-25 Thread Bogdan-Andrei Iancu

Fixed !

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

On 24.03.2016 18:24, Bogdan-Andrei Iancu wrote:
My fault, it will be updated along with the rest of the docs for the 
2.2 release.


Regards,

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

On 24.03.2016 16:36, Ovidiu Sas wrote:

$log_level is not documented in the wiki.
Same for debug_mode.

-ovidiu

On Mon, Feb 8, 2016 at 7:17 AM, Bogdan-Andrei Iancu 
 wrote:

Hi all,

This is a heads up regarding some latest changes over OpenSIPS 2.2 / 
devel

branch, changes that do impact your scripts :

1) "fork" option replaced with "debug_mode"
The fork/don't fork option made no sense anymore in the new OpenSIPS
architecture (with async reactor). Even more, the so called "fork" was
related only to SIP workers (even with fork=no, opensips was forking 
timer
process, per-module processes); not to mention the fork=no 
limitation to
only one UDP interface. Shortly, the "fork" option became outdated, 
causing

more problem (coding and experience), rather than something useful.
"debug_mode" option was introduce as better way to switch on and off 
a fast
way to debug your opensips. Upon enabling the "debug_mode", opensips 
will

automatically force:
  - staying in foreground (do not detach from console)
  - set logging level to 4 (debug)
  - set logging to standard error
  - enable core dumping
  - set UDP worker processes to 2
  - set TCP worker processes to 2

2) "debug" option replaced with "log_level"
The global parameter "debug" was renamed "log_level" for a more 
accurate
description of the setting. The values and the behavior were kept 
exactly as

before. Of course the MI function "debug" was renamed to "log_level".

3) "set_debug()" function replaced with "$log_level" variable
Th3e $log_level with behave upon writing exactly as old set_debug() 
- a new
logging level will be set (as number) or the log level will be reset 
(for a
NULL input). Even more, the variable will accept to be populated 
from other
variables/transformations. Upon reading, the current per process 
logging

level will be returned.
 Ex :
 $avp(custom_log_level) = 4;
 xlog("Current logging level is $log_level\n");
 $log_level = $avp(custom_log_level); /* switch to debug 
level */

 xlog("Running in debug level ($log_level) now\n");
 $log_level = NULL;
 xlog("Resetting back to logging level $log_level\n");


Any feedback or reports are welcome !

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


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users







___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] [NEW] Easily cache your SQL data into any OpenSIPS NoSQL module!

2016-03-25 Thread Liviu Chircu

Hello all,

A new module [1] which allows you to cache an arbitrary number of tables 
from your preferred SQL database into the cache database of your choice 
will be officially released in the upcoming OpenSIPS 2.2 LTS beta.


The module acts as a liaison, periodically transferring data during 
runtime from the SQL database over to the NoSQL one, as it keeps the 
cached information up-to-date. The amount OpenSIPS script code required 
in order to use it is minimal, with only a few module parameters, a 
scripting variable used to access the data and the optional possibility 
of triggering SQL->NoSQL transfers externally, through the MI interface. 
A usage example can be found in the module documentation.


Here is the initial feature set for the new "sql_cacher":
* works with all OpenSIPS-supported SQL and NoSQL backends, including 
the local cache

* two caching modes:
- "full caching", where the entire SQL table is moved into the 
NoSQL cache (with periodic full refresh)
- "on demand caching", where OpenSIPS starts faster, and will only 
cache rows as it needs them

* a read-only script variable to access the NoSQL data
* an MI command to trigger full or granular cache refreshes
* customizable data expiry intervals
* customizable number of rows loaded at once when doing "full caching" 
(for resource-constrained systems)


So, the next time someone wants to cache their data into OpenSIPS [2], 
please make sure to warmly instruct them to test out this wonderful 
addition by Vlad-Robert Pătrașcu!


All the best,
OpenSIPS team

[1]: http://www.opensips.org/html/docs/modules/2.2.x/sql_cacher.html
[2]: http://lists.opensips.org/pipermail/users/2016-February/033875.html

--
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] [2.2/devel] Heads up, major accounting changes

2016-03-25 Thread Ionut Ionita

Hello all,

Head’s up for major changes in how to use the accounting module. The
flag-based triggering of accounting showed its limitations, especially now,
in relation to the async processing. Accounting became something really
complex, too complex to be controlled only by simply setting and resetting
flags - we need a way to actually perform also actions (accounting related)
during the script execution.

So, we need something more controllable, more flexible and more usable
and clear.

In OpenSIPS 2.2, the accounting flags have now been replaced with two new
functions: do_accounting and drop_accounting. By using these functions,
you can all accounting scenarios in all the possible ways as before - you
can arm and disarm accounting, whenever you want, the same way you used
the flags before.

The do_accounting() has 3 parameters. The first parameter represents the
accounting type(db, evi, aaa, diam, log). The types have to be separated
by ‘|’. The second parameter stands for the accounting flags, what kind
of accounting you want to do, we called it flags(cdr, missed, failed).
The failed flag replaces the old failed_transaction_flag. If you set the
cdr flag, dialog module has to be loaded in order to be able to match the
Invite with the Bye. The third parameter stands for the table name and it
replaces the old table_name_avp, which now have been removed.

Drop_accounting() has the same parameters as do_accounting excluding
the table name. If you call the function without any arguments accounting
is stopped. If you use only the first argument, accounting for the given
type shall  be stopped. If both arguments are used and you stop all
accounting types(cdr, missed,failed) normal accounting will still be 
enabled.


For usage examples, see online documentation:
[0] http://www.opensips.org/html/docs/modules/2.2.x/acc#do_accouting
[1]http://www.opensips.org/html/docs/modules/2.2.x/acc#drop_accouting


Regards,

--
Ionut Ionita
OpenSIPS Developer

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips IVR

2016-03-25 Thread SamyGo
Hi,
OpenSIPS is a SIP proxy and it ma ynot be the best tool for making it do
IVR, just wondering how would opensips capture a DTMF? and play a new file
!!.
It is recommended that you use any Media-Server to handle IVR with easy,
like SEMS, FreeSwitch, Asterisk.


Regards,
Sammy


On Fri, Mar 25, 2016 at 10:09 AM, Francjos <35...@heb.be> wrote:

> Hello every body,
>
> Is it possible to implement an IVR (Interact Voice Response) with opensips?
> If yes, how is it implemented?
>
> Thanks
>
>
>
> --
> View this message in context:
> http://opensips-open-sip-server.1449251.n2.nabble.com/Opensips-IVR-tp7602372.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Opensips IVR

2016-03-25 Thread Francjos
Hello every body,

Is it possible to implement an IVR (Interact Voice Response) with opensips?
If yes, how is it implemented?

Thanks



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Opensips-IVR-tp7602372.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] CLUSTERER and PROTO_BIN modules in ver.2.2

2016-03-25 Thread Yuri Ritvin
Since introduction of the CLUSTERER and PROTO_BIN modules the previous
approach of contacts / dialogues replication between OpenSIPS servers has
rendered obsolete. The addition of the actual use case description of the
aforementioned modules (as a replacement of the BIN_LISTEN directive) will
be highly beneficial , particularly a DB table "clusterer" population
method.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] uac_registrant module

2016-03-25 Thread Francjos
Hello,

I solved the problem, it was a problem with privileges on the user
'opnesips'.
To resolve this, i 've connected to the data base using my credentials and
execute the following commands:
mysq > grant all privileges on opensips.* to opensips@localhost identified
by 'opensipsrw';
and  flush privileges;

After, i restart opensips and the problem was solved.

I' so happy!



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/uac-registrant-module-tp7602335p7602368.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] uac_registrant module

2016-03-25 Thread Francjos
I defined the parameter db_url and all the parametrs but i still have errors:

ERROR:db_mysql:db_mysql_new_connection: initial connect failed
ERROR:core:db_do_init: could not add connection to the pool
ERROR:uac_registrant:init_reg_db: unable to connect to the database
ERROR:uac_registrant:mod_init: failed to initialise the DB support
ERROR:core:init_mod: failed to initialise module uac_registrant
ERROR:core:main: error while initialising modules




--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/uac-registrant-module-tp7602335p7602365.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users