- added new rpc command for terminate a dialog with callid, fromtag and totag.
- added new rpc command to doc and serctl is removed
- added rpc return code to dlg_terminate_dlg function
- added rpc return code to rpc domain reload function
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/555
-- Commit Summary --
* dialog module : new rpc function for terminate
* dialog module : rpc terminate dialog doc added
* domain module : added rpc return code
* dialog module: fixed response
* domain module : fixed response
* dialog module: fixes travis error
* domain module : fixed typo
-- File Changes --
M modules/dialog/dialog.c (46)
M modules/dialog/doc/dialog_admin.xml (46)
M modules/domain/domain_mod.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/555.patchhttps://github.com/kamailio/kamailio/pull/555.diff
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/555
The current implementation uses curl_easy_init() to create a CURL easy handle and curl_easy_cleanup() to destroy the handle, including all open connections within it.
If curl_easy_cleanup() isn't called, it's possible to reuse an open connection for the next http call. To reset the CURL options, curl_easy_reset() can be used instead.
[http_client_keep_connections_open.diff](https://github.com/kamailio/kamailio/files/168832/http_client_keep_connections_open.txt)
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/542
Module: kamailio
Branch: master
Commit: 3acd55dab7c68e50eee69e54908dff57695676fb
URL: https://github.com/kamailio/kamailio/commit/3acd55dab7c68e50eee69e54908dff5…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2016-04-21T22:11:08+02:00
uri_db Change the table version to synch with auth_db
---
Modified: modules/uri_db/uridb_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/3acd55dab7c68e50eee69e54908dff5…
Patch: https://github.com/kamailio/kamailio/commit/3acd55dab7c68e50eee69e54908dff5…
---
diff --git a/modules/uri_db/uridb_mod.c b/modules/uri_db/uridb_mod.c
index e0284c8..cf9f582 100644
--- a/modules/uri_db/uridb_mod.c
+++ b/modules/uri_db/uridb_mod.c
@@ -38,10 +38,11 @@ MODULE_VERSION
/*
* Version of domain table required by the module,
* increment this value if you change the table in
- * an backwards incompatible way
+ * an backwards incompatible way. The subscriber
+ * table version needs to be the same as auth_db use.
*/
#define URI_TABLE_VERSION 1
-#define SUBSCRIBER_TABLE_VERSION 8
+#define SUBSCRIBER_TABLE_VERSION 6 /* From auth_db */
static void destroy(void); /* Module destroy function */
static int child_init(int rank); /* Per-child initialization function */
Module: kamailio
Branch: master
Commit: b424214e564cfb0a5625bbbbb88093e6be0ffc4d
URL: https://github.com/kamailio/kamailio/commit/b424214e564cfb0a5625bbbbb88093e…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2016-04-21T18:21:43+02:00
jansson Update jansson_get doc with return values that was hidden in the source code
---
Modified: modules/jansson/README
Modified: modules/jansson/doc/jansson_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/b424214e564cfb0a5625bbbbb88093e…
Patch: https://github.com/kamailio/kamailio/commit/b424214e564cfb0a5625bbbbb88093e…
---
diff --git a/modules/jansson/README b/modules/jansson/README
index 87d28a8..113fb9a 100644
--- a/modules/jansson/README
+++ b/modules/jansson/README
@@ -110,6 +110,8 @@ Chapter 1. Admin Guide
array notation (e.g. [0]), or a combination of the two (e.g.
foo.bar[0][1].baz).
+ Returns FALSE if the data can not be parsed, TRUE otherwise.
+
The function can put a string, integer, null, or new json string into
destination. If the key/path can't be found in the JSON data structure,
the pvar is not changed. If it had a previous value, that value remains
@@ -117,8 +119,10 @@ Chapter 1. Admin Guide
Example 1.1. jansson_get usage
...
-jansson_get("inner.deep.list[3]", $var(myjson), "$var(n)");
-xlog("foo is $var(n)");
+if(!jansson_get("inner.deep.list[3]", $var(myjson), "$var(n)")) {
+ xlog("L_ERR", "Can't parse json data");
+}
+xlog("L_INFO", "foo is $var(n)");
...
4.2. jansson_set(type, key/path, value, result)
diff --git a/modules/jansson/doc/jansson_admin.xml b/modules/jansson/doc/jansson_admin.xml
index baab686..344de6c 100644
--- a/modules/jansson/doc/jansson_admin.xml
+++ b/modules/jansson/doc/jansson_admin.xml
@@ -73,6 +73,9 @@
The path string supports dot delimited notation (e.g. foo.bar.baz), array notation (e.g. [0]), or a combination of the two (e.g. foo.bar[0][1].baz).
</para>
<para>
+ Returns FALSE if the data can not be parsed, TRUE otherwise.
+ </para>
+ <para>
The function can put a string, integer, null, or new json string into destination.
If the key/path can't be found in the JSON data structure, the pvar is not changed. If it had a previous
value, that value remains unchanged.
@@ -81,8 +84,10 @@
<title><function>jansson_get</function> usage</title>
<programlisting format="linespecific">
...
-jansson_get("inner.deep.list[3]", $var(myjson), "$var(n)");
-xlog("foo is $var(n)");
+if(!jansson_get("inner.deep.list[3]", $var(myjson), "$var(n)")) {
+ xlog("L_ERR", "Can't parse json data");
+}
+xlog("L_INFO", "foo is $var(n)");
...
</programlisting>
</example>