more logging for a crash

This commit is contained in:
Radu Ioan Fericean
2012-08-03 13:10:08 +03:00
parent f38dde3076
commit eabec5b2b5

View File

@@ -72,6 +72,8 @@ 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 {
return // why would we have 0 callcosts
}