Re: [OpenSIPS-Users] ACC module for rejected calls

2023-04-03 Thread Alberto
Thanks I tried both sl_send_reply and send_reply, but I didn't see t_reply. That was it. On Mon, 3 Apr 2023 at 22:40, Daniel Zanutti wrote: > Hi Alberto > > You are correct, this is the line you need. > > I think you need a created transaction. Since you are responding in > stateless, you may be

Re: [OpenSIPS-Users] ACC module for rejected calls

2023-04-03 Thread Daniel Zanutti
Hi Alberto You are correct, this is the line you need. I think you need a created transaction. Since you are responding in stateless, you may be missing the cdr. Try changing this and let me know if solves: sl_send_reply(488, "Not Acceptable Here"); -> t_reply(488, "Not Acceptable Here"); Reg

[OpenSIPS-Users] ACC module for rejected calls

2023-04-03 Thread Alberto
Hi, I'm trying to understand the ACC module, using this minimal configuration below. My question is: why is there no cdr created? I would have assumed that `do_accounting("log", "cdr|missed|failed");` always saves cdrs, but it doesn't when the call is rejected from inside the configuration script.

Re: [OpenSIPS-Users] ACC module with JSON events

2018-11-15 Thread Răzvan Crainea
Apologies, I forgot to give you credit in the commit, but I've done it in the issue I've opened: https://github.com/OpenSIPS/opensips/issues/1533 Best regards, Răzvan On 11/15/18 11:53 AM, Răzvan Crainea wrote: You're write, the issue is that the values are not unique! I have committed a fix n

Re: [OpenSIPS-Users] ACC module with JSON events

2018-11-15 Thread Răzvan Crainea
You're write, the issue is that the values are not unique! I have committed a fix now, but this should definitely be changed, as its prone to errors. I will try to rework the flags mechanism to something more flexible. Thanks for reporting this! Best regards, Răzvan On 11/14/18 8:08 PM, SamyG

Re: [OpenSIPS-Users] ACC module with JSON events

2018-11-14 Thread SamyGo
Possibly found the reason: The event_jsonrpc.c has this flag: JSONRPC_FLAG with same value "1 << 26" same as event_route.c modules/event_route/event_route.h:#define SCRIPTROUTE_FLAG (1 << 26) modules/event_jsonrpc/event_jsonrpc.h:#define JSONRPC_FLAG (1 << 26) While oth

Re: [OpenSIPS-Users] ACC module with JSON events

2018-11-14 Thread SamyGo
Howdy again, Thanks team for creating the event_jsonrpc module in 2.4 - I'm back to this topic and trying to give this module a try however opensips fail to start with following error: Nov 14 17:13:03 opsips /usr/local/sbin/opensips[18997]: INFO:uac:mod_init: initializing... Nov 14 17:13:03 opsip

Re: [OpenSIPS-Users] ACC module with JSON events

2018-02-26 Thread SamyGo
Hi DanB, I can certainly try CGRates, but...surely enough its an overkill for simple CDRs. Anyways, my request is for an event_JSONRPC which maybe very helpful in events outside of ACC. Best Regards, Sammy On Mon, Feb 26, 2018 at 6:13 AM, Khalil Khamlichi < khamlichi.kha...@gmail.com> wrote:

Re: [OpenSIPS-Users] ACC module with JSON events

2018-02-26 Thread Khalil Khamlichi
Hi Dan, Can you show us how to do that with some step by step tutorial, we had a lot of trouble trying to figure out how to use CGRates, with this functionality of json export, we will at least use some of CGRates functionalities and hopefully slowly get familiar with it. Thanks in advance. On M

Re: [OpenSIPS-Users] ACC module with JSON events

2018-02-25 Thread DanB
Sammy, Another option on short term until the new feature will be implemented in OpenSIPS would be to use CGRateS as CDR format converter: receive CDRs from "cgrates" module in OpenSIPS and use online export of CGRateS to further export the CDR in the JSON over http (customizable fields). You don'

Re: [OpenSIPS-Users] ACC module with JSON events

2018-02-25 Thread SamyGo
Hi Jarrod, So I see that you're creating your own CDR like variables, exactly what I want to avoid, how about call duration? I want to avoid manual intervention and the way I'm thinking is that it'll be "event_JSONRPC" job to fetch params from E_ACC_CDR and sent a JSON out. Simple. Thanks for your

Re: [OpenSIPS-Users] ACC module with JSON events

2018-02-23 Thread Jarrod Baumann
modparam("acc", "evi_extra", "json=$avp(json_acc)") startup_route { if (!subscribe_event("E_ACC_CDR", "rabbitmq:user:pass@host/queue")) { xlog("L_ERR","Cannot subscribe RabbitMQ to E_ACC_CDR\n"); } } route["set_acc_variables"] { $json(acc) := "{}"; $json(acc/from_user) = $avp(ani

Re: [OpenSIPS-Users] ACC module with JSON events

2018-02-23 Thread SamyGo
Thanks Razvan, will open a feature request. Jarrod Can you elaborate the steps involved please? So, I don't have anything against XML right now but my XML receiver side is a bit of difficulty in terms of parsing the XML structure (Its done but not in a way I like it) - JSON will make it far easier

Re: [OpenSIPS-Users] ACC module with JSON events

2018-02-23 Thread Jarrod Baumann
I build the JSON data with cdr and convert to a string for throwing events. Then whatever collects your CDR can serialize it again. This works well and is probably similar to what XML is doing. On Thu, Feb 22, 2018 at 10:14 PM SamyGo wrote: > Hi, > > I'm using ACC module to trigger accounting ev

Re: [OpenSIPS-Users] ACC module with JSON events

2018-02-23 Thread Răzvan Crainea
Hi, Samy! Unfortunately there currently is no way (or at least no nice way) to do that. Please open a feature request so we can take this into account[1]. [1] https://github.com/OpenSIPS/opensips/issues Best regards, Răzvan On 02/23/2018 06:13 AM, SamyGo wrote: Hi, I'm using ACC module to

[OpenSIPS-Users] ACC module with JSON events

2018-02-22 Thread SamyGo
Hi, I'm using ACC module to trigger accounting events which land up in event_xmlrpc and ultimately shipped to remote CDR collection server. The sent data is obviously an XML - now, can I have an event_json like module so data is sent as JSON or is there any other way I can achieve the same ? Rega

Re: [OpenSIPS-Users] ACC Module - BYE's not working

2017-08-16 Thread Liviu Chircu
The new accounting system gives you a choice: a dialog-level approach, by enabling "cdr", which results in a single table row containing all relevant info for a CDR (start time, pick up time, end time, etc.) or a transaction-level approach which allows you to log each request that is relevant t

Re: [OpenSIPS-Users] ACC Module - BYE's not working

2017-08-14 Thread Liviu Chircu
Hi Jonathan, Tried to reproduce it on 2.3.1 - no success. Can you also provide the debug logs between the last two statements you posted? Regards, Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 11.08.2017 15:43, Jonathan Mabrito wrote: I recently upgraded from OpenSIPS

[OpenSIPS-Users] ACC Module - BYE's not working

2017-08-11 Thread Jonathan Mabrito
I recently upgraded from OpenSIPS 2.2 to 2.3.1. Within the ACC module, I would get accounting information in the DB on the INVITES and the BYES on 2.2. After the upgrade to 2.3.1, I am getting the INVITES, but not the BYES. I made the adjustments per the migration guide for the extra_fields modpara

Re: [OpenSIPS-Users] ACC module Opensips 2.1.1 and MySql

2015-11-02 Thread Vincent DOCQUOIS
Great thanks Annus, it was that. So stupid I am, I should I have found by myself : log for logs and db for database of course Regards Vincent > Le 2 nov. 2015 à 10:39, Annus Fictus a écrit : > > Hello, > > maybe you have to change these lines: > > modparam("acc", "log_flag", "ACC_DO") > mo

Re: [OpenSIPS-Users] ACC module Opensips 2.1.1 and MySql

2015-11-02 Thread Annus Fictus
Hello, maybe you have to change these lines/*: */modparam("acc", "log_flag", "ACC_DO") modparam("acc", "log_missed_flag", "ACC_MISSED") with: modparam("acc", "db_flag", "ACC_DO") modparam("acc", "db_missed_flag", "ACC_MISSED" /* */ Regards ___ Users

[OpenSIPS-Users] ACC module Opensips 2.1.1 and MySql

2015-11-02 Thread Vincent DOCQUOIS
Hello all, I have installed Opensips 2.1.1 on Debian 8.2 and migrated a configuration that was working on Opensips 1.11. All is fine except that the ACC module seems no longer to write CDR in mysql database. Just to be sure, I have replaced my opensips.cfg by the trunking sample and I have the

Re: [OpenSIPS-Users] Acc module /Bug

2014-04-24 Thread Răzvan Crainea
Behalf Of Razvan Crainea Sent: Wednesday, April 16, 2014 5:39 PM To: users@lists.opensips.org Subject: Re: [OpenSIPS-Users] Acc module /Bug Hi, Khaled! You should first check what is the problem with that ACK that is ignored by the Gateway. I presume you are using dialog support and most likel

Re: [OpenSIPS-Users] Acc module /Bug

2014-04-24 Thread M.Khaled W Chehab
...@lists.opensips.org] On Behalf Of Razvan Crainea Sent: Wednesday, April 16, 2014 5:39 PM To: users@lists.opensips.org Subject: Re: [OpenSIPS-Users] Acc module /Bug Hi, Khaled! You should first check what is the problem with that ACK that is ignored by the Gateway. I presume you are using dialog support and most

Re: [OpenSIPS-Users] Acc module /Bug

2014-04-16 Thread Răzvan Crainea
Hi, Khaled! You should first check what is the problem with that ACK that is ignored by the Gateway. I presume you are using dialog support and most likely, the ACK and the BYE are not matched by OpenSIPS. Best regards, Razvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com

Re: [OpenSIPS-Users] Acc module /Bug

2014-04-16 Thread M.Khaled W Chehab
Hi, I notice that opensips is not hanging up the call when a bye is received from client as it forward the BYE to gateway and gateway send a 200 ok back , furthermore i can see a bad behavior from gateway which is opensips forward the ACK from UA after 200 OK with SDP is received from ga

[OpenSIPS-Users] Acc module

2014-04-15 Thread M.Khaled W Chehab
Hi I have a problem with accc modules with the below scenario : OPENSIPS receive the 200 ok from the trunk gateway ,and forward it to UA, UA replies by ACK and opensips forward this ACK to Gateway ,..but for some reason the Gateways resends a lot of 200 OK with SDP and opensips relay thes

Re: [OpenSIPS-Users] acc module flags.

2013-04-22 Thread qasimak...@gmail.com
Yes i replaced Flag with Named Flag and its working fine now. Thanks for the Help :) -Qasim On Sun, Apr 21, 2013 at 1:23 AM, Liviu Chircu wrote: > Hello Qasim, > > The named flags are 100% compatible with the integer flags in pre 1.9 > OpenSIPS. You should only change your script to use name

Re: [OpenSIPS-Users] acc module flags.

2013-04-20 Thread Liviu Chircu
Hello Qasim, The named flags are 100% compatible with the integer flags in pre 1.9 OpenSIPS. You should only change your script to use named flags if you want to get rid of the acc module deprecation warnings in the startup phase. Regarding your issue, I have two quick requests: - please conf

[OpenSIPS-Users] acc module flags.

2013-04-20 Thread qasimak...@gmail.com
Hi, Just wondering how to use new string flags in acc module in opensips version 1.9. My script works fine on opensips 1.8 but in 1.9 i dont get accounting packet in radius. Regards, Qasim ___ Users mailing list Users@lists.opensips.org http://lists.ope

Re: [OpenSIPS-Users] ACC module with AAA dont send failed transaction

2012-08-01 Thread SamyGo
Hi, Although I managed to get a temporary workaround this by using the custom comment to aaa function available in ACC module but what I've read is means that opensips IS actually sending the failed events : interesting I'll do a quick tcpdump of the packets between the opensips and freeradius ser

Re: [OpenSIPS-Users] ACC module with AAA dont send failed transaction

2012-08-01 Thread qasimak...@gmail.com
Maybe this would help "For failed SIP sessions a radius packet type FAILED is generated. A failed SIP session is a session that has been rejected by the Proxy server or by the destination. Unfortunately Freeradius server is not able to cope with FAILED packets. The server must be patched and r

[OpenSIPS-Users] ACC module with AAA dont send failed transaction

2012-08-01 Thread SamyGo
Hello, I've setup OpenSIPS with RADIUS and I've to send ACC events for failed transactions. I'm already receiving the missed calls, early media, call start & stop events on my radius server. Now what I'm trying to accomplish is that if a transaction returns with a failure i.e 486 Busy etc, these

Re: [OpenSIPS-Users] ACC Module Problem

2011-09-26 Thread Razvan Crainea
ySQL). Thanks. Federico From: jp...@fidelityvoice.com To: users@lists.opensips.org Date: Thu, 15 Sep 2011 15:13:06 -0400 Subject: Re: [OpenSIPS-Users] ACC Module Problem Hi Federico, That's not an error. That's Opensips letti

Re: [OpenSIPS-Users] ACC Module Problem

2011-09-16 Thread Federico Varela
I can resolve it. I have an missing field (extra db) in mysql table. Thanks a lot!! Best Regards,Fede From: feche...@hotmail.com To: users@lists.opensips.org Date: Fri, 16 Sep 2011 12:54:47 + Subject: Re: [OpenSIPS-Users] ACC Module Problem Thanks for you reply. In my mysql log, i

Re: [OpenSIPS-Users] ACC Module Problem

2011-09-16 Thread Federico Varela
uri=$fu; to_uri=$tu")modparam("acc", "db_url","mysql://root:xx@localhost/opensips_db")modparam("acc", "db_table_acc", "acc") Thanks a lot!!Fede Date: Fri, 16 Sep 2011 11:30:40 +0300 From: vladp...@opensips.org To: users@lists.op

Re: [OpenSIPS-Users] ACC Module Problem

2011-09-16 Thread Vlad Paiu
ancer, registration store in MySQL). Thanks. Federico From: jp...@fidelityvoice.com To: users@lists.opensips.org Date: Thu, 15 Sep 2011 15:13:06 -0400 Subject: Re: [OpenSIPS-Users] ACC Module Problem Hi Federico, That's no

Re: [OpenSIPS-Users] ACC Module Problem

2011-09-15 Thread Federico Varela
: [OpenSIPS-Users] ACC Module Problem Hi Federico, That's not an error. That's Opensips letting you know it has initialized the prepared statement in the MySQL database. The ?s are part of the statement format. Depending on your config, you may see these for other modules in addition to a

Re: [OpenSIPS-Users] ACC Module Problem

2011-09-15 Thread Jeff Pyle
Hi Federico, That's not an error. That's Opensips letting you know it has initialized the prepared statement in the MySQL database. The ?s are part of the statement format. Depending on your config, you may see these for other modules in addition to acc. I see them a lot for dialog in my co

[OpenSIPS-Users] ACC Module Problem

2011-09-15 Thread Federico Varela
Hello:My name is Federico. I have a problem with Acc Module in Opensips 1.6.I can complete a call perfectly, but opensips dont insert data in mysql acc table. My configuration is this: modparam("acc", "early_media", 1)modparam("acc", "report_ack", 1)modparam("acc", "report_cancels", 1)modparam("

Re: [OpenSIPS-Users] ACC module EPOCH for timestart

2011-04-04 Thread Brett Nemeroff
On Mon, Apr 4, 2011 at 1:34 AM, Robert Thomas wrote: > I have been looking to se if I can store on my DB along with the time field > that is actually a datetime in the DB, and EPOCH value. > > Using db_extra, you can add just about any field you want to the acc record: http://www.opensips.org/htm

[OpenSIPS-Users] ACC module EPOCH for timestart

2011-04-03 Thread Robert Thomas
Hello, I have been looking to se if I can store on my DB along with the time field that is actually a datetime in the DB, and EPOCH value. I have been looking in the acc module documentation but I haven't found anything relevant. I would like to get the EPOCH directly from the dialog module in o

Re: [OpenSIPS-Users] ACC module

2010-12-06 Thread Denis Putyato
Bogdan, i understand, thank you -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Monday, December 06, 2010 1:49 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] ACC module Hi Denis

Re: [OpenSIPS-Users] ACC module

2010-12-06 Thread Bogdan-Andrei Iancu
Hi Denis. The feature to directly generate CDRs in available in OpenSIPS trunk (devel) and it will be available in opensips 1.6.4 stable (in mid December) Regards, Bogdan Denis Putyato wrote: Hello everybody! There was a news in web site of Opensips about ACC module and CDR generatio

[OpenSIPS-Users] ACC module

2010-12-06 Thread Denis Putyato
Hello everybody! There was a news in web site of Opensips about ACC module and CDR generation http://lists.opensips.org/pipermail/news/2010-August/96.html I use 1.6.3. Can I already install ACC for the Opensips with new feature? Or it will be accessed only in next release of Opensips

Re: [OpenSIPS-Users] ACC Module missing failed transactions

2009-07-17 Thread Bogdan-Andrei Iancu
Brett, note that failed_transaction flag does not need to be re-arm...only db_missed_flag one. Regards, Bogdan Brett Nemeroff wrote: > Sorry all, > I'm not setting db_missed_flag. whoops! > -Brett > > > On Fri, Jul 10, 2009 at 10:25 AM, Brett Nemeroff > wrote: > >

Re: [OpenSIPS-Users] ACC Module missing failed transactions

2009-07-10 Thread Brett Nemeroff
Sorry all,I'm not setting db_missed_flag. whoops! -Brett On Fri, Jul 10, 2009 at 10:25 AM, Brett Nemeroff wrote: > All,I had some problems a while ago with ACC and I thought I had them > resolved, but looks like I'm still having issues.. > > I've set failed_transaction flag (14) and db_flag (15

[OpenSIPS-Users] ACC Module missing failed transactions

2009-07-10 Thread Brett Nemeroff
All,I had some problems a while ago with ACC and I thought I had them resolved, but looks like I'm still having issues.. I've set failed_transaction flag (14) and db_flag (15). I arm both 14 and 15 at the top of my routing script. Then in my failure routes, I re-arm 14. My ACC looks pretty good,

Re: [OpenSIPS-Users] acc-Module DB-Accounting

2009-01-27 Thread Bogdan-Andrei Iancu
t; Regards, > Robert. > > > -Original Message- > From: users-boun...@lists.opensips.org > [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu > Sent: Tuesday, January 27, 2009 10:25 AM > To: Robert Borz > Cc: users@lists.opensips.org > Subject:

Re: [OpenSIPS-Users] acc-Module DB-Accounting

2009-01-27 Thread Robert Borz
what I'm looking for... Regards, Robert. -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Tuesday, January 27, 2009 10:25 AM To: Robert Borz Cc: users@lists.opensips.org Subject: Re: [OpenSIPS-Users]

Re: [OpenSIPS-Users] acc-Module DB-Accounting

2009-01-27 Thread Bogdan-Andrei Iancu
-IP-Address = 10.1.0.11 > Timestamp = 1232984476 > Request-Authenticator = Verified > > So everything seems to be right here, doesn't it? > > Is there some sample configuration for the database query with the sql module > for freeradius? > > Thanks a lot! >

Re: [OpenSIPS-Users] acc-Module DB-Accounting

2009-01-26 Thread Robert Borz
t-Delay-Time = 0 NAS-IP-Address = 10.1.0.11 Timestamp = 1232984476 Request-Authenticator = Verified So everything seems to be right here, doesn't it? Is there some sample configuration for the database query with the sql module for freeradius? Thanks a lot! Rega

Re: [OpenSIPS-Users] acc-Module DB-Accounting

2009-01-26 Thread Bogdan-Andrei Iancu
Hi Robert, the "detect_direction" feature affects only information like caller and callee (from the radius package) and not the ruri. Regards, Bogdan Robert Borz wrote: > After solving my first issues, I'm now trying to setup db-accounting in SER. > If this works I will upgrade my configur

Re: [OpenSIPS-Users] acc-Module DB-Accounting

2009-01-26 Thread Robert Borz
to_uri=$tu); Any idea what's wrong? Robert. -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Robert Borz Sent: Monday, January 26, 2009 2:18 PM To: users@lists.opensips.org Subject: [OpenSIPS-Users] acc-Module DB

[OpenSIPS-Users] acc-Module DB-Accounting

2009-01-26 Thread Robert Borz
After solving my first issues, I'm now trying to setup db-accounting in SER. If this works I will upgrade my configuration to work with FreeRADIUS. So I added the acc module like this: loadmodule "acc.so" modparam("acc", "detect_direction", 1) modparam("acc", "db_url", "postgres://openser:passw.