Victor Seva
b2f9d5999e
MT#15395 log stats query on critial error
...
in order to try to recover
Change-Id: I84e4b8eee7ca99ca201e320b9e2ba52c9ab74904
10 years ago
Kirill Solomko
d66262ccfc
MT#11157 Add separate mysql handler for the stats db
...
- use separate user,pass,port,db for the stats database connection
- cosmetic change in the DEFAULT_STATS definition names
- add db connection info logging for PROV and STATS
Change-Id: I389bed46c634ac973616335581d7a7495d5866a3
10 years ago
Kirill Solomko
e348692a55
MT#11157 - Add call info stats dump
...
- Calls info (call_code, period) data is accumulated into $stats_db.'call_info'
table on the cdr insert
- Add stats_db and stats_period options (1=hour, 2=day, 3=month)
Change-Id: I4e1f7655eebfbe45a43e2c34d9c3b3bffe05fb40
10 years ago
Andreas Granig
c6e3e0b283
MT#9565 Fix gpp sql error
11 years ago
Andreas Granig
0b04da23e1
MT#9565 Populate src/dst gpp fields.
11 years ago
Richard Fuchs
71657dda3d
MT#8195 use dst_leg peer id and lookup against peer group/contract ID
...
Squashed commit of the following:
commit e137454f9d871332ef055b3de8eb9c703caece03
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Fri Jul 25 11:03:17 2014 -0400
MT#8195 lookup peer host ID against peer group/contract ID
commit 47e3509e634d9892fc1e2bc8111df6a90416addc
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Fri Jul 18 11:03:23 2014 -0400
MT#8195 use dst_leg peer id
11 years ago
Kirill Solomko
f89c7889d4
MT#5257 - only distint acc records are selected per callid, removed unused acc.id field selection
12 years ago
Andreas Granig
3fd8a54076
Move reseller_id to contact.
12 years ago
Andreas Granig
be49d8bfab
Align cost columns to new names and add dst costs.
12 years ago
Richard Fuchs
924af07388
add shutdown points at strategic points in the code
13 years ago
Andreas Granig
76a3d92d66
Also parse and insert "split" parameter.
...
This is set by proxylu and indicates that the CDR consists of two parts,
one on the home proxy of the caller, the other on the home proxy of the
callee.
13 years ago
Andreas Granig
caafbfdcfd
Parse and insert source_ip field.
13 years ago
Andreas Granig
360ad4c178
Parse and insert init_time.
13 years ago
Andreas Granig
e4b9f58c54
Fix callid handling.
13 years ago
Daniel Tiefnig
5bff76e944
fix bug in acc_trash query, which causes mediator to fail
...
This should affect *all* 2.4 installations, none of them will have a
working mediator ATM!
14 years ago
Richard Fuchs
5614b2d08e
fix reconnect segfaults, also fix some compile warnings
14 years ago
Andreas Granig
8b9ddd16e4
Fix id handling when loading contract ids for peers.
14 years ago
Andreas Granig
aa920d254f
Also load peer host->contract mapping.
...
Not only use peer IP for contract matching, but also newly introduced
peer host, if no IP is found.
14 years ago
Andreas Granig
1f19898ae5
Add time_hires to field list when moving acc records.
14 years ago
Andrew Pogrebennyk
e56c7ac74d
use kamailio.time_hires as source of event timestamp with msec precision
14 years ago
Andreas Granig
ea30c3bd45
Port latest duration check fixes to trunk.
14 years ago
Andreas Granig
31f3e0282b
Handle additional src/dst-leg acc fields.
14 years ago
Michael Prokop
4ace854734
Add missing else {} - otherwise we might be passing null pointer to strcpy :)
14 years ago
Andreas Granig
5146f988f8
Work around duplicate primary key issues between acc and acc_backup/trash when restarting mysql.
15 years ago
Andreas Granig
f7e360101c
Fixed debug output.
15 years ago
Andreas Granig
dcb38257a5
Fixed warning for not using return values for write when writing lock file.
...
Removed host table from peer hosts, just use ip.
15 years ago
Richard Fuchs
102875a41e
add more error codes to wrapper
15 years ago
Richard Fuchs
cb811f329c
implement mysql query wrapper function to catch transient errors
15 years ago
Richard Fuchs
859b66180f
added proper error handling. daemon will shut down on critical errors. additionally use the lockfile to mark errors requiring manuel intervention and keep the daemon from restarting.
15 years ago
Richard Fuchs
eda356421a
string handling fixes; compile warning fix
15 years ago
Andreas Granig
9a1393a56d
Use a dedicated connection for provisioning/billing db queries.
15 years ago
Andreas Granig
95fd730b71
Some fixes to make compiler happy.
...
Changed peer host query to join for peer contract id.
15 years ago
Andreas Granig
e6326e7781
Added trunk/tags dir structure.
...
Added 1.1.0 tag.
16 years ago