Action *cdrlog to StorDb, moved GetCallCost and LogCallCost in CdrStorage, local tests for *cdrlog

This commit is contained in:
DanB
2015-04-29 19:50:03 +02:00
parent 3ce339a592
commit 5ce11a28a3
28 changed files with 138 additions and 401 deletions

View File

@@ -18,13 +18,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
package console
import "github.com/cgrates/cgrates/apier/v1"
import (
"github.com/cgrates/cgrates/utils"
)
func init() {
c := &CmdExecuteAction{
name: "action_execute",
rpcMethod: "ApierV1.ExecuteAction",
rpcParams: &v1.AttrExecuteAction{Direction: "*out"},
rpcParams: &utils.AttrExecuteAction{Direction: utils.OUT},
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}
@@ -34,7 +36,7 @@ func init() {
type CmdExecuteAction struct {
name string
rpcMethod string
rpcParams *v1.AttrExecuteAction
rpcParams *utils.AttrExecuteAction
*CommandExecuter
}
@@ -48,7 +50,7 @@ func (self *CmdExecuteAction) RpcMethod() string {
func (self *CmdExecuteAction) RpcParams() interface{} {
if self.rpcParams == nil {
self.rpcParams = &v1.AttrExecuteAction{Direction: "*out"}
self.rpcParams = &utils.AttrExecuteAction{Direction: utils.OUT}
}
return self.rpcParams
}