SessionS.v1ForkSessions improvements, GetSessionRuns returning all sessions, SMGenericV1.InitiateSession doing authorization also - fixes #1150

This commit is contained in:
DanB
2018-08-31 21:48:11 +02:00
parent 518ebf4f3c
commit 0cffb15262
11 changed files with 110 additions and 62 deletions

View File

@@ -18,7 +18,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
package console
import "github.com/cgrates/cgrates/engine"
import (
"time"
"github.com/cgrates/cgrates/engine"
)
func init() {
c := &CmdGetMaxDuration{
@@ -59,8 +63,8 @@ func (self *CmdGetMaxDuration) PostprocessRpcParams() error {
}
func (self *CmdGetMaxDuration) RpcResult() interface{} {
var f float64
return &f
var d time.Duration
return &d
}
func (self *CmdGetMaxDuration) ClientArgs() []string {