SM - Fix StoreSMCost, OpenSIPS integration fixes and update tutorial to 2.2 version

This commit is contained in:
DanB
2016-05-09 20:06:14 +02:00
parent d2332472d5
commit 578fd87325
5 changed files with 31 additions and 27 deletions

View File

@@ -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

View File

@@ -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