Module: kamailio
Branch: master
Commit: 58b4ea9ca31305a4450807add2c21e7ecb01614b
URL: https://github.com/kamailio/kamailio/commit/58b4ea9ca31305a4450807add2c21e7…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2015-09-19T12:48:42+01:00
sctp Documentation - change "sercmd" to "kamcmd"
---
Modified: modules/sctp/README
Modified: modules/sctp/doc/sctp_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/58b4ea9ca31305a4450807add2c21e7…
Patch: https://github.com/kamailio/kamailio/commit/58b4ea9ca31305a4450807add2c21e7…
---
diff --git a/modules/sctp/README b/modules/sctp/README
index 1fb71dc..c8f5ffa 100644
--- a/modules/sctp/README
+++ b/modules/sctp/README
@@ -235,7 +235,7 @@ modparam("sctp", "sctp_send_retries", 1)
better performance, but it will also disable some other features that
depend on it (e.g. sctp_assoc_reuse).
- Can be changed at runtime (sercmd sctp assoc_tracking 0), but changes
+ Can be changed at runtime (kamcmd sctp assoc_tracking 0), but changes
will be allowed only if all the other features that depend on it are
turned off (for example it can be turned off only if first
sctp_assoc_reuse was turned off).
diff --git a/modules/sctp/doc/sctp_admin.xml b/modules/sctp/doc/sctp_admin.xml
index 3ede4ca..2fc495a 100644
--- a/modules/sctp/doc/sctp_admin.xml
+++ b/modules/sctp/doc/sctp_admin.xml
@@ -194,7 +194,7 @@ modparam("sctp", "sctp_send_retries", 1)
features that depend on it (e.g. sctp_assoc_reuse).
</para>
<para>
- Can be changed at runtime (sercmd sctp assoc_tracking 0), but changes
+ Can be changed at runtime (&sercmd; sctp assoc_tracking 0), but changes
will be allowed only if all the other features that depend on it are
turned off (for example it can be turned off only if first
sctp_assoc_reuse was turned off).
Module: kamailio
Branch: master
Commit: 52d88ef0f0b0b361419edede208acd459af9fb1a
URL: https://github.com/kamailio/kamailio/commit/52d88ef0f0b0b361419edede208acd4…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2015-09-19T12:46:06+01:00
mi_rpc Change "sercmd" to "kamcmd" in docs
---
Modified: modules/mi_rpc/README
Modified: modules/mi_rpc/doc/mi_rpc_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/52d88ef0f0b0b361419edede208acd4…
Patch: https://github.com/kamailio/kamailio/commit/52d88ef0f0b0b361419edede208acd4…
---
diff --git a/modules/mi_rpc/README b/modules/mi_rpc/README
index 9e93dd8..693fb87 100644
--- a/modules/mi_rpc/README
+++ b/modules/mi_rpc/README
@@ -119,7 +119,7 @@ modparam("mi_rpc","rpc_url","tcp:localhost:2046")
Depending on the version (e.g. mi, mi_dg) it formats the output in a
similar way to the corresponding kamailio mi module:
* mi - uses a special, "pretty" format which generates nicer (more
- readable) output when used with sercmd.
+ readable) output when used with kamcmd.
* mi_dg - uses an output format similar to the kamailio mi_datagram
module.
* mi_fifo - uses an output format similar to the kamailio mi_fifo
@@ -135,8 +135,8 @@ modparam("mi_rpc","rpc_url","tcp:localhost:2046")
_parameters_ - the MI command parameters (optional).
- Example using 'sercmd':
-sercmd> mi uptime
+ Example using 'kamcmd':
+kamcmd> mi uptime
Now:: Thu Sep 24 18:17:15 2009
Up since:: Thu Sep 24 17:35:45 2009
Up time:: 2490 [sec]
diff --git a/modules/mi_rpc/doc/mi_rpc_admin.xml b/modules/mi_rpc/doc/mi_rpc_admin.xml
index c51793c..18b4bdc 100644
--- a/modules/mi_rpc/doc/mi_rpc_admin.xml
+++ b/modules/mi_rpc/doc/mi_rpc_admin.xml
@@ -96,7 +96,7 @@ modparam("mi_rpc","rpc_url","tcp:localhost:2046")
<listitem>
<function>mi</function> - uses a special, "pretty" format
which generates nicer (more readable) output when used with
- sercmd.
+ kamcmd.
</listitem>
<listitem>
<function>mi_dg</function> - uses an output format similar to
@@ -125,10 +125,10 @@ modparam("mi_rpc","rpc_url","tcp:localhost:2046")
(optional).
</para>
<para>
- Example using 'sercmd':
+ Example using 'kamcmd':
</para>
<programlisting format="linespecific">
-sercmd> mi uptime
+kamcmd> mi uptime
Now:: Thu Sep 24 18:17:15 2009
Up since:: Thu Sep 24 17:35:45 2009
Up time:: 2490 [sec]
Module: kamailio
Branch: master
Commit: c1a1a1bb054ee79af6ca44d262c8f73c725a2d90
URL: https://github.com/kamailio/kamailio/commit/c1a1a1bb054ee79af6ca44d262c8f73…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2015-09-19T12:43:02+01:00
srdb1 Check if the module is loaded, so the error message makes sense in case of missing module
If a module use a default database and it's not loaded, currently
Kamailio complains that the module doesn't implement an API function
instead of actually telling the Kamailian that the module is not loaded.
This patch modifies that behaviour.
---
Modified: lib/srdb1/db.c
---
Diff: https://github.com/kamailio/kamailio/commit/c1a1a1bb054ee79af6ca44d262c8f73…
Patch: https://github.com/kamailio/kamailio/commit/c1a1a1bb054ee79af6ca44d262c8f73…
---
diff --git a/lib/srdb1/db.c b/lib/srdb1/db.c
index e7323e3..fda8f9e 100644
--- a/lib/srdb1/db.c
+++ b/lib/srdb1/db.c
@@ -199,6 +199,10 @@ int db_bind_mod(const str* mod, db_func_t* mydbf)
tmp = name;
}
+ if (!find_module_by_name(tmp)) {
+ LM_ERR("Module %s not found. Missing loadmodule? \n", tmp);
+ goto error;
+ }
dbind = (db_bind_api_f)find_mod_export(tmp, "db_bind_api", 0, 0);
if(dbind != NULL)
{
Module: kamailio
Branch: master
Commit: 6cbc77a8048fa4c6e4c987b9bfaacad137db1255
URL: https://github.com/kamailio/kamailio/commit/6cbc77a8048fa4c6e4c987b9bfaacad…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2015-09-19T11:40:34+01:00
curl Add information about return value of curl_connect
---
Modified: modules/curl/README
Modified: modules/curl/doc/curl_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/6cbc77a8048fa4c6e4c987b9bfaacad…
Patch: https://github.com/kamailio/kamailio/commit/6cbc77a8048fa4c6e4c987b9bfaacad…
---
diff --git a/modules/curl/README b/modules/curl/README
index 58cf21b..1ce4575 100644
--- a/modules/curl/README
+++ b/modules/curl/README
@@ -294,6 +294,10 @@ content_type, data, result)
Sends HTTP GET or POST request to a given connection. For a POST
request, content-type can be specified.
+ The return value is the HTTP return code (if >=100) or the CURL error
+ code if below 100. See the $curlerror pseudovariable below for more
+ information about CURL error codes.
+
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE, and BRANCH_ROUTE.
diff --git a/modules/curl/doc/curl_admin.xml b/modules/curl/doc/curl_admin.xml
index ce3eba7..3bd7c31 100644
--- a/modules/curl/doc/curl_admin.xml
+++ b/modules/curl/doc/curl_admin.xml
@@ -270,8 +270,13 @@ modparam("curl", "curlcon", "apifour=>http://stockholm.example.com/api/getstuff;
<function moreinfo="none">curl_connect(connection, url, content_type, data, result)</function>
</title>
<para>
- Sends HTTP GET or POST request to a given connection. For a
- POST request, content-type can be specified.
+ Sends HTTP GET or POST request to a given connection. For a
+ POST request, content-type can be specified.
+ </para>
+ <para>
+ The return value is the HTTP return code (if >=100) or the
+ CURL error code if below 100. See the $curlerror pseudovariable
+ below for more information about CURL error codes.
</para>
<para>
This function can be used from REQUEST_ROUTE,