Module: kamailio Branch: 5.0 Commit: 04e8f5e732dbfd13f6e321d384134998443b739c URL: https://github.com/kamailio/kamailio/commit/04e8f5e732dbfd13f6e321d384134998...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2017-02-27T14:07:13+01:00
carrierroute: enclosed unused functions in ifdefs
- they were used by mi commands and may be needed when re-introducing the equivalent in rpc commands - reported by GH #1010
(cherry picked from commit c62409bdd317f61df0e7cc16fbb8aa9ccebcefb5)
---
Modified: src/modules/carrierroute/cr_fifo.c
---
Diff: https://github.com/kamailio/kamailio/commit/04e8f5e732dbfd13f6e321d384134998... Patch: https://github.com/kamailio/kamailio/commit/04e8f5e732dbfd13f6e321d384134998...
---
diff --git a/src/modules/carrierroute/cr_fifo.c b/src/modules/carrierroute/cr_fifo.c index 8789c9b..8ae0123 100644 --- a/src/modules/carrierroute/cr_fifo.c +++ b/src/modules/carrierroute/cr_fifo.c @@ -41,6 +41,7 @@ #include "cr_rule.h"
+#ifdef MI_REMOVED /** * Defines the option set for the different fifo commands * Every line is for a command, @@ -54,6 +55,7 @@ static unsigned int opt_settings[5][3] = { {O_HOST|O_DOMAIN|O_PREFIX, O_PROB|O_NEW_TARGET, O_R_PREFIX|O_R_SUFFIX|O_H_INDEX}, {O_HOST|O_DOMAIN|O_PREFIX, O_PROB, O_R_PREFIX|O_R_SUFFIX|O_NEW_TARGET|O_H_INDEX} }; +#endif
int fifo_err;
@@ -456,6 +458,7 @@ static int dump_tree_recursor (struct mi_node* msg, struct dtrie_node_t *node, c } #endif
+#ifdef MI_REMOVED /** * parses the command line argument for options * @@ -606,8 +609,10 @@ static int get_fifo_opts(str * buf, fifo_opt_t * opts, unsigned int opt_set[]) { } return 0; } +#endif
+#ifdef MI_REMOVED /** * loads the config data into shared memory (but doesn't really * share it), updates the routing data and writes it to the config @@ -729,6 +734,7 @@ static int update_route_data(fifo_opt_t * opts) { clear_route_data(rd); return -1; } +#endif
/**