mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 13:49:53 +05:00
hangup without session
This commit is contained in:
@@ -72,9 +72,7 @@ func (rsd *SessionDelegate) OnChannelAnswer(ev Event, s *Session) {
|
||||
}
|
||||
|
||||
func (rsd *SessionDelegate) OnChannelHangupComplete(ev Event, s *Session) {
|
||||
log.Print(s)
|
||||
log.Print(s.CallCosts)
|
||||
if len(s.CallCosts) == 0 {
|
||||
if s != nil && len(s.CallCosts) == 0 {
|
||||
return // why would we have 0 callcosts
|
||||
}
|
||||
lastCC := s.CallCosts[len(s.CallCosts)-1]
|
||||
|
||||
Reference in New Issue
Block a user