Module: kamailio
Branch: master
Commit: 55f82b772e53910d94c100903fc5c2c147aa91ea
URL:
https://github.com/kamailio/kamailio/commit/55f82b772e53910d94c100903fc5c2c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-06-07T12:10:25+02:00
dispatcher: use ds_oc_set_rate() function name
- suggests better its purpose
---
Modified: src/modules/dispatcher/dispatch.c
Modified: src/modules/dispatcher/dispatch.h
Modified: src/modules/dispatcher/dispatcher.c
---
Diff:
https://github.com/kamailio/kamailio/commit/55f82b772e53910d94c100903fc5c2c…
Patch:
https://github.com/kamailio/kamailio/commit/55f82b772e53910d94c100903fc5c2c…
---
diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c
index d3ddb81ee82..20fb6f7e85b 100644
--- a/src/modules/dispatcher/dispatch.c
+++ b/src/modules/dispatcher/dispatch.c
@@ -447,7 +447,7 @@ void ds_oc_prepare(ds_dest_t *dp)
/**
*
*/
-int ds_oc_set(sip_msg_t *msg, int setid, str *duri, int ival)
+int ds_oc_set_rate(sip_msg_t *msg, int setid, str *duri, int ival)
{
int i = 0;
int ret = -1;
diff --git a/src/modules/dispatcher/dispatch.h b/src/modules/dispatcher/dispatch.h
index 074771c54c6..f38cd56f255 100644
--- a/src/modules/dispatcher/dispatch.h
+++ b/src/modules/dispatcher/dispatch.h
@@ -300,5 +300,5 @@ int ds_manage_routes(sip_msg_t *msg, ds_select_state_t *rstate);
ds_rctx_t *ds_get_rctx(void);
unsigned int ds_get_hash(str *x, str *y);
-int ds_oc_set(sip_msg_t *msg, int setid, str *uri, int ival);
+int ds_oc_set_rate(sip_msg_t *msg, int setid, str *uri, int ival);
#endif
diff --git a/src/modules/dispatcher/dispatcher.c b/src/modules/dispatcher/dispatcher.c
index 1d838eee818..d8e81f0855a 100644
--- a/src/modules/dispatcher/dispatcher.c
+++ b/src/modules/dispatcher/dispatcher.c
@@ -185,7 +185,7 @@ static int w_ds_reload(struct sip_msg* msg, char*, char*);
static int w_ds_is_active(sip_msg_t *msg, char *pset, char *p2);
static int w_ds_is_active_uri(sip_msg_t *msg, char *pset, char *puri);
static int w_ds_dsg_fetch(sip_msg_t *msg, char *pset, char *p2);
-static int w_ds_oc_set(sip_msg_t*, char*, char*, char*);
+static int w_ds_oc_set_rate(sip_msg_t*, char*, char*, char*);
static int fixup_ds_is_from_list(void** param, int param_no);
static int fixup_ds_list_exist(void** param,int param_no);
@@ -262,7 +262,7 @@ static cmd_export_t cmds[]={
0, 0, 0},
{"ds_reload", (cmd_function)w_ds_reload, 0,
0, 0, ANY_ROUTE},
- {"ds_oc_set", (cmd_function)w_ds_oc_set, 3,
+ {"ds_oc_set_rate", (cmd_function)w_ds_oc_set_rate, 3,
fixup_isi, fixup_free_isi, ANY_ROUTE},
{"ds_dsg_fetch", (cmd_function)w_ds_dsg_fetch, 1,
fixup_igp_null, fixup_free_igp_null, ANY_ROUTE},
@@ -1392,7 +1392,7 @@ static int w_ds_dsg_fetch(sip_msg_t *msg, char *pset, char *p2)
/**
*
*/
-static int w_ds_oc_set(sip_msg_t *msg, char *pset, char *puri, char *pval)
+static int w_ds_oc_set_rate(sip_msg_t *msg, char *pset, char *puri, char *pval)
{
int iset;
str suri;
@@ -1411,7 +1411,7 @@ static int w_ds_oc_set(sip_msg_t *msg, char *pset, char *puri, char
*pval)
return -1;
}
- return ds_oc_set(msg, iset, &suri, ival);
+ return ds_oc_set_rate(msg, iset, &suri, ival);
}
/**