more fixes and test for credit refounding

This commit is contained in:
Radu Ioan Fericean
2013-12-13 17:26:14 +02:00
parent 796caa1c7f
commit 950a357127
7 changed files with 112 additions and 73 deletions

View File

@@ -286,7 +286,7 @@ func (sm *FSSessionManager) OnChannelHangupComplete(ev Event) {
// FallbackSubject: lastCC.FallbackSubject, // TODO: check how to best add it
}
var response float64
err := sm.connector.DebitCents(*cd, &response)
err := sm.connector.RefundIncrements(*cd, &response)
if err != nil {
engine.Logger.Err(fmt.Sprintf("Debit cents failed: %v", err))
}