sip-router
23 months agoadd code of conduct, as decided from the Kamailio management and admin team
Henning Westerholt [Thu, 11 Oct 2018 07:47:29 +0000 (09:47 +0200)]
add code of conduct, as decided from the Kamailio management and admin team

- add code of conduct, as decided from the Kamailio management and admin team
- this code of conduct was adapted from the Debian Code of Conduct
- several edits have been made from the team for readability and to fit to our project scope

23 months agoRevert "sl: new pv $ltt(key) - return local generated to tag"
Daniel-Constantin Mierla [Wed, 10 Oct 2018 10:01:22 +0000 (12:01 +0200)]
Revert "sl: new pv $ltt(key) - return local generated to tag"

This reverts commit 5d0494f9444b73a639a90c4ff2da933fb2d11d5d.

- mistakenly pushed in master, not personal branch

23 months agosl: new pv $ltt(key) - return local generated to tag
Daniel-Constantin Mierla [Tue, 9 Oct 2018 20:17:13 +0000 (22:17 +0200)]
sl: new pv $ltt(key) - return local generated to tag

- the to-tag used when kamailio sends a reply
- $ltt(s) - the to-tag used in stateless replies
- $ltt(t) - the to-tag used in transaction stateful replies (transaction
has to be created at that time, eg., by t_newtran() or in a
branch/failure route, otherwise it returns $null)
- $ltt(x) - $ltt(t) if the transaction was created already, otherwise
$ltt(s)

23 months agosiputils: exported is_user() and uri_param() variants to kemi framework
Daniel-Constantin Mierla [Mon, 8 Oct 2018 09:55:47 +0000 (11:55 +0200)]
siputils: exported is_user() and uri_param() variants to kemi framework

23 months agosiputils: exported is_uri() to kemi interface
Daniel-Constantin Mierla [Sun, 7 Oct 2018 07:59:01 +0000 (09:59 +0200)]
siputils: exported is_uri() to kemi interface

23 months agopkg/kamailio/deb: version set to 5.2.0~pre0
Victor Seva [Mon, 8 Oct 2018 07:12:24 +0000 (09:12 +0200)]
pkg/kamailio/deb: version set to 5.2.0~pre0

23 months agoMakefile.defs: improve and extend comment about compilation mode
Henning Westerholt [Sun, 7 Oct 2018 20:49:58 +0000 (22:49 +0200)]
Makefile.defs: improve and extend comment about compilation mode

23 months agocore: remove obselete parse_hostport functionality, deactivated since 2003
Henning Westerholt [Sun, 7 Oct 2018 08:29:46 +0000 (10:29 +0200)]
core: remove obselete parse_hostport functionality, deactivated since 2003

23 months agoenum: remove old and not compiling code block, deactivated with #ifdef since 2006
Henning Westerholt [Sun, 7 Oct 2018 08:02:03 +0000 (10:02 +0200)]
enum: remove old and not compiling code block, deactivated with #ifdef since 2006

23 months agocore: remove old code for BRANCH_IGNORE_3261_VIA and BRANCH_INCLUDE_FROMTO_BODY
Henning Westerholt [Sun, 7 Oct 2018 07:56:59 +0000 (09:56 +0200)]
core: remove old code for BRANCH_IGNORE_3261_VIA and BRANCH_INCLUDE_FROMTO_BODY

- remove old code for BRANCH_IGNORE_3261_VIA and BRANCH_INCLUDE_FROMTO_BODY
- this was used in pre-3.1 version times and deactivated in #ifdef since 2010

23 months agocore: remove a code block related to hash functions, deactivated with #ifdef since...
Henning Westerholt [Sun, 7 Oct 2018 07:48:05 +0000 (09:48 +0200)]
core: remove a code block related to hash functions, deactivated with #ifdef since 2002

23 months agocore: remove old and not working function, deactivated with an #ifdef since 2003
Henning Westerholt [Sun, 7 Oct 2018 07:38:24 +0000 (09:38 +0200)]
core: remove old and not working function, deactivated with an #ifdef since 2003

23 months agocore: MOD_KAMAILIO/MOD_SER DB URL defines, cleanup after commit #1f70d062b0b9cf1e
Henning Westerholt [Sun, 7 Oct 2018 07:28:39 +0000 (09:28 +0200)]
core: MOD_KAMAILIO/MOD_SER DB URL defines, cleanup after commit #1f70d062b0b9cf1e

23 months agoMakefile.modules: SER_MOD_INTERFACE/KAMAILIO_MOD_INTERFACE cleanup after commit ...
Henning Westerholt [Sun, 7 Oct 2018 07:27:30 +0000 (09:27 +0200)]
Makefile.modules: SER_MOD_INTERFACE/KAMAILIO_MOD_INTERFACE cleanup after commit #1f70d062b0b9cf1e

23 months agocdp: remove a SER_MOD_INTERFACE usage, cleanup after commit #1f70d062b0b9cf1e
Henning Westerholt [Sun, 7 Oct 2018 07:25:44 +0000 (09:25 +0200)]
cdp: remove a SER_MOD_INTERFACE usage, cleanup after commit #1f70d062b0b9cf1e

23 months agokam_to_sr.sh: add a note that this script is now obselete
Henning Westerholt [Sun, 7 Oct 2018 07:16:20 +0000 (09:16 +0200)]
kam_to_sr.sh: add a note that this script is now obselete

23 months agosiputils: use spve fixup instead of pvar
Daniel-Constantin Mierla [Sat, 6 Oct 2018 20:34:41 +0000 (22:34 +0200)]
siputils: use spve fixup instead of pvar

- it includes the later, plus more flexibility to allow static or
dynamic strings

23 months agoMakefile.defs: cleanup the CPUTYPE/mtune definitions for i386 and x86_64
Henning Westerholt [Sat, 6 Oct 2018 16:04:00 +0000 (18:04 +0200)]
Makefile.defs: cleanup the CPUTYPE/mtune definitions for i386 and x86_64

- Makefile.defs: cleanup the CPUTYPE/mtune definitions for i386 and x86_64
- revert change c925278b8ee3492f71a from 2011 for gcc SUSE 4.5.x, now not needed
- use for current gcc (>= gcc 4.2) the generic mtune, which is now available
- From the gcc manual:
  "Produce code optimized for the most common IA32/AMD64/EM64T processors.
  If you know the CPU on which your code will run, then you should use the
  corresponding -mtune or -march option instead of -mtune=generic. But, if
  you do not know exactly what CPU users of your application will have, then
  you should use this option.
  As new processors are deployed in the marketplace, the behavior of this
  option will change. Therefore, if you upgrade to a newer version of GCC,
  code generation controlled by this option will change to reflect the
  processors that are most common at the time that version of GCC is released.
- unify opteron usage, use equivalent athlon64 mtune for old compilers instead
- simplify x86_64 gcc logic, remove now redundant 4.2.x if case
- there should be no performance implications, as we compile without debugging
- we prefer right now to have proper debugging, this would break with agressive
  optimization

23 months agomodules: readme files regenerated - dispatcher ... [skip ci]
Kamailio Dev [Fri, 5 Oct 2018 19:46:30 +0000 (21:46 +0200)]
modules: readme files regenerated - dispatcher ... [skip ci]

23 months agopresence: small spelling fix (bellow -> below)
Henning Westerholt [Fri, 5 Oct 2018 19:39:37 +0000 (21:39 +0200)]
presence:  small spelling fix (bellow -> below)

23 months agotm: small spelling fix (bellow -> below)
Henning Westerholt [Fri, 5 Oct 2018 19:39:25 +0000 (21:39 +0200)]
tm: small spelling fix (bellow -> below)

23 months agodispatcher: small spelling fix (bellow -> below)
Henning Westerholt [Fri, 5 Oct 2018 19:39:10 +0000 (21:39 +0200)]
dispatcher:  small spelling fix (bellow -> below)

23 months agocore: small spelling fix (bellow -> below)
Henning Westerholt [Fri, 5 Oct 2018 19:38:27 +0000 (21:38 +0200)]
core:  small spelling fix (bellow -> below)

23 months agomisc: small spelling fix (bellow -> below)
Henning Westerholt [Fri, 5 Oct 2018 19:38:14 +0000 (21:38 +0200)]
misc:  small spelling fix (bellow -> below)

23 months agodocs: small spelling fix (bellow -> below)
Henning Westerholt [Fri, 5 Oct 2018 19:38:04 +0000 (21:38 +0200)]
docs:  small spelling fix (bellow -> below)

23 months agoCOPYING: small spelling fix (bellow -> below)
Henning Westerholt [Fri, 5 Oct 2018 19:37:27 +0000 (21:37 +0200)]
COPYING: small spelling fix (bellow -> below)

23 months agoMakefile.defs: version set to 5.2.0-pre0
Daniel-Constantin Mierla [Fri, 5 Oct 2018 06:19:37 +0000 (08:19 +0200)]
Makefile.defs: version set to 5.2.0-pre0

- code in master branch is frozen - no new features till branching 5.2
- start of testing period

23 months agoMakefile.defs: version set to 5.2.0-dev9
Daniel-Constantin Mierla [Fri, 5 Oct 2018 05:22:14 +0000 (07:22 +0200)]
Makefile.defs: version set to 5.2.0-dev9

- end of development for 5.2.x release series

23 months agomodules: readme files regenerated - htable ... [skip ci]
Kamailio Dev [Fri, 5 Oct 2018 05:31:52 +0000 (07:31 +0200)]
modules: readme files regenerated - htable ... [skip ci]

23 months agoMerge pull request #1667 from kamailio/cchance/ht-dmq-sync
Daniel-Constantin Mierla [Fri, 5 Oct 2018 05:19:43 +0000 (07:19 +0200)]
Merge pull request #1667 from kamailio/cchance/ht-dmq-sync

htable: added startup synchronization over dmq

23 months agoMerge pull request #1666 from kamailio/lazedo/is-uri
Daniel-Constantin Mierla [Fri, 5 Oct 2018 05:19:27 +0000 (07:19 +0200)]
Merge pull request #1666 from kamailio/lazedo/is-uri

siputils: add is_uri function

23 months agomodules: readme files regenerated - corex ... [skip ci]
Kamailio Dev [Thu, 4 Oct 2018 15:01:39 +0000 (17:01 +0200)]
modules: readme files regenerated - corex ... [skip ci]

23 months agocorex: docs for via_use_xavp_fields()
Daniel-Constantin Mierla [Thu, 4 Oct 2018 14:52:00 +0000 (16:52 +0200)]
corex: docs for via_use_xavp_fields()

23 months agocorex: new function via_use_xavp_fields(mode)
Daniel-Constantin Mierla [Thu, 4 Oct 2018 14:47:52 +0000 (16:47 +0200)]
corex: new function via_use_xavp_fields(mode)

- set/unset the flag for building local Via using fields from
via_xavp_fields xavp

23 months agoxhttp: updates for new signature of via_builder()
Daniel-Constantin Mierla [Thu, 4 Oct 2018 14:47:25 +0000 (16:47 +0200)]
xhttp: updates for new signature of via_builder()

23 months agotm: updates for new signature of via_builder()
Daniel-Constantin Mierla [Thu, 4 Oct 2018 14:47:07 +0000 (16:47 +0200)]
tm: updates for new signature of via_builder()

23 months agoxmlrpc: updates for new signature of via_builder()
Daniel-Constantin Mierla [Thu, 4 Oct 2018 14:46:38 +0000 (16:46 +0200)]
xmlrpc: updates for new signature of via_builder()

23 months agocore: new global parameter xavp_via_fields
Daniel-Constantin Mierla [Thu, 4 Oct 2018 14:45:14 +0000 (16:45 +0200)]
core: new global parameter xavp_via_fields

- set the name of xavp from where to take Via header field: address and
port
- use them to build local Via header

23 months agosiputils: add is_uri function 1666/head
lazedo [Thu, 4 Oct 2018 11:10:57 +0000 (11:10 +0000)]
siputils: add is_uri function

23 months agocores: updates for FL_ADD_XAVP_VIA_PARAMS
Daniel-Constantin Mierla [Thu, 4 Oct 2018 12:15:21 +0000 (14:15 +0200)]
cores: updates for FL_ADD_XAVP_VIA_PARAMS

23 months agocore: renamed FL_ADD_XAVP_VIA to FL_ADD_XAVP_VIA_PARAMS
Daniel-Constantin Mierla [Thu, 4 Oct 2018 12:14:37 +0000 (14:14 +0200)]
core: renamed FL_ADD_XAVP_VIA to FL_ADD_XAVP_VIA_PARAMS

- match better the purpose of the internal flag

23 months agoMakefile.defs: detect gcc v8.x
Daniel-Constantin Mierla [Thu, 4 Oct 2018 08:13:14 +0000 (10:13 +0200)]
Makefile.defs: detect gcc v8.x

23 months agomodules: readme files regenerated - siputils ... [skip ci]
Kamailio Dev [Thu, 4 Oct 2018 06:31:38 +0000 (08:31 +0200)]
modules: readme files regenerated - siputils ... [skip ci]

23 months agosiputils: note that is_first_hop() works only for IP addresses in record route
Daniel-Constantin Mierla [Thu, 4 Oct 2018 06:21:10 +0000 (08:21 +0200)]
siputils: note that is_first_hop() works only for IP addresses in record route

- this is done for reply handling

23 months agocore: async task - handle return code for fcntl(...)
Daniel-Constantin Mierla [Wed, 3 Oct 2018 08:53:28 +0000 (10:53 +0200)]
core: async task - handle return code for fcntl(...)

23 months agokex: proper range for array access of reply stats per code class
Daniel-Constantin Mierla [Wed, 3 Oct 2018 08:47:50 +0000 (10:47 +0200)]
kex: proper range for array access of reply stats per code class

23 months agoMerge pull request #1664 from mslehto/Wsometimes_uninitialized
Daniel-Constantin Mierla [Wed, 3 Oct 2018 07:16:15 +0000 (09:16 +0200)]
Merge pull request #1664 from mslehto/Wsometimes_uninitialized

sipcapture: initialize variable

23 months agopkg/kamailio/deb: version set 5.2.0~dev8 [skip ci]
Victor Seva [Tue, 2 Oct 2018 14:13:32 +0000 (16:13 +0200)]
pkg/kamailio/deb: version set 5.2.0~dev8 [skip ci]

23 months agoMakefile.defs: version set to 5.2.0-dev8
Daniel-Constantin Mierla [Tue, 2 Oct 2018 13:35:48 +0000 (15:35 +0200)]
Makefile.defs: version set to 5.2.0-dev8

23 months agoMakefile.defs: enabled clang compile warning flags -Wunused-variable -Wuninitialized
Daniel-Constantin Mierla [Tue, 2 Oct 2018 13:33:51 +0000 (15:33 +0200)]
Makefile.defs: enabled clang compile warning flags -Wunused-variable -Wuninitialized

23 months agosipcapture: initialize variable 1664/head
Mikko Lehto [Tue, 2 Oct 2018 13:08:06 +0000 (16:08 +0300)]
sipcapture: initialize variable

> sipcapture.c:2580:5: warning: variable 'corrtmp' is used uninitialized whenever 'if' condition is false
>       [-Wsometimes-uninitialized]
>         if(correlation_id) {
>            ^~~~~~~~~~~~~~

23 months agotm: safty checks when destroying the tm cell
Daniel-Constantin Mierla [Tue, 2 Oct 2018 13:00:29 +0000 (15:00 +0200)]
tm: safty checks when destroying the tm cell

23 months agomodules: readme files regenerated - peering ... [skip ci]
Kamailio Dev [Tue, 2 Oct 2018 10:31:39 +0000 (12:31 +0200)]
modules: readme files regenerated - peering ... [skip ci]

23 months agomodules/peering: added a note that the module is obsolete
Juha Heinanen [Tue, 2 Oct 2018 10:21:37 +0000 (13:21 +0300)]
modules/peering: added a note that the module is obsolete

23 months agosdpops: removed unused variable
Daniel-Constantin Mierla [Tue, 2 Oct 2018 10:21:18 +0000 (12:21 +0200)]
sdpops: removed unused variable

23 months agotm: macro to define the ptr address for tm cell uac field
Daniel-Constantin Mierla [Tue, 2 Oct 2018 10:05:09 +0000 (12:05 +0200)]
tm: macro to define the ptr address for tm cell uac field

23 months agomodules: readme files regenerated - sdpops ... [skip ci]
Kamailio Dev [Tue, 2 Oct 2018 10:01:31 +0000 (12:01 +0200)]
modules: readme files regenerated - sdpops ... [skip ci]

23 months agoMerge pull request #1659 from mslehto/sdpops_o_line
Mikko Lehto [Tue, 2 Oct 2018 09:50:54 +0000 (12:50 +0300)]
Merge pull request #1659 from mslehto/sdpops_o_line

23 months agoMerge pull request #1662 from sergey-safarov/spec
Daniel-Constantin Mierla [Tue, 2 Oct 2018 09:26:32 +0000 (11:26 +0200)]
Merge pull request #1662 from sergey-safarov/spec

pkg/docker: updated submodule

23 months agosdpops: add PV documentation 1659/head
Mikko Lehto [Tue, 2 Oct 2018 08:50:17 +0000 (11:50 +0300)]
sdpops: add PV documentation

23 months agotm: reset the tm cell content during free
Daniel-Constantin Mierla [Tue, 2 Oct 2018 06:59:56 +0000 (08:59 +0200)]
tm: reset the tm cell content during free

23 months agomodules/lcr: tried to test unsigned int values against both DB1_INT
Juha Heinanen [Mon, 1 Oct 2018 17:43:43 +0000 (20:43 +0300)]
modules/lcr: tried to test unsigned int values against both DB1_INT
  and DB1_UINT

23 months agonathelper: initialize local variable
Luis Azedo [Mon, 1 Oct 2018 12:57:00 +0000 (13:57 +0100)]
nathelper: initialize local variable

23 months agoRevert "nathelper: fix call to alter_mediaip"
Luis Azedo [Mon, 1 Oct 2018 12:51:08 +0000 (13:51 +0100)]
Revert "nathelper: fix call to alter_mediaip"

This reverts commit 17c14a966ff3ba67ce858dfe424d7cdf5100d4fa.

23 months agopkg/docker: updated submodule 1662/head
Sergey Safarov [Mon, 1 Oct 2018 14:08:04 +0000 (14:08 +0000)]
pkg/docker: updated submodule

23 months agodb_mysql: added parameter unsigend_type
Daniel-Constantin Mierla [Mon, 1 Oct 2018 08:45:52 +0000 (10:45 +0200)]
db_mysql: added parameter unsigend_type

- if set to 1, then the module converts unsigned column value to
DB1_UINT or DB1_UBIGINT

23 months agoregistrar: coherent code formatting
Daniel-Constantin Mierla [Mon, 1 Oct 2018 06:34:21 +0000 (08:34 +0200)]
registrar: coherent code formatting

23 months agolib/srdb1: cast types to get rid of compile warnings
Daniel-Constantin Mierla [Mon, 1 Oct 2018 06:31:29 +0000 (08:31 +0200)]
lib/srdb1: cast types to get rid of compile warnings

23 months agolib/srdb1: handle DB1_UINT and DB1_UBIGINT for db version check
Daniel-Constantin Mierla [Mon, 1 Oct 2018 06:28:38 +0000 (08:28 +0200)]
lib/srdb1: handle DB1_UINT and DB1_UBIGINT for db version check

23 months agocore: test if a module exports functions before converting to core struct
Daniel-Constantin Mierla [Sun, 30 Sep 2018 19:51:41 +0000 (21:51 +0200)]
core: test if a module exports functions before converting to core struct

- reported by Juha Heinanen

23 months agodb_unixodbc: removed history and svn id
Daniel-Constantin Mierla [Sun, 30 Sep 2018 06:26:00 +0000 (08:26 +0200)]
db_unixodbc: removed history and svn id

23 months agomodules: readme files regenerated - tls ... [skip ci]
Kamailio Dev [Sat, 29 Sep 2018 07:01:41 +0000 (09:01 +0200)]
modules: readme files regenerated - tls ... [skip ci]

23 months agotls: docs about using db table with kamcli
Daniel-Constantin Mierla [Sat, 29 Sep 2018 06:54:39 +0000 (08:54 +0200)]
tls: docs about using db table with kamcli

23 months agodb_redis: fix reconnection failure bug
Richard Fuchs [Fri, 28 Sep 2018 21:42:11 +0000 (17:42 -0400)]
db_redis: fix reconnection failure bug

23 months agohtable: added startup synchronization over dmq 1667/head
Charles Chance [Fri, 28 Sep 2018 17:09:28 +0000 (19:09 +0200)]
htable: added startup synchronization over dmq

23 months agodb_flatstore: handle DB1_UINT and DB1_UBIGINT DB APIv1 types
Daniel-Constantin Mierla [Fri, 28 Sep 2018 16:30:51 +0000 (18:30 +0200)]
db_flatstore: handle DB1_UINT and DB1_UBIGINT DB APIv1 types

23 months agonathelper: fix call to alter_mediaip
lazedo [Thu, 27 Sep 2018 12:10:18 +0000 (13:10 +0100)]
nathelper: fix call to alter_mediaip

23 months agodb_mysql: add support for unsigned integers in INT and BIGINT DB1 API
Henning Westerholt [Fri, 28 Sep 2018 13:18:39 +0000 (15:18 +0200)]
db_mysql: add support for unsigned integers in INT and BIGINT DB1 API

23 months agodb_redis: handle DB1_UINT and DB1_UBIGINT DB APIv1 types
Daniel-Constantin Mierla [Fri, 28 Sep 2018 13:22:03 +0000 (15:22 +0200)]
db_redis: handle DB1_UINT and DB1_UBIGINT DB APIv1 types

23 months agodb_mongodb: handle DB1_UINT and DB1_UBIGINT DB APIv1 types
Daniel-Constantin Mierla [Fri, 28 Sep 2018 13:04:31 +0000 (15:04 +0200)]
db_mongodb: handle DB1_UINT and DB1_UBIGINT DB APIv1 types

23 months agohttp_async_client: fix module export
Victor Seva [Fri, 28 Sep 2018 12:49:31 +0000 (14:49 +0200)]
http_async_client: fix module export

23 months agoMerge pull request #1654 from grumvalski/non_blocking_async_socket
Federico Cabiddu [Fri, 28 Sep 2018 12:45:47 +0000 (14:45 +0200)]
Merge pull request #1654 from grumvalski/non_blocking_async_socket

Non blocking async socket

23 months agotopos_redis: fix module export
Victor Seva [Fri, 28 Sep 2018 12:41:51 +0000 (14:41 +0200)]
topos_redis: fix module export

23 months agoutils: fix format truncation warning
Victor Seva [Thu, 27 Sep 2018 13:32:31 +0000 (15:32 +0200)]
utils: fix format truncation warning

> conf.c: In function 'update_filter':
> conf.c:211:31: warning: ':' directive output may be truncated writing 1 byte into a region of size between 0 and 1000 [-Wformat-truncation=]
>      snprintf(buf, BUFSIZE, "%s:%s", tmp, token);
>                                ^
> conf.c:211:5: note: 'snprintf' output 2 or more bytes (assuming 1002) into a destination of size 1000
>      snprintf(buf, BUFSIZE, "%s:%s", tmp, token);
>      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

23 months agoims_registrar_scscf: use memcpy() instead of strncpy()
Victor Seva [Thu, 27 Sep 2018 12:39:45 +0000 (14:39 +0200)]
ims_registrar_scscf: use memcpy() instead of strncpy()

> common.c: In function 'extract_aor':
> common.c:88:2: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
>   strncpy(_a->s, "sip:", 4);
>   ^~~~~~~~~~~~~~~~~~~~~~~~~

23 months agopresence:use memcpy() instead of strncpy()
Victor Seva [Thu, 27 Sep 2018 12:34:41 +0000 (14:34 +0200)]
presence:use memcpy() instead of strncpy()

> subscribe.c: In function 'send_2XX_reply':
> subscribe.c:74:2: warning: 'strncpy' output truncated before terminating nul copying 9 bytes from a string of the same length [-Wstringop-truncation]
>   strncpy(hdr_append.s, "Expires: ", 9);
>   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> subscribe.c:77:2: warning: 'strncpy' output truncated before terminating nul copying 2 bytes from a string of the same length [-Wstringop-truncation]
>   strncpy(tmp.s, CRLF, CRLF_LEN);
>   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> subscribe.c:79:2: warning: 'strncpy' output truncated before terminating nul copying 10 bytes from a string of the same length [-Wstringop-truncation]
>   strncpy(tmp.s, "Contact: <", 10);
>   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> subscribe.c:90:5: warning: 'strncpy' output truncated before terminating nul copying 14 bytes from a string of the same length [-Wstringop-truncation]
>      strncpy(tmp.s, ";transport=tcp", 14);
>      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> subscribe.c:95:5: warning: 'strncpy' output truncated before terminating nul copying 14 bytes from a string of the same length [-Wstringop-truncation]
>      strncpy(tmp.s, ";transport=tls", 14);
>      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> subscribe.c:100:5: warning: 'strncpy' output truncated before terminating nul copying 15 bytes from a string of the same length [-Wstringop-truncation]
>      strncpy(tmp.s, ";transport=sctp", 15);
>      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> subscribe.c:105:5: warning: 'strncpy' output truncated before terminating nul copying 13 bytes from a string of the same length [-Wstringop-truncation]
>      strncpy(tmp.s, ";transport=ws", 13);
>      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> subscribe.c:116:2: warning: 'strncpy' output truncated before terminating nul copying 2 bytes from a string of the same length [-Wstringop-truncation]
>   strncpy(tmp.s+1, CRLF, CRLF_LEN);
>   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from subscribe.c:39:
> utils_func.h: In function 'ps_fill_local_contact':
> utils_func.h:142:3: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
>    strncpy(p, "sip:", 4);
>    ^~~~~~~~~~~~~~~~~~~~~

23 months agomohqueue: use memcpy() instead of strncpy()
Victor Seva [Thu, 27 Sep 2018 12:28:18 +0000 (14:28 +0200)]
mohqueue: use memcpy() instead of strncpy()

> mohq_funcs.c: In function 'notify_msg':
> mohq_funcs.c:1475:3: warning: 'strncpy' output truncated before terminating nul copying 2 bytes from a string of the same length [-Wstringop-truncation]
>    strncpy (&pbody->s [pbody->len], SIPEOL, 2);

23 months agoimc: use memcpy() instead of strncpy()
Victor Seva [Thu, 27 Sep 2018 12:22:08 +0000 (14:22 +0200)]
imc: use memcpy() instead of strncpy()

> imc_cmd.c: In function 'imc_handle_list':
> imc_cmd.c:810:2: warning: 'strncpy' output truncated before terminating nul copying 9 bytes from a string of the same length [-Wstringop-truncation]
>   strncpy(p, "Members:\n", 9);
>   ^~~~~~~~~~~~~~~~~~~~~~~~~~~

23 months agodmq: use memcpy() instead of strncpy()
Victor Seva [Thu, 27 Sep 2018 11:37:16 +0000 (13:37 +0200)]
dmq: use memcpy() instead of strncpy()

> notification_peer.c: In function 'create_IP_uri':
> notification_peer.c:100:3: warning: 'strncpy' output truncated before terminating nul copying 5 bytes from a string of the same length [-Wstringop-truncation]
>    strncpy(plist, "sips:", 5);
>    ^~~~~~~~~~~~~~~~~~~~~~~~~~
> notification_peer.c:103:3: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
>    strncpy(plist, "sip:", 4);
>    ^~~~~~~~~~~~~~~~~~~~~~~~~

23 months agosdpops: fetch and manipulate origin line sess-version through pseudo-variable
Mikko Lehto [Fri, 8 Jun 2018 09:29:37 +0000 (12:29 +0300)]
sdpops: fetch and manipulate origin line sess-version through pseudo-variable

23 months agocore: parse SDP origin line sess-version field
Mikko Lehto [Fri, 8 Jun 2018 09:28:39 +0000 (12:28 +0300)]
core: parse SDP origin line sess-version field

23 months agoasync,db_mysql,db_unixodbc: return -1 and free memory if sending task to the async... 1654/head
grumvalski [Thu, 27 Sep 2018 11:54:01 +0000 (13:54 +0200)]
async,db_mysql,db_unixodbc: return -1 and free memory if sending task to the async worker fails

23 months agocore: new parameter async_nonblock
grumvalski [Tue, 14 Nov 2017 08:45:00 +0000 (09:45 +0100)]
core: new parameter async_nonblock

23 months agotopos_redis: fix compilation on precise
Victor Seva [Fri, 28 Sep 2018 12:23:20 +0000 (14:23 +0200)]
topos_redis: fix compilation on precise

23 months agondb_redis: fix compilation on precise
Victor Seva [Fri, 28 Sep 2018 12:22:59 +0000 (14:22 +0200)]
ndb_redis: fix compilation on precise

23 months agodb_redis: fix compilation on precise
Victor Seva [Fri, 28 Sep 2018 12:22:08 +0000 (14:22 +0200)]
db_redis: fix compilation on precise

23 months agooutbound: updated mod_interface
Markus Bönke [Fri, 28 Sep 2018 10:09:38 +0000 (12:09 +0200)]
outbound: updated mod_interface

23 months agondb_mongodb: updated mod_interface
Markus Bönke [Fri, 28 Sep 2018 10:08:55 +0000 (12:08 +0200)]
ndb_mongodb: updated mod_interface

23 months agomtree: updated mod_interface:
Markus Bönke [Fri, 28 Sep 2018 10:08:06 +0000 (12:08 +0200)]
mtree: updated mod_interface:

23 months agoipops: updated mod_interface
Markus Bönke [Fri, 28 Sep 2018 10:07:22 +0000 (12:07 +0200)]
ipops: updated mod_interface