Build Update for kamailio/kamailio
-------------------------------------
Build: #2421
Status: Errored
Duration: 11 minutes and 2 seconds
Commit: fee3637 (master)
Author: Daniel-Constantin Mierla
Message: lib/srdb1: support for db result with allocated column names
- a db connector module can allocate column names in the result, in that
case it must set the flag:
RES_COL_FLAGS(res) |= DB1_FCOL_FREE;
- the flag is per result, all column names must be allocated or not
- following the discussion on GH #611
View the changeset: https://github.com/kamailio/kamailio/compare/d322a84ceb92...fee3637648b1
View the full build log and details: https://travis-ci.org/kamailio/kamailio/builds/129923867
--
You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications
Module: kamailio
Branch: master
Commit: fee3637648b137391fec7a8ec862b977333ca4be
URL: https://github.com/kamailio/kamailio/commit/fee3637648b137391fec7a8ec862b97…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-05-13T08:08:35+02:00
lib/srdb1: support for db result with allocated column names
- a db connector module can allocate column names in the result, in that
case it must set the flag:
RES_COL_FLAGS(res) |= DB1_FCOL_FREE;
- the flag is per result, all column names must be allocated or not
- following the discussion on GH #611
---
Modified: lib/srdb1/db_res.c
Modified: lib/srdb1/db_res.h
---
Diff: https://github.com/kamailio/kamailio/commit/fee3637648b137391fec7a8ec862b97…
Patch: https://github.com/kamailio/kamailio/commit/fee3637648b137391fec7a8ec862b97…
---
diff --git a/lib/srdb1/db_res.c b/lib/srdb1/db_res.c
index b07965b..d3b9729 100644
--- a/lib/srdb1/db_res.c
+++ b/lib/srdb1/db_res.c
@@ -81,6 +81,10 @@ int db_free_columns(db1_res_t* _r)
for(col = 0; col < RES_COL_N(_r); col++) {
if (RES_NAMES(_r)[col]!=NULL) {
LM_DBG("freeing RES_NAMES[%d] at %p\n", col, RES_NAMES(_r)[col]);
+ /* free column name if it was allocated */
+ if ((RES_COL_FLAGS(_r) & DB1_FCOL_FREE) && RES_NAMES(_r)[col]->s != NULL) {
+ pkg_free(RES_NAMES(_r)[col]->s);
+ }
pkg_free((str *)RES_NAMES(_r)[col]);
RES_NAMES(_r)[col] = NULL;
}
diff --git a/lib/srdb1/db_res.h b/lib/srdb1/db_res.h
index c424d9d..5fe0796 100644
--- a/lib/srdb1/db_res.h
+++ b/lib/srdb1/db_res.h
@@ -38,8 +38,12 @@
struct db_row;
+/* -- column name flags -- */
+/* column name must be freed when db result is destroyed */
+#define DB1_FCOL_FREE (1<<1)
+
/**
- * This type represents a result returned by db_query function (see below). The
+ * This type represents a result returned by db_query function (see below). The
* result can consist of zero or more rows (see db_row_t description).
*
* Note: A variable of type db1_res_t returned by db_query function uses dynamicaly
@@ -54,6 +58,7 @@ typedef struct db1_res {
db_key_t* names; /**< Column names */
db_type_t* types; /**< Column types */
int n; /**< Number of columns */
+ int cflags; /**< Flags of columns */
} col;
struct db_row* rows; /**< Rows */
int n; /**< Number of rows in current fetch */
@@ -69,6 +74,8 @@ typedef struct db1_res {
#define RES_TYPES(re) ((re)->col.types)
/** Return the number of columns */
#define RES_COL_N(re) ((re)->col.n)
+/** Return the flags of columns */
+#define RES_COL_FLAGS(re) ((re)->col.cflags)
/** Return the result rows */
#define RES_ROWS(re) ((re)->rows)
/** Return the number of current result rows */
- default config file is /usr/local/etc/kamailio. kamailio.init CFGFILE should match installed location.
- kamailio is installed in /usr/local/sbin. kamailio.init PATH should have /usr/local/bin:/usr/local/sbin.
- kamailio is installed in /usr/local/sbin. kamailio.init DAEMON should match installed location.
- CFGFILE and ExecStart should match installed locations of kamailio.cfg and kamailio
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/609
-- Commit Summary --
* pkg/kamailio/deb/jessie: change default location
* pkg/kamailio/deb/jessie: kamailio.service should match installed location
-- File Changes --
M pkg/kamailio/deb/jessie/kamailio.init (6)
M pkg/kamailio/deb/jessie/kamailio.service (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/609.patchhttps://github.com/kamailio/kamailio/pull/609.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/609
* show error message if error in write
> CC (clang) [M sms.so] libsms_modem.o
> libsms_modem.c:77:2: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result]
> write(mdm->fd,cmd,cmd_len);
> ^~~~~ ~~~~~~~~~~~~~~~~~~~
>1 warning generated.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/617
-- Commit Summary --
* sms: fix compiler warning #612
-- File Changes --
M modules/sms/libsms_modem.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/617.patchhttps://github.com/kamailio/kamailio/pull/617.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/617
Module: kamailio
Branch: master
Commit: 1d63275f4b1ec07bc554bc1fa77e82dc43159919
URL: https://github.com/kamailio/kamailio/commit/1d63275f4b1ec07bc554bc1fa77e82d…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2016-05-12T21:38:10+02:00
http_client Investigate needs of improvements to the API and add some thoughts to the TODO document
---
Modified: modules/http_client/TODO.txt
---
Diff: https://github.com/kamailio/kamailio/commit/1d63275f4b1ec07bc554bc1fa77e82d…
Patch: https://github.com/kamailio/kamailio/commit/1d63275f4b1ec07bc554bc1fa77e82d…
---
diff --git a/modules/http_client/TODO.txt b/modules/http_client/TODO.txt
index 17eb0b9..81bde1b 100644
--- a/modules/http_client/TODO.txt
+++ b/modules/http_client/TODO.txt
@@ -68,10 +68,33 @@ The http_client module - todo
- Option to configure DNS resolvers for CURL to use
+
+Development API
+---------------
+- xcap_client needs to add headers:
+ char* hdr_name= NULL;
+
+ memset(buf, 0, 128* sizeof(char));
+ match_header= buf;
+
+ hdr_name= (match_type==IF_MATCH)?"If-Match":"If-None-Match";
+
+ len=sprintf(match_header, "%s: %s\n", hdr_name, match_etag);
+
+ match_header[len]= '\0';
+ https://curl.haxx.se/libcurl/c/CURLOPT_HEADERFUNCTION.html
+
+- It also does get a headers from the reply, which needs a callback
+- auth_identify sets the CURLOPT_CAINFO option
+ https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO.html
+ This can be set in the httpconf object
+
+
+
Issues in the bug tracker
-------------------------
-- https://github.com/kamailio/kamailio/issues/542 - open
- Support connection reuse. Needs private memory structures to track connections
+
+- none
Solved issues
@@ -87,4 +110,6 @@ Solved issues
Support TLS client certificates
- https://github.com/kamailio/kamailio/pull/435 - closed
Pull request that fixed a lot of issues.
+- https://github.com/kamailio/kamailio/issues/542 - closed
+ Support connection reuse. Needs private memory structures to track connections
Module: kamailio
Branch: master
Commit: 38ea2e8df7aad20eafbadc02ad5e5618954b749b
URL: https://github.com/kamailio/kamailio/commit/38ea2e8df7aad20eafbadc02ad5e561…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2016-05-12T21:11:00+02:00
http_client update README
---
Modified: modules/http_client/README
---
Diff: https://github.com/kamailio/kamailio/commit/38ea2e8df7aad20eafbadc02ad5e561…
Patch: https://github.com/kamailio/kamailio/commit/38ea2e8df7aad20eafbadc02ad5e561…
---
diff --git a/modules/http_client/README b/modules/http_client/README
index 467b87f..3261911 100644
--- a/modules/http_client/README
+++ b/modules/http_client/README
@@ -84,7 +84,8 @@ Hugh Waite
1.1. http_connect(msg, connection, url, result,
content_type, post)
- 1.2. http_query(msg, url, dest, post)
+ 1.2. int http_connection_exists(str *connection)
+ 1.3. http_query(msg, url, dest, post)
List of Examples
@@ -741,12 +742,14 @@ Chapter 2. Developer Guide
1.1. http_connect(msg, connection, url, result, content_type,
post)
- 1.2. http_query(msg, url, dest, post)
+ 1.2. int http_connection_exists(str *connection)
+ 1.3. http_query(msg, url, dest, post)
1. Available Functions
1.1. http_connect(msg, connection, url, result, content_type, post)
- 1.2. http_query(msg, url, dest, post)
+ 1.2. int http_connection_exists(str *connection)
+ 1.3. http_query(msg, url, dest, post)
1.1. http_connect(msg, connection, url, result, content_type, post)
@@ -777,7 +780,15 @@ Chapter 2. Developer Guide
A string containing the message body to send. Use NULL when a
message body is not required.
-1.2. http_query(msg, url, dest, post)
+1.2. int http_connection_exists(str *connection)
+
+ Check if a connection definition exists. Connections are defined as
+ modparam's in the http_client modules.
+
+ Returns 1 if the connection exists, 0 if a connection with the given
+ name can't be found.
+
+1.3. http_query(msg, url, dest, post)
Sends HTTP GET or POST request to a given connection. If post data is
defined, POST will be used, otherwise GET. The default settings defined