diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c index 483ddb418f3..18b713ce02e 100644 --- a/src/modules/dispatcher/dispatch.c +++ b/src/modules/dispatcher/dispatch.c @@ -1482,16 +1482,16 @@ static inline int ds_get_index(int group, int ds_list_idx, ds_set_t **index) int ds_list_exist(int set) { ds_set_t *si = NULL; - LM_DBG("-- Looking for set %d\n", set); + LM_DBG("looking for destination set [%d]\n", set); /* get the index of the set */ si = ds_avl_find(_ds_list, set); if(si == NULL) { - LM_INFO("destination set [%d] not found\n", set); + LM_DBG("destination set [%d] not found\n", set); return -1; /* False */ } - LM_INFO("destination set [%d] found\n", set); + LM_DBG("destination set [%d] found\n", set); return 1; /* True */ } diff --git a/src/modules/dispatcher/dispatcher.c b/src/modules/dispatcher/dispatcher.c index da5d4c8f626..0be0968ac28 100644 --- a/src/modules/dispatcher/dispatcher.c +++ b/src/modules/dispatcher/dispatcher.c @@ -1025,9 +1025,8 @@ static int w_ds_list_exist(struct sip_msg *msg, char *param, char *p2) if(fixup_get_ivalue(msg, (gparam_p)param, &set) != 0) { LM_ERR("cannot get set id param value\n"); - return -1; + return -2; } - LM_DBG("--- Looking for dispatcher set %d\n", set); return ds_list_exist(set); }