sip-router
2 years agoMerge pull request #1669 from micmac1/master-jsonrpc-portable
Daniel-Constantin Mierla [Thu, 11 Oct 2018 22:33:54 +0000 (00:33 +0200)]
Merge pull request #1669 from micmac1/master-jsonrpc-portable

kamctl: make jsonrpc filter portable

2 years 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

2 years 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

2 years 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)

2 years 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

2 years 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

2 years 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

2 years 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

2 years agokamctl: make jsonrpc filter portable 1669/head
Sebastian Kemper [Sun, 7 Oct 2018 16:54:39 +0000 (18:54 +0200)]
kamctl: make jsonrpc filter portable

The filter has a regex looking for a literal '{' in the beginning of a
line. Some awk implementations interpret this as a meta character, so
the regex is deemed broken. Example with busybox awk (POSIX):

root@hank2:~# kamctl ps
awk: bad regex '^{.+"id"[  ]*:[  ]*[0-9]+[  ]*}$': Invalid contents of {}
root@hank2:~#

To fix this enclose the character in square brackets. This always
matches for a literal '{' and is portable.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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]

2 years 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)

2 years 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)

2 years 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)

2 years 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)

2 years 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)

2 years 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)

2 years 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)

2 years 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

2 years 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

2 years 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]

2 years 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

2 years 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

2 years 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]

2 years 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()

2 years 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

2 years 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()

2 years 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()

2 years 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()

2 years 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

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

2 years 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

2 years 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

2 years 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

2 years 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]

2 years 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

2 years 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(...)

2 years 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

2 years 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

2 years 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]

2 years 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

2 years 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

2 years 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) {
>            ^~~~~~~~~~~~~~

2 years 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

2 years 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]

2 years 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

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

2 years 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

2 years 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]

2 years 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

2 years 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

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

2 years 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

2 years 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

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

2 years 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.

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

2 years 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

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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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]

2 years 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

2 years 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

2 years 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

2 years 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

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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

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

2 years 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);
>      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2 years 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);
>   ^~~~~~~~~~~~~~~~~~~~~~~~~

2 years 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);
>    ^~~~~~~~~~~~~~~~~~~~~

2 years 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);

2 years 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);
>   ^~~~~~~~~~~~~~~~~~~~~~~~~~~

2 years 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);
>    ^~~~~~~~~~~~~~~~~~~~~~~~~

2 years 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

2 years 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

2 years 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

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

2 years 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

2 years 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

2 years 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

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

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