mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Add action type *dynamic_route
This commit is contained in:
committed by
Dan Christian Bogos
parent
ea5ed9eaad
commit
7bf0d2d162
@@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
package console
|
||||
|
||||
import (
|
||||
v1 "github.com/cgrates/cgrates/apier/v1"
|
||||
"github.com/cgrates/cgrates/engine"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
)
|
||||
@@ -28,7 +27,7 @@ func init() {
|
||||
c := &CmdSetRoute{
|
||||
name: "routes_profile_set",
|
||||
rpcMethod: utils.APIerSv1SetRouteProfile,
|
||||
rpcParams: &v1.RouteWithAPIOpts{},
|
||||
rpcParams: &engine.RouteWithAPIOpts{},
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
c.CommandExecuter = &CommandExecuter{c}
|
||||
@@ -37,7 +36,7 @@ func init() {
|
||||
type CmdSetRoute struct {
|
||||
name string
|
||||
rpcMethod string
|
||||
rpcParams *v1.RouteWithAPIOpts
|
||||
rpcParams *engine.RouteWithAPIOpts
|
||||
*CommandExecuter
|
||||
}
|
||||
|
||||
@@ -51,7 +50,7 @@ func (self *CmdSetRoute) RpcMethod() string {
|
||||
|
||||
func (self *CmdSetRoute) RpcParams(reset bool) any {
|
||||
if reset || self.rpcParams == nil {
|
||||
self.rpcParams = &v1.RouteWithAPIOpts{
|
||||
self.rpcParams = &engine.RouteWithAPIOpts{
|
||||
RouteProfile: new(engine.RouteProfile),
|
||||
APIOpts: map[string]any{},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user