Commit Graph

83 Commits

Author SHA1 Message Date
ionutboangiu
db301f7901 Remove StorDB service param from service constructors
Use ServiceIndexer instead.
Remove CDRs ListenAndServe method.
Pass the storDB connection directly to constructors instead of the
channel.
2024-12-12 11:55:14 +01:00
ionutboangiu
3e98e37db3 Revise NewRPCClient helper function 2024-10-23 21:11:25 +02:00
ionutboangiu
8426892ac6 revise integration tests script 2024-08-21 20:59:10 +02:00
ionutboangiu
0f70af84e9 centralize test flags for shared use across tests 2024-08-15 18:17:33 +02:00
ionutboangiu
0dfb3b860d Centralize RPCClient constructor 2024-08-15 18:17:33 +02:00
ionutboangiu
5228a641e3 Add integration test for cdr apis 2023-12-13 12:47:02 +01:00
ionutboangiu
d29f84169c Move cdrs to its own package
Moved engine/cdr.go to utils/cdr.go.
Moved engine/cdrs.go and engine/cdrs_test.go to cdrs package.
Moved api functions from cdrs/cdrs.go to cdrs/apis.go. Same for the
tests.
Deleted CDRsV1 type and its methods.
2023-12-12 10:09:18 +01:00
DanB
e93b8a6c6f engine.Responder with ProcessCdr method, moved cdrs and mediator to engine 2014-07-25 17:44:50 +02:00
DanB
19e994ca8a Adding CDRSV1.ProcessCdr API to feed cdrs via RPC 2014-07-25 12:25:23 +02:00
DanB
b5f26c00b8 Changed cgrid hash to build using SetupTime.UTC() 2014-07-09 12:31:45 +02:00
DanB
090f7706e8 Small test fix 2014-07-09 11:39:10 +02:00
DanB
e96251aba3 RegexpSearchReplace rule has now Matched field to confirm matching, DerivedChargers has now Regexp support in filters 2014-07-07 17:48:59 +02:00
DanB
4f95f56284 Usage stored as decimal in MySQL, more tests and sample tariff plan data 2014-05-28 09:36:16 +02:00
DanB
42e9719fed DurationMangle is now bidirectional, cdr exporter properly formating duration 2014-05-26 14:16:35 +02:00
DanB
e8690fc23e StoredCdr.Duration -> StoredCdr.Usage 2014-05-19 09:24:46 +02:00
DanB
370fc31db8 Adding TOR support inside CDRs 2014-05-09 19:24:38 +02:00
DanB
f7abbacfe5 Refactoring CDRs to support RSRFields 2014-05-05 20:14:40 +02:00
Radu Ioan Fericean
fcdc0c03c7 Merge branch 'data'
Conflicts:
	engine/calldesc.go
	mediator/mediator.go
	sessionmanager/fssessionmanager.go
	utils/storedcdr.go
2014-04-29 14:13:48 +03:00
DanB
6497a09ae5 RSRules chain implementation 2014-04-27 21:39:52 +02:00
DanB
e01ad95465 cdr AsStoredCdr() -> ForkCdr(), fixup ForkCdr in StoredCdr type 2014-04-27 14:17:36 +02:00
DanB
f0095dbcb3 RawCDR interface now properly returns duration 2014-04-27 09:19:30 +02:00
Radu Ioan Fericean
25cb5be8c0 refactor CallDuration in DurationIndex and TOR in Category 2014-04-25 21:16:21 +03:00
DanB
4e1776d6fd Discarding FS microseconds information, reverting to seconds since MySQL errors in older versions and default FS csv file uses seconds 2014-04-11 17:12:27 +02:00
DanB
5d9e7bae67 Adding more RSRTests 2014-04-10 19:12:27 +02:00
DanB
9fcf43f8b4 Corelate CgrIds between FS answer_event and FsJsonCdr 2014-04-09 12:23:56 +02:00
DanB
a7b71bae43 Fixup CgrId in FS-SM 2014-04-08 21:30:23 +02:00
DanB
a3fff42338 FsCgrId -> Sha1, making the CgrId even more uniquely by hashing it with setup time 2014-04-08 17:51:18 +02:00
DanB
f6d16cecc5 Adding full CDR template in exported CDRs, using RSRFields 2014-03-16 13:11:08 +01:00
DanB
db433a760f Adding search/replace regexp rules for FreeSWITCH extra fields 2014-03-15 19:17:40 +01:00
Radu Ioan Fericean
6685b7b444 add code comment for fscdr body 2014-03-14 19:31:52 +02:00
Radu Ioan Fericean
e2a50a77fd search whole cdr if extra field not found in variables 2014-03-14 19:21:56 +02:00
DanB
5ae7a18283 Adding setupTime to CDRs for later stats calculation 2014-03-06 15:47:39 +01:00
DanB
cf0179e505 Adding FS_SIP_REQUSER as fallback variable for destination in case of fscdr 2014-03-02 12:09:09 +01:00
DanB
caba3af732 Mediation RPC with rerate abilitites, rename RatedCDR -> StoredCdr, adding storage interface tests 2014-02-03 19:04:42 +01:00
DanB
1bbe5a0a88 CDRc communicating over internal interface with the CDRs 2014-01-25 20:52:32 +01:00
Radu Ioan Fericean
0005ba2f68 RPC server changes
rpc server now serves both json and gob, refactored server code into
it's own type
2014-01-22 19:53:30 +02:00
DanB
5024944a2b History basic documentation, FsCgr tests fixup for localtime compliance, SaveInterval config on history server parsed as time.Duration 2013-12-29 14:17:38 +01:00
DanB
2b19fcd408 Finishing fsCdr.AsRatedCdr implementation with tests 2013-12-28 15:58:19 +01:00
DanB
4eee6ddd0e Adding static field values for multiple mediation in configuration, fmt on sources 2013-12-27 20:02:47 +01:00
DanB
1db3c550b1 Multiple mediation on same RawCDR, renamed CDR interface into RawCDR 2013-12-26 21:21:29 +01:00
DanB
d60a5f1b79 RatedCDR maintaining CDR interface, Cdrc csv reader does not longer stops in case of row error, further test related fixups 2013-12-22 19:44:45 +01:00
DanB
8e95225b99 Completing the implementation of the CDR client with tests 2013-12-22 18:35:16 +01:00
DanB
c38179c01a Cdrc further refactoring 2013-12-22 13:06:40 +01:00
DanB
ca3b13651f Adding cdrc together with config dependencies and tests 2013-12-20 22:57:45 +01:00
DanB
2ba458524e CDRS with datetime instead of timestamp, adding run_ids in mediator config section 2013-12-19 20:01:19 +01:00
DanB
87ea266c4a Go fmt on sources 2013-11-19 20:06:53 +01:00
DanB
092853d571 Adding StorCdr type, removing unused CDR interface methods 2013-11-08 18:37:07 +01:00
DanB
458a8f8628 Adding datetime support for answer_time in cgrCdr 2013-11-07 17:41:17 +01:00
DanB
3eda5495ea Adding CGR-CDR handler 2013-11-07 12:35:30 +01:00
Radu Ioan Fericean
411af6ba74 splited storage interface in multiple interfaces 2013-08-27 14:48:01 +03:00