[sr-dev] git:master:700617c6: outbound: adjusted log message for trying to import the api

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 4 17:31:55 CET 2015


Module: kamailio
Branch: master
Commit: 700617c6b3707fba16001f82fab6ca0370b23acf
URL: https://github.com/kamailio/kamailio/commit/700617c6b3707fba16001f82fab6ca0370b23acf

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-12-04T17:31:41+01:00

outbound: adjusted log message for trying to import the api

- when module is not loaded, a messages with 'failed' was printed,
  which could trigger an alert even for info level

---

Modified: modules/outbound/api.h

---

Diff:  https://github.com/kamailio/kamailio/commit/700617c6b3707fba16001f82fab6ca0370b23acf.diff
Patch: https://github.com/kamailio/kamailio/commit/700617c6b3707fba16001f82fab6ca0370b23acf.patch

---

diff --git a/modules/outbound/api.h b/modules/outbound/api.h
index b8ed738..bc80589 100644
--- a/modules/outbound/api.h
+++ b/modules/outbound/api.h
@@ -51,7 +51,7 @@ inline static int ob_load_api(ob_api_t *pxb)
 	bind_ob_f bind_ob_exports;
 	if (!(bind_ob_exports = (bind_ob_f)find_export("bind_ob", 1, 0)))
 	{
-		LM_INFO("Failed to import bind_ob\n");
+		LM_INFO("unable to import bind_ob - maybe module is not loaded\n");
 		return -1;
 	}
 	return bind_ob_exports(pxb);




More information about the sr-dev mailing list