sip-router
4 years agoacc Update README
Olle E. Johansson [Tue, 31 May 2016 14:42:56 +0000 (16:42 +0200)]
acc Update README

4 years agodocbook Update entities
Olle E. Johansson [Tue, 31 May 2016 14:41:32 +0000 (16:41 +0200)]
docbook Update entities

Discovered that the bug tracker reference in a lot of README did not point to github,
so expect a lot of updates

4 years agouserblacklist Update README with a lot of missing documentation
Olle E. Johansson [Tue, 31 May 2016 14:40:56 +0000 (16:40 +0200)]
userblacklist Update README with a lot of missing documentation

4 years agocore: setting the equivalent of IP_TOS socket option for IPv6
Daniel-Constantin Mierla [Mon, 30 May 2016 11:11:06 +0000 (13:11 +0200)]
core: setting the equivalent of IP_TOS socket option for IPv6

- reported in GH #598

4 years agoevapi: start evapi dispatcher process with rpc rank
Daniel-Constantin Mierla [Mon, 30 May 2016 10:38:32 +0000 (12:38 +0200)]
evapi: start evapi dispatcher process with rpc rank

- it may be used for handling responses from external app with sip
  related functions
- reported by GH #622

4 years agondb_mongodb: note about mongodb c driver version and tls
Daniel-Constantin Mierla [Mon, 30 May 2016 10:03:02 +0000 (12:03 +0200)]
ndb_mongodb: note about mongodb c driver version and tls

4 years agodb_mongodb: note about mongodb c driver version and tls
Daniel-Constantin Mierla [Mon, 30 May 2016 10:02:23 +0000 (12:02 +0200)]
db_mongodb: note about mongodb c driver version and tls

4 years agotm: reset T_ASYNC_SUSPENDED flag at beginning of t_continue()
Daniel-Constantin Mierla [Mon, 30 May 2016 09:54:34 +0000 (11:54 +0200)]
tm: reset T_ASYNC_SUSPENDED flag at beginning of t_continue()

- should allow doing t_suspend() inside the route executed by
  t_continue()
- related to GH #644 and #645

4 years agotm: coherent indentation and whitespacing for t suspend code
Daniel-Constantin Mierla [Mon, 30 May 2016 08:35:38 +0000 (10:35 +0200)]
tm: coherent indentation and whitespacing for t suspend code

4 years agosqlops Delete comment about modules_k
Olle E. Johansson [Fri, 27 May 2016 14:13:16 +0000 (16:13 +0200)]
sqlops Delete comment about modules_k

4 years agosqlops Document return values for sql_query()
Olle E. Johansson [Fri, 27 May 2016 14:12:43 +0000 (16:12 +0200)]
sqlops Document return values for sql_query()

4 years agouac: proper skip of uacreg records with empty attributes
Daniel-Constantin Mierla [Fri, 27 May 2016 09:39:09 +0000 (11:39 +0200)]
uac: proper skip of uacreg records with empty attributes

4 years agouac: proper handling of empty attribute for uacreg refresh
Daniel-Constantin Mierla [Fri, 27 May 2016 09:14:26 +0000 (11:14 +0200)]
uac: proper handling of empty attribute for uacreg refresh

- reg_db_set_attr() does a continue on empty value, but for this
  operation was not used inside a loop
- reported by Dmitri Savolainen, GH #643

4 years agoacc_radius Remove SVN ID, history
Olle E. Johansson [Fri, 27 May 2016 07:53:31 +0000 (09:53 +0200)]
acc_radius Remove SVN ID, history

4 years agopv: signed int string representation for avps
Daniel-Constantin Mierla [Thu, 26 May 2016 14:54:54 +0000 (16:54 +0200)]
pv: signed int string representation for avps

4 years agouac: read all 12 columns from uacreg database table
Andrew J Robinson [Thu, 26 May 2016 14:30:35 +0000 (16:30 +0200)]
uac: read all 12 columns from uacreg database table

- fix when the database connector does not have DB_CAP_FETCH capability
- GH #642

4 years agoMerge pull request #639 from AndreasHuber-CH/authinfo_hdr
Daniel-Constantin Mierla [Wed, 25 May 2016 19:42:14 +0000 (21:42 +0200)]
Merge pull request #639 from AndreasHuber-CH/authinfo_hdr

Add support for Authentication-Info header in auth module

4 years agoMerge pull request #638 from mslehto/NULL
Daniel-Constantin Mierla [Wed, 25 May 2016 19:33:28 +0000 (21:33 +0200)]
Merge pull request #638 from mslehto/NULL

Fix variable initialization and NULL pointer dereference issues

4 years agoauth_radius: add NULL for ha1 parameter in auth_api.post_auth 639/head
AndreasHuber-CH [Wed, 25 May 2016 12:48:59 +0000 (14:48 +0200)]
auth_radius: add NULL for ha1 parameter in auth_api.post_auth

auth api was updated to support Authentication-Info header and requires
now the ha1 value in post_auth. NULL is used (because I didn't find the ha1 value)
which makes that the new feature cannot be used with this module.

4 years agouid_auth_db: add ha1 parameter in auth_api.post_auth
AndreasHuber-CH [Wed, 25 May 2016 13:42:29 +0000 (15:42 +0200)]
uid_auth_db: add ha1 parameter in auth_api.post_auth

auth api was updated to support Authentication-Info header and requires
now the ha1 value in post_auth.

4 years agoauth_ephemeral: add ha1 parameter in auth_api.post_auth
AndreasHuber-CH [Wed, 25 May 2016 12:48:23 +0000 (14:48 +0200)]
auth_ephemeral: add ha1 parameter in auth_api.post_auth

auth api was updated to support Authentication-Info header and requires
now the ha1 value in post_auth.

4 years agoauth_db: add ha1 parameter in auth_api.post_auth
AndreasHuber-CH [Wed, 25 May 2016 12:43:39 +0000 (14:43 +0200)]
auth_db: add ha1 parameter in auth_api.post_auth

auth api was updated to support Authentication-Info header and requires
now the ha1 value in post_auth.

4 years agoauth: add support for Authentication-Info header
AndreasHuber-CH [Wed, 25 May 2016 13:30:03 +0000 (15:30 +0200)]
auth: add support for Authentication-Info header

Add an option to include an Authentication-Info header in the response to a successful authentication.
The header can be enabled with the parameter 'add_authinfo_hdr' module parameter.
The implementation follows RFC2617.
The Authentication-Info header is added inside the function post_auth of the auth api.
The parameter HA1 had to be added to the post_auth api function which requires an
update in all auth_* modules that use the module auth api.

4 years agosnmpstats Improve README formatting of list of items in MIB
Olle E. Johansson [Tue, 24 May 2016 13:51:08 +0000 (15:51 +0200)]
snmpstats Improve README formatting of list of items in MIB

4 years agosnmpstats Add improved explanation of memory usage
Olle E. Johansson [Tue, 24 May 2016 13:16:43 +0000 (15:16 +0200)]
snmpstats Add improved explanation of memory usage

Issue #636

4 years agosnmpstats Improve formatting, add comments on InterProcessBuffer growing forever
Olle E. Johansson [Tue, 24 May 2016 13:13:44 +0000 (15:13 +0200)]
snmpstats Improve formatting, add comments on InterProcessBuffer growing forever

4 years agoMerge pull request #634 from snen/uac_flag_update_fix
Daniel-Constantin Mierla [Tue, 24 May 2016 11:50:59 +0000 (13:50 +0200)]
Merge pull request #634 from snen/uac_flag_update_fix

uac: reset UAC_REG_DISABLED flag (if need) after refresh

4 years agomodules/[call_control|mediaproxy]: proper assigment to NULL pointer 638/head
Mikko Lehto [Mon, 23 May 2016 20:49:59 +0000 (23:49 +0300)]
modules/[call_control|mediaproxy]: proper assigment to NULL pointer

CC (clang) [M mediaproxy.so]          mediaproxy.o
mediaproxy.c:1929:27: warning: expression which evaluates to zero treated as a null pointer constant of type 'void *' [-Wnon-literal-null-conversion]
        *_params->param = MPInactive;
                          ^~~~~~~~~~

4 years agomodules/sipcapture: fix possible NULL pointer dereference
Mikko Lehto [Tue, 24 May 2016 09:37:44 +0000 (12:37 +0300)]
modules/sipcapture: fix possible NULL pointer dereference

4 years agomodules/uid_domain: initialize variables
Mikko Lehto [Tue, 24 May 2016 09:27:14 +0000 (12:27 +0300)]
modules/uid_domain: initialize variables

4 years agomodules/rr: initialize to NULL
Mikko Lehto [Tue, 24 May 2016 04:32:33 +0000 (07:32 +0300)]
modules/rr: initialize to NULL

4 years agomodules/http_client: fix NULL pointer dereference
Mikko Lehto [Tue, 24 May 2016 04:14:38 +0000 (07:14 +0300)]
modules/http_client: fix NULL pointer dereference

4 years agouac: reset UAC_REG_DISABLED flag (if need) after refresh 634/head
Dmitri Savolainen [Tue, 24 May 2016 09:51:06 +0000 (12:51 +0300)]
uac: reset UAC_REG_DISABLED flag (if need) after refresh

4 years agokex Fix spelling error and add "core" as an example of a module name
Olle E. Johansson [Tue, 24 May 2016 08:42:38 +0000 (10:42 +0200)]
kex Fix spelling error and add "core" as an example of a module name

4 years agoMakefile.defs: cleaned unnecessary whitespaces
Daniel-Constantin Mierla [Tue, 24 May 2016 07:07:32 +0000 (09:07 +0200)]
Makefile.defs: cleaned unnecessary whitespaces

4 years agoMakefile.defs: detect gcc 6.x
Daniel-Constantin Mierla [Mon, 23 May 2016 22:00:34 +0000 (00:00 +0200)]
Makefile.defs: detect gcc 6.x

- reported by Anthony Messina, GH #633

4 years agoauth: regenerated the readme
Daniel-Constantin Mierla [Mon, 23 May 2016 21:47:09 +0000 (23:47 +0200)]
auth: regenerated the readme

4 years agopresence: regenerated the readme
Daniel-Constantin Mierla [Mon, 23 May 2016 21:46:53 +0000 (23:46 +0200)]
presence: regenerated the readme

4 years agoMerge pull request #630 from tdimitrov/reregister
jaybeepee [Mon, 23 May 2016 10:26:40 +0000 (12:26 +0200)]
Merge pull request #630 from tdimitrov/reregister

ims_registar_scscf: Fix subscr data handling in SAA when no data received from HSS

4 years agoMerge pull request #615 from mslehto/sdpops-remove_by_prefix-bodychk
Daniel-Constantin Mierla [Mon, 23 May 2016 09:47:00 +0000 (11:47 +0200)]
Merge pull request #615 from mslehto/sdpops-remove_by_prefix-bodychk

modules/sdpops: remove_line_by_prefix pre-check cleanup + new test

4 years agoauth: added option to use SHA-256 encryption algorithm for digest authentication
AndreasHuber-CH [Mon, 23 May 2016 09:34:47 +0000 (11:34 +0200)]
auth: added option to use SHA-256 encryption algorithm for digest authentication

- the module paramter "algorithm" was added with the possible values "",
  "MD5" or "SHA-256".
- it allows chosing between MD5 or SHA-256 hash algorithm for digest
  authentication.
- the configured algorithm is advertised in the challenge header.
- the default values is "" which omits the algorithm field in the
  challenge header and uses MD5 for digest authentication.
- submitted via GH pull request #628

4 years agoMerge pull request #631 from mslehto/illumos-warning
Daniel-Constantin Mierla [Mon, 23 May 2016 09:24:31 +0000 (11:24 +0200)]
Merge pull request #631 from mslehto/illumos-warning

lib/srdb1: fix compiler warning

4 years agoMerge pull request #632 from mslehto/SUS
Daniel-Constantin Mierla [Mon, 23 May 2016 09:23:35 +0000 (11:23 +0200)]
Merge pull request #632 from mslehto/SUS

modules/presence_conference: Fix compilation on FreeBSD

4 years agomodules/presence_conference: re-organize preprocessor symbols 632/head
Mikko Lehto [Sat, 21 May 2016 23:43:18 +0000 (02:43 +0300)]
modules/presence_conference: re-organize preprocessor symbols

Fixes compilation on FreeBSD where no special feature request is needed

4 years agolib/srdb1: fix compiler warning 631/head
Mikko Lehto [Tue, 17 May 2016 23:18:52 +0000 (02:18 +0300)]
lib/srdb1: fix compiler warning

> CC (gcc) [L libsrdb1.so.1.0]            db_ut.o
> db_ut.c:57:32: warning: extra tokens at end of #undef directive
>   #undef _XOPEN_SOURCE_EXTENDED 1  /* solaris */
>                                 ^

4 years agoims_registar_scscf: Fix subscr data handling in SAA 630/head
Tsvetomir Dimitrov [Fri, 20 May 2016 13:45:06 +0000 (16:45 +0300)]
ims_registar_scscf: Fix subscr data handling in SAA

During re-registration, in SAR, User-Data-Already-Available AVP is set.
However in SAA handling, error is generated if User-Data is not sent by
the HSS. This behavior is not correct.
For reference, check TS 29.228, Table 6.1.2.1.

4 years agodispatcher: get rid of compile warning about unreachable code
Daniel-Constantin Mierla [Fri, 20 May 2016 05:16:46 +0000 (07:16 +0200)]
dispatcher: get rid of compile warning about unreachable code

4 years agouac: regenerated the readme
Daniel-Constantin Mierla [Thu, 19 May 2016 04:54:49 +0000 (06:54 +0200)]
uac: regenerated the readme

4 years agoMerge pull request #629 from snen/uac_reg_refresh_doc_append
Daniel-Constantin Mierla [Thu, 19 May 2016 04:53:59 +0000 (06:53 +0200)]
Merge pull request #629 from snen/uac_reg_refresh_doc_append

uac: uac.reg_refresh doc is supplemented

4 years agouac: uac.reg_refresh doc is supplemented 629/head
Dmitri Savolainen [Wed, 18 May 2016 17:07:38 +0000 (20:07 +0300)]
uac: uac.reg_refresh doc is supplemented

4 years agomodules/ims_dialog: support for dlg_vars in ims_dialog. taken from orig. dialog module
jaybeepee [Wed, 18 May 2016 13:17:15 +0000 (15:17 +0200)]
modules/ims_dialog: support for dlg_vars in ims_dialog. taken from orig. dialog module

4 years agoMerge pull request #626 from mslehto/strict-aliasing
Daniel-Constantin Mierla [Wed, 18 May 2016 05:10:55 +0000 (07:10 +0200)]
Merge pull request #626 from mslehto/strict-aliasing

lib/srutils: fix gcc warning GH#612

4 years agoMerge pull request #625 from phil-lavin/presence-local-log-facility
Daniel-Constantin Mierla [Wed, 18 May 2016 05:09:08 +0000 (07:09 +0200)]
Merge pull request #625 from phil-lavin/presence-local-log-facility

presence: Add local_log_facility configuration parameter

4 years agoExamples/IMS: Updated configuration examples for various IMS-Nodes
Carsten Bock [Tue, 17 May 2016 19:41:51 +0000 (21:41 +0200)]
Examples/IMS: Updated configuration examples for various IMS-Nodes
- added support for RAVEL
- fixed support for 3GPP 23.228 annex U
- more Info: KamailioWorld 2016: Workshop on deploying IMS and VoLTE with Kamailio

4 years agohttp_async_client: workaround for dealing with HTTP Via format in replies
Federico Cabiddu [Tue, 17 May 2016 12:06:56 +0000 (14:06 +0200)]
http_async_client: workaround for dealing with HTTP Via format in replies

4 years agolib/srutils: fix gcc warning GH#612 626/head
Mikko Lehto [Tue, 17 May 2016 11:49:54 +0000 (14:49 +0300)]
lib/srutils: fix gcc warning GH#612

> sha256.c: In function 'sr_SHA256_Final':
> sha256.c:613:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
>    *(sha2_word64*)&context->buffer[SHA256_SHORT_BLOCK_LENGTH] = context->bitcount;
>    ^
> sha256.c: In function 'SHA512_Last':
> sha256.c:930:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
>    *(sha2_word64*)&context->buffer[SHA512_SHORT_BLOCK_LENGTH] = context->bitcount[1];
>    ^
> sha256.c:931:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
>  *(sha2_word64*)&context->buffer[SHA512_SHORT_BLOCK_LENGTH+8] = context->bitcount[0];
>  ^

4 years agofix compiler warning #612
Victor Seva [Tue, 17 May 2016 11:43:26 +0000 (13:43 +0200)]
fix compiler warning #612

fix compiler warnings due to
> /usr/include/features.h:148:3: warning: "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-W#warnings]
> # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

4 years agoxmlrpc: fix compiler warning #612 620/head
Victor Seva [Tue, 17 May 2016 11:24:05 +0000 (13:24 +0200)]
xmlrpc: fix compiler warning #612

> CC (gcc) [M xmlrpc.so] xmlrpc.o
> In file included from /usr/include/strings.h:26:0,
>                  from xmlrpc.c:28:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

4 years agopresence_xml: fix compiler warning #612
Victor Seva [Tue, 17 May 2016 11:23:11 +0000 (13:23 +0200)]
presence_xml: fix compiler warning #612

> CC (gcc) [M presence_xml.so] pidf.o
> In file included from /usr/include/time.h:27:0,
>                  from pidf.c:50:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

4 years agopresence_dialoginfo: fix compiler warnings #612
Victor Seva [Tue, 17 May 2016 11:22:18 +0000 (13:22 +0200)]
presence_dialoginfo: fix compiler warnings #612

> CC (gcc) [M presence_dialoginfo.so] pidf.o
> In file included from /usr/include/time.h:27:0,
>                  from pidf.c:48:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

4 years agodb2_ldap: fix compiler warnings #612
Victor Seva [Tue, 17 May 2016 11:20:45 +0000 (13:20 +0200)]
db2_ldap: fix compiler warnings #612

> CC (gcc) [M db2_ldap.so] ld_fld.o
> In file included from /usr/include/string.h:25:0,
>                  from ../../str.h:24,
>                  from ld_cfg.h:30,
>                  from ld_fld.h:37,
>                  from ld_fld.c:39:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

4 years agopresence_conference: fix compiler warnings #612
Victor Seva [Tue, 17 May 2016 11:02:22 +0000 (13:02 +0200)]
presence_conference: fix compiler warnings #612

> CC (gcc) [M presence_conference.so] pidf.o
> In file included from /usr/include/time.h:27:0,
>                  from pidf.c:49:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

4 years agodb_mysql: fix compile warning #612
Victor Seva [Tue, 17 May 2016 10:09:02 +0000 (12:09 +0200)]
db_mysql: fix compile warning #612

> CC (gcc) [M db_mysql.so] my_cmd.o
> In file included from /usr/include/string.h:25:0,
>                  from ../../lib/srdb2/../../str.h:24,
>                  from ../../lib/srdb2/db_gen.h:30,
>                  from ../../lib/srdb2/db_drv.h:29,
>                  from my_cmd.h:25,
>                  from my_cmd.c:33:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

4 years agolib/srdb1: fix compiler warning #612
Victor Seva [Fri, 13 May 2016 08:36:45 +0000 (10:36 +0200)]
lib/srdb1: fix compiler warning #612

> CC (gcc) [L libsrdb1.so.1.0]    db_ut.o
> In file included from /usr/include/time.h:27:0,
>                  from db_ut.c:50:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

4 years agoMerge pull request #623 from phil-lavin/pua-dialoginfo-dialog-publish-log-level
Daniel-Constantin Mierla [Tue, 17 May 2016 08:49:27 +0000 (10:49 +0200)]
Merge pull request #623 from phil-lavin/pua-dialoginfo-dialog-publish-log-level

pua_dialoginfo: reduce the log level of every call to dialog_publish

4 years agopresence: Add local_log_facility configuration parameter 625/head
Phil Lavin [Tue, 17 May 2016 08:41:55 +0000 (09:41 +0100)]
presence: Add local_log_facility configuration parameter

Similar to local_log_level - controls the syslog facility of certain log entries

4 years agocfgutils: added more to docs for route exists functions
Daniel-Constantin Mierla [Tue, 17 May 2016 06:16:12 +0000 (08:16 +0200)]
cfgutils: added more to docs for route exists functions

4 years agopua_dialoginfo: reduce the log level of every call to dialog_publish 623/head
Phil Lavin [Mon, 16 May 2016 14:17:04 +0000 (15:17 +0100)]
pua_dialoginfo: reduce the log level of every call to dialog_publish

Change the log level of calls to dialog_publish() from INFO to DBG

4 years agojson: some enhancements to the docs
Daniel-Constantin Mierla [Mon, 16 May 2016 09:53:22 +0000 (11:53 +0200)]
json: some enhancements to the docs

- referring to jansson module for more complex json operations
- added id to exported function section

4 years agousrloc: coonect to db from rpc processes
Daniel-Constantin Mierla [Sun, 15 May 2016 06:52:29 +0000 (08:52 +0200)]
usrloc: coonect to db from rpc processes

- evapi consumers are using rpc rank and there can be save/lookup
  operations
- reported by GH #622

4 years agojanssonrpc-c: relocated error handling section outside of functions section
Daniel-Constantin Mierla [Sat, 14 May 2016 08:18:46 +0000 (10:18 +0200)]
janssonrpc-c: relocated error handling section outside of functions section

4 years agojansson: removed empty parameters section
Daniel-Constantin Mierla [Sat, 14 May 2016 08:11:33 +0000 (10:11 +0200)]
jansson: removed empty parameters section

- added section ids

4 years agoacc_radius: added section ids in docbook
Daniel-Constantin Mierla [Sat, 14 May 2016 07:30:55 +0000 (09:30 +0200)]
acc_radius: added section ids in docbook

4 years agohttp_client Implement failover between connections
Olle E. Johansson [Fri, 13 May 2016 21:01:30 +0000 (23:01 +0200)]
http_client Implement failover between connections

If one http_connect attempt fails you can now switch to another server with
other settings automatically

4 years agodispatcher: fix compiler warning #612
Victor Seva [Fri, 13 May 2016 08:34:33 +0000 (10:34 +0200)]
dispatcher: fix compiler warning #612

> CC (gcc) [M dispatcher.so]      dispatch.o
> dispatch.c: In function 'ds_set_attrs':
> dispatch.c:263:8: warning: 'tmp_rweight' may be used uninitialized in this function [-Wmaybe-uninitialized]
>     int tmp_rweight;
>         ^
> make[3]: 'libkmi.so.1.0' is up to date.

4 years agodmq_usrloc: fix compiler warning #612
Victor Seva [Fri, 13 May 2016 08:25:42 +0000 (10:25 +0200)]
dmq_usrloc: fix compiler warning #612

> CC (gcc) [M dmq_usrloc.so]      usrloc_sync.o
> usrloc_sync.c: In function 'usrloc_dmq_handle_msg':
> usrloc_sync.c:403:12: warning: 'reg_id' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   ci.reg_id = reg_id;
>             ^
> usrloc_sync.c:401:13: warning: 'methods' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   ci.methods = methods;
>              ^
> usrloc_sync.c:405:19: warning: 'last_modified' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   ci.last_modified = last_modified;
>                    ^
> usrloc_sync.c:394:7: warning: 'q' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   ci.q = q;
>        ^
> usrloc_sync.c:399:12: warning: 'cflags' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   ci.cflags = cflags;
>             ^
> usrloc_sync.c:397:11: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   ci.flags = flags;
>            ^
> usrloc_sync.c:396:10: warning: 'cseq' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   ci.cseq = cseq;
>           ^
> usrloc_sync.c:393:13: warning: 'expires' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   ci.expires = expires;
>              ^
> usrloc_sync.c:407:2: warning: 'action' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   switch(action) {
>   ^
> make[3]: 'libsrutils.so.1.0' is up to date.

4 years agolib/srdb1: support for db result with allocated column names
Daniel-Constantin Mierla [Fri, 13 May 2016 06:08:35 +0000 (08:08 +0200)]
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

4 years agokex: add extended core stats (#605)
Victor Seva [Thu, 12 May 2016 20:23:55 +0000 (22:23 +0200)]
kex: add extended core stats (#605)

* requests by method
* replies by status code

4 years agosms: fix compiler warning #612 (#617)
Victor Seva [Thu, 12 May 2016 20:08:28 +0000 (22:08 +0200)]
sms: fix compiler warning #612 (#617)

* 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.

4 years agohttp_client Investigate needs of improvements to the API and add some thoughts to...
Olle E. Johansson [Thu, 12 May 2016 19:38:10 +0000 (21:38 +0200)]
http_client Investigate needs of improvements to the API and add some thoughts to the TODO document

4 years agohttp_client Update README
Olle E. Johansson [Thu, 12 May 2016 19:11:57 +0000 (21:11 +0200)]
http_client Update README

4 years agohttp_client update README
Olle E. Johansson [Thu, 12 May 2016 19:11:00 +0000 (21:11 +0200)]
http_client update README

4 years agohttp_client Add a function to check if a connection exists to the development API
Olle E. Johansson [Thu, 12 May 2016 19:10:07 +0000 (21:10 +0200)]
http_client Add a function to check if a connection exists to the development API

4 years agoMerge pull request #616 from linuxmaniac/vseva/fix_build_warnings
Victor Seva [Thu, 12 May 2016 16:28:20 +0000 (18:28 +0200)]
Merge pull request #616 from linuxmaniac/vseva/fix_build_warnings

corex: fix compiler warning #612

4 years agonsq: fix missing bracket
Emmanuel Schmidbauer [Thu, 12 May 2016 16:13:11 +0000 (12:13 -0400)]
nsq: fix missing bracket

4 years agonsq: fix MWI NOTIFY with 0 Voice Messages
Emmanuel Schmidbauer [Thu, 12 May 2016 16:07:59 +0000 (12:07 -0400)]
nsq: fix MWI NOTIFY with 0 Voice Messages

4 years agotm: updated the reason text for canceled branches after one is answered
Frank Carmickle [Thu, 12 May 2016 16:00:52 +0000 (18:00 +0200)]
tm: updated the reason text for canceled branches after one is answered

- change answered elsewhere to call completed elsewhere
- "Call completed elsewhere", RFC3326, defines this as the string to send
- submited by William King <william.king@quentustech.com>, GH #610

4 years agonsq: update license
Emmanuel Schmidbauer [Thu, 12 May 2016 15:38:41 +0000 (11:38 -0400)]
nsq: update license

4 years agocorex: fix compiler warning #612 616/head
Victor Seva [Thu, 12 May 2016 15:17:51 +0000 (17:17 +0200)]
corex: fix compiler warning #612

* show error message if error in read file

> CC (clang) [M corex.so]     corex_mod.o
> corex_mod.c:352:2: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result]
>         fread(content, fsize, 1, f);
>        ^~~~~ ~~~~~~~~~~~~~~~~~~~~
> 1 warning generated.

4 years agocfgutils: proper check for return code looking up routing block in route_exists()
Daniel-Constantin Mierla [Thu, 12 May 2016 14:52:34 +0000 (16:52 +0200)]
cfgutils: proper check for return code looking up routing block in route_exists()

- when the route block doesn't exist, route_lookup() returns -1, which
  was used to access routing actions due to condition expecting 0 on not
  found. The fix should avoid crashing by accessing invalid addresses.
  Reported by Alex Balashov
- fixed return codes in the configuration file to follow the rules with
  positive being evaluated to true and negative to false
- route_exists() returns the code returned by running actions, like a
  classic sub-route execution

4 years agocore: contribuitions guidelines updated with reporting issues section
Daniel-Constantin Mierla [Thu, 12 May 2016 13:02:58 +0000 (15:02 +0200)]
core: contribuitions guidelines updated with reporting issues section

4 years agocore: added contributing file as per github suggestions
Daniel-Constantin Mierla [Thu, 12 May 2016 12:47:19 +0000 (14:47 +0200)]
core: added contributing file as per github suggestions

- to be automatically linked for each on githup pages for contributions

4 years agotest/unit: update unit 60 615/head
Mikko Lehto [Thu, 12 May 2016 07:58:21 +0000 (10:58 +0300)]
test/unit: update unit 60

sdp_remove_line_by_prefix: test case for empty SIP body

4 years agomodules/sdpops: use parse_sdp() return value to bail out on empty body
Mikko Lehto [Thu, 12 May 2016 07:42:32 +0000 (10:42 +0300)]
modules/sdpops: use parse_sdp() return value to bail out on empty body

4 years agomodules/sdpops: remove duplicate body length arithmetic
Mikko Lehto [Thu, 12 May 2016 06:36:04 +0000 (09:36 +0300)]
modules/sdpops: remove duplicate body length arithmetic

parse_sdp() pre-checks (parser/sdp/sdp.c) are identical

4 years agoupdate headers
lazedo [Wed, 11 May 2016 22:16:35 +0000 (23:16 +0100)]
update headers

4 years agodialog Make sure statistics are updated when initializing from database
Olle E. Johansson [Wed, 11 May 2016 19:59:44 +0000 (21:59 +0200)]
dialog Make sure statistics are updated when initializing from database

Issue #424

4 years agoMerge pull request #613 from kamailio/NSQ/bugfix-segfault-free-topic-channel
Emmanuel Schmidbauer [Wed, 11 May 2016 15:06:26 +0000 (11:06 -0400)]
Merge pull request #613 from kamailio/NSQ/bugfix-segfault-free-topic-channel

nsq: fix segfault on module destroy

4 years agonsq: fix segfault on module destroy 613/head
Emmanuel Schmidbauer [Wed, 11 May 2016 14:34:25 +0000 (10:34 -0400)]
nsq: fix segfault on module destroy

4 years agopkg/kamailio/deb: version set to 5.0.0-dev4
Victor Seva [Wed, 11 May 2016 12:23:36 +0000 (14:23 +0200)]
pkg/kamailio/deb: version set to 5.0.0-dev4