Updated console RpcParams

This commit is contained in:
Trial97
2020-10-21 09:39:06 +03:00
committed by Dan Christian Bogos
parent dbf7fb15be
commit edcc2d959c
36 changed files with 151 additions and 41 deletions

View File

@@ -52,7 +52,12 @@ func (self *CmdSessionsProcessEvent) RpcMethod() string {
func (self *CmdSessionsProcessEvent) RpcParams(reset bool) interface{} {
if reset || self.rpcParams == nil {
self.rpcParams = &sessions.V1ProcessMessageArgs{CGREventWithOpts: &utils.CGREventWithOpts{Opts: make(map[string]interface{})}}
self.rpcParams = &sessions.V1ProcessMessageArgs{
CGREventWithOpts: &utils.CGREventWithOpts{
CGREvent: new(utils.CGREvent),
Opts: make(map[string]interface{}),
},
}
}
return self.rpcParams
}