Module: kamailio
Branch: master
Commit: 4f587124998e665c5ab9df7fe14cfbb3a39a9ec8
URL: https://github.com/kamailio/kamailio/commit/4f587124998e665c5ab9df7fe14cfbb…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2017-06-30T11:00:35+02:00
db_mysql Look for MariaDB as well as MySQL
---
Modified: src/modules/db_mysql/Makefile
---
Diff: https://github.com/kamailio/kamailio/commit/4f587124998e665c5ab9df7fe14cfbb…
Patch: https://github.com/kamailio/kamailio/commit/4f587124998e665c5ab9df7fe14cfbb…
---
diff --git a/src/modules/db_mysql/Makefile b/src/modules/db_mysql/Makefile
index fd09bfcce3..c8b48f985d 100644
--- a/src/modules/db_mysql/Makefile
+++ b/src/modules/db_mysql/Makefile
@@ -16,6 +16,10 @@ MYSQLCFG=$(shell which mysql_config)
ifeq ($(MYSQLCFG),)
MYSQLCFG=$(shell which mysql_config5)
endif
+# If no Mysql - do we have MariaDB?
+ifeq ($(MYSQLCFG),)
+MYSQLCFG=$(shell which mariadb_config)
+endif
endif
ifneq ($(MYSQLCFG),)
hi
iam implementing ims so far i have done calling through sip clients like
xlite and jitsi now i lke to add offline charging to my IMS modules.can an
one suggest how can i add??
When DBENGINE=PGSQL and DBPORT is set in kamctlrc the DBHOST is used instead of DBPORT (typo in utils/kamctl/kamdbctl.pgsql lines 58-59) when issuing the 'psql' command. This introduces a bug that appears to be fixed in the master branch.
--
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/commit/18e3327bedc1647a5abe0d377b15b74…
Module: kamailio
Branch: master
Commit: 5e8f84e9c7d3ef792ea8b0520087ae3e933fda39
URL: https://github.com/kamailio/kamailio/commit/5e8f84e9c7d3ef792ea8b0520087ae3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-06-28T17:22:34+02:00
.github: added pull request template
---
Added: .github/PULL_REQUEST_TEMPLATE.md
---
Diff: https://github.com/kamailio/kamailio/commit/5e8f84e9c7d3ef792ea8b0520087ae3…
Patch: https://github.com/kamailio/kamailio/commit/5e8f84e9c7d3ef792ea8b0520087ae3…
---
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000000..2ce2261892
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,37 @@
+<!-- Kamailio Pull Request Template -->
+
+<!--
+IMPORTANT:
+ - for detailed contributing guidelines, read:
+ https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
+ - pull requests must be done to master branch, unless they are backports
+ of fixes from master branch to a stable branch
+ - backports to stable branches must be done with 'git cherry-pick -x ...'
+ - code is contributed under BSD for core and main components (tm, sl, auth, tls)
+ - code is contributed GPLv2 or a compatible license for the other components
+ - GPL code is contributed with OpenSSL licensing exception
+-->
+
+#### Pre-Submission Checklist
+<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
+<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
+<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
+- [ ] Commit message has the format required by CONTRIBUTING guide
+- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
+- [ ] Each component has a single commit (if not, squash them into one commit)
+- [ ] No commits to README files for modules (changes must be done to docbook files
+in `doc/` subfolder, the README file is autogenerated)
+
+#### Type Of Change
+- [ ] Small bug fix (non-breaking change which fixes an issue)
+- [ ] New feature (non-breaking change which adds new functionality)
+- [ ] Breaking change (fix or feature that would change existing functionality)
+
+#### Checklist:
+<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
+- [ ] PR should be backported to stable branches
+- [ ] Tested changes locally
+- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
+
+#### Description
+<!-- Describe your changes in detail -->
These warnings should be eliminated in order to make compilation readable:
CC (gcc) [M tls.so] tls_locking.o
tls_locking.c:98:13: warning: 'locking_f' defined but not used [-Wunused-function]
static void locking_f(int mode, int n, const char* file, int line)
^~~~~~~~~
tls_locking.c:83:13: warning: 'dyn_destroy_f' defined but not used [-Wunused-function]
static void dyn_destroy_f(struct CRYPTO_dynlock_value *l,
^~~~~~~~~~~~~
tls_locking.c:65:13: warning: 'dyn_lock_f' defined but not used [-Wunused-function]
static void dyn_lock_f(int mode, struct CRYPTO_dynlock_value* l,
^~~~~~~~~~
tls_locking.c:42:37: warning: 'dyn_create_f' defined but not used [-Wunused-function]
static struct CRYPTO_dynlock_value* dyn_create_f(const char* file, int line)
^~~~~~~~~~~~
CC (gcc) [M tls.so] tls_init.o
tls_init.c: In function 'init_ssl_methods':
tls_init.c:377:2: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_cli - 1] = TLSv1_client_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1598:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */
^
tls_init.c:378:2: warning: 'TLSv1_server_method' is deprecated [-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_srv - 1] = TLSv1_server_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1597:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) /* TLSv1.0 */
^
tls_init.c:379:2: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1 - 1] = TLSv1_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1596:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */
^
tls_init.c:382:2: warning: 'TLSv1_1_client_method' is deprecated [-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_1_cli - 1] = TLSv1_1_client_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1604:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_client_method(void)) /* TLSv1.1 */
^
tls_init.c:383:2: warning: 'TLSv1_1_server_method' is deprecated [-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_1_srv - 1] = TLSv1_1_server_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1603:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_server_method(void)) /* TLSv1.1 */
^
tls_init.c:384:2: warning: 'TLSv1_1_method' is deprecated [-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_1 - 1] = TLSv1_1_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1602:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */
^
tls_init.c:388:2: warning: 'TLSv1_2_client_method' is deprecated [-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_2_cli - 1] = TLSv1_2_client_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1610:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void)) /* TLSv1.2 */
^
tls_init.c:389:2: warning: 'TLSv1_2_server_method' is deprecated [-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_2_srv - 1] = TLSv1_2_server_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1609:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_server_method(void)) /* TLSv1.2 */
^
tls_init.c:390:2: warning: 'TLSv1_2_method' is deprecated [-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_2 - 1] = TLSv1_2_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1608:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */
^
--
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/issues/1075
Module: kamailio
Branch: master
Commit: 8f242cfb151bbe4fdf4101f4bde59083307e6f8a
URL: https://github.com/kamailio/kamailio/commit/8f242cfb151bbe4fdf4101f4bde5908…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-06-27T15:52:54+02:00
path: documentation for enable_r2 and received_format parameters
---
Modified: src/modules/path/doc/path_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/8f242cfb151bbe4fdf4101f4bde5908…
Patch: https://github.com/kamailio/kamailio/commit/8f242cfb151bbe4fdf4101f4bde5908…
---
diff --git a/src/modules/path/doc/path_admin.xml b/src/modules/path/doc/path_admin.xml
index 31b8a572d9..4712a09716 100644
--- a/src/modules/path/doc/path_admin.xml
+++ b/src/modules/path/doc/path_admin.xml
@@ -143,6 +143,63 @@ modparam("path", "use_received", 1)
</programlisting>
</example>
</section>
+ <section id="path.p.received_format">
+ <title><varname>received_format</varname> (int)</title>
+ <para>
+ If set to 0, the <quote>received</quote> parameter value will be
+ in the escaped SIP URI format.
+ </para>
+ <para>
+ If set to 1, the <quote>received</quote> parameter value will be
+ in the same format as the <quote>alias</quote> parameter added by
+ set_contact_alias() from <quote>nathelper</quote> module (i.e.,
+ <quote>ip~port~protid</quote>). This is a solution with some
+ SIP applications that incorrectly match the transport from
+ received parameter instead of the one from the SIP URI.
+ </para>
+ <para>
+ <emphasis>
+ Default value is 0.
+ </emphasis>
+ </para>
+ <example>
+ <title>Set <varname>received_format</varname> parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("path", "received_format", 1)
+...
+</programlisting>
+ </example>
+ </section>
+ <section id="path.p.enable_r2">
+ <title><varname>enable_r2</varname> (int)</title>
+ <para>
+ If set to 1, the module will add two Path headers, similar to the
+ double Record-Route done by rr module. One Path headers corresponds
+ to incoming network socket and the other to outgoing network socket.
+ The URIs in the Path headers will have the 'r2=on' parameter as well.
+ </para>
+ <para>
+ Note: if enabled, the module adds the two Path headers even when the
+ incoming socket is the same as outgoing socket. Improvements to skip
+ the second Path header in this case may be introduced in the future,
+ meanwhile, if you need to enable this parameter but also deal with
+ same socket routing, use 'insert_hf("Path: <$Ru>\r\n")'.
+ </para>
+ <para>
+ <emphasis>
+ Default value is 0.
+ </emphasis>
+ </para>
+ <example>
+ <title>Set <varname>use_received</varname> parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("path", "use_received", 1)
+...
+</programlisting>
+ </example>
+ </section>
</section>
<section>
Module: kamailio
Branch: master
Commit: 9c9da87943ad86fd4ca3ba8b007cebfcb7d9bc61
URL: https://github.com/kamailio/kamailio/commit/9c9da87943ad86fd4ca3ba8b007cebf…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-06-27T15:02:30+02:00
core: remove inline from implementation of functions declared without it
---
Modified: src/core/parser/parse_uri.c
Modified: src/core/parser/parse_uri.h
---
Diff: https://github.com/kamailio/kamailio/commit/9c9da87943ad86fd4ca3ba8b007cebf…
Patch: https://github.com/kamailio/kamailio/commit/9c9da87943ad86fd4ca3ba8b007cebf…
---
diff --git a/src/core/parser/parse_uri.c b/src/core/parser/parse_uri.c
index 71d56f55c9..0661ce4bfa 100644
--- a/src/core/parser/parse_uri.c
+++ b/src/core/parser/parse_uri.c
@@ -1305,7 +1305,7 @@ static inline int _parse_ruri(str *uri,
if (*status) return 1;
if (parse_uri(uri->s, uri->len, parsed_uri)<0) {
- LOG(L_ERR, "ERROR: _parse_ruri: bad uri <%.*s>\n",
+ LOG(L_ERR, "ERROR: _parse_ruri: bad uri <%.*s>\n",
uri->len, ZSW(uri->s));
*status=0;
return -1;
@@ -1347,7 +1347,8 @@ int parse_orig_ruri(struct sip_msg* msg)
return ret;
}
-inline int normalize_tel_user(char* res, str* src) {
+int normalize_tel_user(char* res, str* src)
+{
int i, l;
l=0;
for (i=0; i<src->len; i++) {
@@ -1360,7 +1361,7 @@ inline int normalize_tel_user(char* res, str* src) {
default:
res[l++]=src->s[i];
}
- }
+ }
return l;
}
@@ -1372,7 +1373,7 @@ str s_tels = STR_STATIC_INIT("tels");
str s_urn = STR_STATIC_INIT("urn");
static str s_null = STR_STATIC_INIT("");
-inline void uri_type_to_str(uri_type type, str *s) {
+void uri_type_to_str(uri_type type, str *s) {
switch (type) {
case SIP_URI_T:
*s = s_sip;
@@ -1400,7 +1401,7 @@ static str s_tls = STR_STATIC_INIT("tls");
static str s_sctp = STR_STATIC_INIT("sctp");
static str s_ws = STR_STATIC_INIT("ws");
-inline void proto_type_to_str(unsigned short type, str *s) {
+void proto_type_to_str(unsigned short type, str *s) {
switch (type) {
case PROTO_UDP:
*s = s_udp;
diff --git a/src/core/parser/parse_uri.h b/src/core/parser/parse_uri.h
index 1638e264f5..a3c8c7142c 100644
--- a/src/core/parser/parse_uri.h
+++ b/src/core/parser/parse_uri.h
@@ -13,8 +13,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -39,7 +39,7 @@ extern str s_sip, s_sips, s_tel, s_tels, s_urn;
/* buf= pointer to begining of uri (sip:x@foo.bar:5060;a=b?h=i)
* len= len of uri
- * returns: fills uri & returns <0 on error or 0 if ok
+ * returns: fills uri & returns <0 on error or 0 if ok
*/
int parse_uri(char *buf, int len, struct sip_uri* uri);
int parse_sip_msg_uri(struct sip_msg* msg);