[sr-dev] git:master: dispatcher(k): more verbose logs for MI ds_reload
Daniel-Constantin Mierla
miconda at gmail.com
Fri Nov 12 12:53:53 CET 2010
Module: sip-router
Branch: master
Commit: 72c052a94ce3a5fd2baefc74861d797c1a404a1a
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=72c052a94ce3a5fd2baefc74861d797c1a404a1a
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Fri Nov 12 12:52:27 2010 +0100
dispatcher(k): more verbose logs for MI ds_reload
- if the command is disabled, print error message to syslog with some
hints
---
modules_k/dispatcher/dispatcher.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules_k/dispatcher/dispatcher.c b/modules_k/dispatcher/dispatcher.c
index 3f8f229..59fe0bb 100644
--- a/modules_k/dispatcher/dispatcher.c
+++ b/modules_k/dispatcher/dispatcher.c
@@ -451,7 +451,8 @@ static int mod_init(void)
return -1;
register_timer(ds_ht_timer, NULL, ds_hash_check_interval);
} else {
- LM_ERR("call load dispatching AVP set but no size of hash table\n");
+ LM_ERR("call load dispatching DSTID_AVP set but no size"
+ " for hash table\n");
return -1;
}
}
@@ -716,6 +717,8 @@ static struct mi_root* ds_mi_list(struct mi_root* cmd_tree, void* param)
static struct mi_root* ds_mi_reload(struct mi_root* cmd_tree, void* param)
{
if(dstid_avp_name.n!=0) {
+ LM_ERR("No reload support when call load dispatching is enabled."
+ " Do not set dstid_avp param if you do not use alg 10.\n");
return init_mi_tree(500, MI_ERR_DSLOAD, MI_ERR_DSLOAD_LEN);
}
More information about the sr-dev
mailing list