Module: kamailio
Branch: master
Commit: 103b915cffd63b4abab1a3e57b51644eef20e81d
URL:
https://github.com/kamailio/kamailio/commit/103b915cffd63b4abab1a3e57b51644…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2015-09-19T10:26:11+01:00
async: Fix some error messages
---
Modified: modules/async/async_mod.c
Modified: modules/async/async_sleep.c
---
Diff:
https://github.com/kamailio/kamailio/commit/103b915cffd63b4abab1a3e57b51644…
Patch:
https://github.com/kamailio/kamailio/commit/103b915cffd63b4abab1a3e57b51644…
---
diff --git a/modules/async/async_mod.c b/modules/async/async_mod.c
index 2240e70..bc8f0ce 100644
--- a/modules/async/async_mod.c
+++ b/modules/async/async_mod.c
@@ -94,7 +94,7 @@ static int mod_init(void)
{
if (load_tm_api( &tmb ) == -1)
{
- LM_ERR("cannot load the TM-functions\n");
+ LM_ERR("cannot load the TM-functions. Missing TM module?\n");
return -1;
}
@@ -155,7 +155,7 @@ static int w_async_sleep(struct sip_msg* msg, char* sec, char* str2)
if(async_workers<=0)
{
- LM_ERR("no async mod timer wokers\n");
+ LM_ERR("no async mod timer workers (modparam missing?)\n");
return -1;
}
@@ -192,7 +192,7 @@ static int fixup_async_sleep(void** param, int param_no)
ap = (async_param_t*)pkg_malloc(sizeof(async_param_t));
if(ap==NULL)
{
- LM_ERR("no more pkg\n");
+ LM_ERR("no more pkg memory available\n");
return -1;
}
memset(ap, 0, sizeof(async_param_t));
@@ -219,7 +219,7 @@ static int w_async_route(struct sip_msg* msg, char* rt, char* sec)
if(async_workers<=0)
{
- LM_ERR("no async mod timer wokers\n");
+ LM_ERR("no async mod timer workers\n");
return -1;
}
diff --git a/modules/async/async_sleep.c b/modules/async/async_sleep.c
index 8ed62e6..240b693 100644
--- a/modules/async/async_sleep.c
+++ b/modules/async/async_sleep.c
@@ -141,7 +141,7 @@ int async_sleep(struct sip_msg* msg, int seconds, cfg_action_t *act)
ai = (async_item_t*)shm_malloc(sizeof(async_item_t));
if(ai==NULL)
{
- LM_ERR("no more shm\n");
+ LM_ERR("no more shm memory\n");
return -1;
}
memset(ai, 0, sizeof(async_item_t));
@@ -149,7 +149,7 @@ int async_sleep(struct sip_msg* msg, int seconds, cfg_action_t *act)
ai->act = act;
if(tmb.t_suspend(msg, &ai->tindex, &ai->tlabel)<0)
{
- LM_ERR("failed to suppend the processing\n");
+ LM_ERR("failed to suspend the processing\n");
shm_free(ai);
return -1;
}
@@ -239,13 +239,13 @@ int async_send_task(sip_msg_t* msg, cfg_action_t *act)
at = (async_task_t*)shm_malloc(dsize);
if(at==NULL)
{
- LM_ERR("no more shm\n");
+ LM_ERR("no more shm memory\n");
return -1;
}
memset(at, 0, dsize);
if(tmb.t_suspend(msg, &tindex, &tlabel)<0)
{
- LM_ERR("failed to suppend the processing\n");
+ LM_ERR("failed to suspend the processing\n");
shm_free(at);
return -1;
}