mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 15:48:44 +05:00
Adding some more log for Mo's case
This commit is contained in:
@@ -46,4 +46,5 @@ type Event interface {
|
||||
ParseEventValue(*utils.RSRField) string
|
||||
PassesFieldFilter(*utils.RSRField) (bool, string)
|
||||
AsStoredCdr() *utils.StoredCdr
|
||||
String() string
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ import (
|
||||
"fmt"
|
||||
"log/syslog"
|
||||
"net"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/cgrates/cgrates/config"
|
||||
@@ -253,7 +254,12 @@ func (sm *FSSessionManager) OnChannelAnswer(ev Event) {
|
||||
|
||||
func (sm *FSSessionManager) OnChannelHangupComplete(ev Event) {
|
||||
go sm.processCdr(ev.AsStoredCdr())
|
||||
engine.Logger.Debug(fmt.Sprintf("<SessionManager> OnHangup: StoredCdr: <<<%+v>>>, Event <<<%+v>>>", ev.AsStoredCdr(), ev))
|
||||
engine.Logger.Debug(fmt.Sprintf("<SessionManager> OnHangup: StoredCdr: <%+v>", ev.AsStoredCdr()))
|
||||
engine.Logger.Debug("###EVENT_START###")
|
||||
for _, ln := range strings.Split(ev.String(), "\n") {
|
||||
engine.Logger.Debug(ln)
|
||||
}
|
||||
engine.Logger.Debug("###EVENT_END###")
|
||||
s := sm.GetSession(ev.GetUUID())
|
||||
if s == nil { // Not handled by us
|
||||
return
|
||||
|
||||
@@ -60,6 +60,10 @@ func (osipsev *OsipsEvent) New(evStr string) Event {
|
||||
return osipsev
|
||||
}
|
||||
|
||||
func (osipsev *OsipsEvent) String() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (osipsev *OsipsEvent) GetName() string {
|
||||
return osipsev.osipsEvent.Name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user