Module: sip-router
Branch: 3.1
Commit: 58b0bafff9354282750035ec239f16750178f200
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=58b0bafff9354282750035ec239f16750178f200

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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
(cherry picked from commit 72c052a94ce3a5fd2baefc74861d797c1a404a1a)

---

 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);
        }
 


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to