Module: kamailio
Branch: master
Commit: 159a81aa28895a218466eb5f4d9de8fd510fc30c
URL:
https://github.com/kamailio/kamailio/commit/159a81aa28895a218466eb5f4d9de8f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-12-23T09:37:41+01:00
carrierroute: renamed cr.dump to cr.dump_routes to preserve better old command name
---
Modified: src/modules/carrierroute/carrierroute.c
Modified: src/modules/carrierroute/cr_fifo.c
Modified: src/modules/carrierroute/cr_fifo.h
---
Diff:
https://github.com/kamailio/kamailio/commit/159a81aa28895a218466eb5f4d9de8f…
Patch:
https://github.com/kamailio/kamailio/commit/159a81aa28895a218466eb5f4d9de8f…
---
diff --git a/src/modules/carrierroute/carrierroute.c
b/src/modules/carrierroute/carrierroute.c
index 19934dd..3b260fe 100644
--- a/src/modules/carrierroute/carrierroute.c
+++ b/src/modules/carrierroute/carrierroute.c
@@ -319,12 +319,12 @@ static void rpc_cr_reload_routes(rpc_t *rpc, void *c) {
}
}
-static const char *cr_rpc_dump_doc[2] = {
+static const char *cr_rpc_dump_routes_doc[2] = {
"Dump routes", 0
};
static rpc_export_t rpc_methods[] = {
{ "cr.reload_routes", rpc_cr_reload_routes, rpc_cr_reload_routes_doc, 0},
- { "cr.dump", cr_rpc_dump, cr_rpc_dump_doc, 0},
+ { "cr.dump_routes", cr_rpc_dump_routes, cr_rpc_dump_routes_doc, 0},
{0, 0, 0, 0}
};
diff --git a/src/modules/carrierroute/cr_fifo.c b/src/modules/carrierroute/cr_fifo.c
index be0862b..ca5b6eb 100644
--- a/src/modules/carrierroute/cr_fifo.c
+++ b/src/modules/carrierroute/cr_fifo.c
@@ -1143,7 +1143,7 @@ static int cr_rpc_dump_tree_recursor (rpc_t* rpc, void* ctx, void
*gh,
* @param rpc - RPC API structure
* @param ctx - RPC context
*/
-void cr_rpc_dump(rpc_t* rpc, void* ctx)
+void cr_rpc_dump_routes(rpc_t* rpc, void* ctx)
{
struct route_data_t * rd;
str *tmp_str;
diff --git a/src/modules/carrierroute/cr_fifo.h b/src/modules/carrierroute/cr_fifo.h
index 140dcb7..33916ea 100644
--- a/src/modules/carrierroute/cr_fifo.h
+++ b/src/modules/carrierroute/cr_fifo.h
@@ -138,5 +138,5 @@ struct mi_root* add_host (struct mi_root* cmd_tree, void *param);
struct mi_root* delete_host (struct mi_root* cmd_tree, void * param);
-void cr_rpc_dump(rpc_t* rpc, void* ctx);
+void cr_rpc_dump_routes(rpc_t* rpc, void* ctx);
#endif