mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 08:38:45 +05:00
SM - Fix StoreSMCost, OpenSIPS integration fixes and update tutorial to 2.2 version
This commit is contained in:
@@ -153,7 +153,7 @@ func (osm *OsipsSessionManager) Shutdown() error {
|
||||
// Process the CDR with CDRS component
|
||||
func (osm *OsipsSessionManager) ProcessCdr(storedCdr *engine.CDR) error {
|
||||
var reply string
|
||||
return osm.cdrsrv.Call("CdrServer.ProcessCdr", storedCdr, &reply)
|
||||
return osm.cdrsrv.Call("CdrsV1.ProcessCdr", storedCdr, &reply)
|
||||
}
|
||||
|
||||
// Disconnects the session
|
||||
|
||||
@@ -258,7 +258,7 @@ func (s *Session) SaveOperations() {
|
||||
CostDetails: firstCC,
|
||||
}
|
||||
var reply string
|
||||
if err := s.sessionManager.CdrSrv().Call("CdrServer.StoreSMCost", engine.AttrCDRSStoreSMCost{Cost: smCost, CheckDuplicate: true}, &reply); err != nil {
|
||||
if err := s.sessionManager.CdrSrv().Call("CdrsV1.StoreSMCost", engine.AttrCDRSStoreSMCost{Cost: smCost, CheckDuplicate: true}, &reply); err != nil {
|
||||
// this is a protection against the case when the close event is missed for some reason
|
||||
// when the cdr arrives to cdrserver because our callcost is not there it will be rated
|
||||
// as postpaid. When the close event finally arives we have to refund everything
|
||||
|
||||
Reference in New Issue
Block a user