sip-router
23 months agomodules: readme files regenerated - sipcapture ... [skip ci]
Kamailio Dev [Wed, 2 May 2018 10:31:45 +0000 (12:31 +0200)]
modules: readme files regenerated - sipcapture ... [skip ci]

23 months agosipcapture: docs for sip_capture_forward(uri)
Daniel-Constantin Mierla [Wed, 2 May 2018 10:18:57 +0000 (12:18 +0200)]
sipcapture: docs for sip_capture_forward(uri)

23 months agosipcapture: added sip_capture_forward(uri)
Daniel-Constantin Mierla [Wed, 2 May 2018 10:10:45 +0000 (12:10 +0200)]
sipcapture: added sip_capture_forward(uri)

- forward the hep packet to another address
- the address has to bbe provided as parameter in sip uri format
- the function should be used inside event_route[sipcapture:request]
event_route[sipcapture:request] {
    if(src_ip==1.2.3.4) {
        sip_capture_forward("sip:2.3.4.5:5090");
        return 0;
    }
}

23 months agousrloc: removed useless set of db type for expire column
Daniel-Constantin Mierla [Wed, 2 May 2018 06:18:40 +0000 (08:18 +0200)]
usrloc: removed useless set of db type for expire column

23 months agousrloc: use UL_DB_EXPIRES_SET() inside get_all_db_ucontacts()
Konstantin Poliakov [Wed, 2 May 2018 06:15:39 +0000 (08:15 +0200)]
usrloc: use UL_DB_EXPIRES_SET() inside get_all_db_ucontacts()

- fix matching date field for some backends, such as mongodb, as well as
obey ul_expires_type value

23 months agoMerge pull request #1516 from tiglat/tiglat/nathelper_doesnt_ping_all_contacts
Daniel-Constantin Mierla [Wed, 2 May 2018 06:13:06 +0000 (08:13 +0200)]
Merge pull request #1516 from tiglat/tiglat/nathelper_doesnt_ping_all_contacts

nathelper: it doesn't ping contacts if ping_nated_only=0

23 months agotm: readded w_t_reply_wrp()
Daniel-Constantin Mierla [Tue, 1 May 2018 18:52:23 +0000 (20:52 +0200)]
tm: readded w_t_reply_wrp()

- needed for exports to inter-module api
- simplified version after changes in tm reply code
- reported by GH #1517

23 months agonathelper: moved var declaration into the begining of function. 1516/head
Konstantin Poliakov [Mon, 30 Apr 2018 20:57:19 +0000 (23:57 +0300)]
nathelper: moved var declaration into the begining of function.

23 months agomodules: readme files regenerated - tm ... [skip ci]
Kamailio Dev [Mon, 30 Apr 2018 16:01:35 +0000 (18:01 +0200)]
modules: readme files regenerated - tm ... [skip ci]

23 months agotm: small spelling fix in docs (semd -> send)
Henning Westerholt [Mon, 30 Apr 2018 15:47:09 +0000 (17:47 +0200)]
tm: small spelling fix in docs (semd -> send)

23 months agousrloc: renamed global var matching_mode to ul_matching_mode
Daniel-Constantin Mierla [Mon, 30 Apr 2018 10:51:07 +0000 (12:51 +0200)]
usrloc: renamed global var matching_mode to ul_matching_mode

- avoid exports conflict with the other usrloc alternative modules

23 months agomodules: readme files regenerated - tm ... [skip ci]
Kamailio Dev [Mon, 30 Apr 2018 06:31:54 +0000 (08:31 +0200)]
modules: readme files regenerated - tm ... [skip ci]

23 months agotm: docs for t_send_reply()
Daniel-Constantin Mierla [Mon, 30 Apr 2018 06:19:45 +0000 (08:19 +0200)]
tm: docs for t_send_reply()

23 months agonathelper: it doesn't ping contacts if ping_nated_only=0
Konstantin Poliakov [Sun, 29 Apr 2018 18:07:19 +0000 (21:07 +0300)]
nathelper: it doesn't ping contacts if ping_nated_only=0

- nathelper sends ping only if nat flag is specified, but if ping_nated_only=0 it should ping all contact in any case.

23 months agotm: added t_send_reply(code, reason)
Daniel-Constantin Mierla [Sat, 28 Apr 2018 05:51:59 +0000 (07:51 +0200)]
tm: added t_send_reply(code, reason)

- create the transaction if it doesn't exist and send a stateful reply

23 months agotm: removed no longer necessary wrapers for kemi t_reply() export
Daniel-Constantin Mierla [Fri, 27 Apr 2018 09:55:10 +0000 (11:55 +0200)]
tm: removed no longer necessary wrapers for kemi t_reply() export

23 months agotm: avoid temporary clone of reason value for t_reply()
Daniel-Constantin Mierla [Fri, 27 Apr 2018 09:47:20 +0000 (11:47 +0200)]
tm: avoid temporary clone of reason value for t_reply()

- use str field instead of char* for internal _reply() parameter
- split the w_t_reply() to config wrapper and helper functions

23 months agocfgutils: update route_if_exists() to have same behaviour as route()
Daniel-Constantin Mierla [Fri, 27 Apr 2018 06:56:32 +0000 (08:56 +0200)]
cfgutils: update route_if_exists() to have same behaviour as route()

- do not run the route block as a top route
- related to GH #1503

23 months agopkg/kamailio/deb: version set to 5.2.0~dev5
Victor Seva [Thu, 26 Apr 2018 12:06:14 +0000 (14:06 +0200)]
pkg/kamailio/deb: version set to 5.2.0~dev5

23 months agoMakefile.defs: version set to 5.2.0-dev5
Daniel-Constantin Mierla [Thu, 26 Apr 2018 10:46:13 +0000 (12:46 +0200)]
Makefile.defs: version set to 5.2.0-dev5

23 months agoims_charging: Use the "custom_user_avp" also in other places, where the user is retri...
Carsten Bock [Thu, 26 Apr 2018 09:38:44 +0000 (11:38 +0200)]
ims_charging: Use the "custom_user_avp" also in other places, where the user is retrieved (aligning request with the docs)

23 months agodb_mongodb: clone bson UTF8 value into DB val structure
Daniel-Constantin Mierla [Wed, 25 Apr 2018 12:43:42 +0000 (14:43 +0200)]
db_mongodb: clone bson UTF8 value into DB val structure

- the bson iterator invalidates or reuses the memory after several interations
- initial patch by Konstantin Poliakov <k.polyakov@mightycall.com>, GH #1508

23 months agotls: condition on libressl version for declaring BIO data functions
Daniel-Constantin Mierla [Wed, 25 Apr 2018 12:08:00 +0000 (14:08 +0200)]
tls: condition on libressl version for declaring BIO data functions

- it is required only for LIBRESSL_VERSION_NUMBER < 0x20700000L
- fixes compilation on Alpine linux
- part of GH #1511

23 months agotextops: reinitialize new tr_param_t object for tr_txt_parse_re()
lyokha [Tue, 24 Apr 2018 12:46:32 +0000 (14:46 +0200)]
textops: reinitialize new tr_param_t object for tr_txt_parse_re()

- avoid segfault when running fparam_free_restore() on
  such an object immediately after creation, because its field "next"
  contains garbage

23 months agoims_charging: fixed check result code at mscc level (#1504)
yuri-r [Tue, 24 Apr 2018 10:39:07 +0000 (06:39 -0400)]
ims_charging: fixed check result code at mscc level (#1504)

* ims_charging: fixed check result code at mscc level

according to RFC 4006 the Result-Code in Multiple-Services-Credit-Control AVP is optional.
resume_on_initial_ccr() stops proceeding CCA if no Result-Code in MSCC and goes to error1 even though
the Result-Code on CCR itself is 2001 (SUCCESSFUL)

* ims_charging: fixed check result code at mscc level

according to RFC 4006 the Result-Code in Multiple-Services-Credit-Control AVP is optional.
resume_on_initial_ccr() stops proceeding CCA if no Result-Code in MSCC and goes to error1 even though
the Result-Code on CCR itself is 2001 (SUCCESSFUL)

23 months agopv: new variable $mbu - updated msg buffer
Daniel-Constantin Mierla [Mon, 23 Apr 2018 07:22:23 +0000 (09:22 +0200)]
pv: new variable $mbu - updated msg buffer

- get the message buffer after applying changes
- the original buffer stays unchanged

23 months agopv: exported xavp_params_implode() to kemi
Daniel-Constantin Mierla [Sun, 22 Apr 2018 05:58:36 +0000 (07:58 +0200)]
pv: exported xavp_params_implode() to kemi

23 months agocore: add extra via params from xavp
Daniel-Constantin Mierla [Sat, 21 Apr 2018 19:16:04 +0000 (21:16 +0200)]
core: add extra via params from xavp

23 months agomodules: readme files regenerated - pv ... [skip ci]
Kamailio Dev [Fri, 20 Apr 2018 10:47:01 +0000 (12:47 +0200)]
modules: readme files regenerated - pv ... [skip ci]

23 months agopv: docs for xavp_params_implode(...) function
Daniel-Constantin Mierla [Fri, 20 Apr 2018 10:38:17 +0000 (12:38 +0200)]
pv: docs for xavp_params_implode(...) function

23 months agopv: new function - xavp_params_implode(xname, pv)
Daniel-Constantin Mierla [Fri, 20 Apr 2018 10:28:39 +0000 (12:28 +0200)]
pv: new function - xavp_params_implode(xname, pv)

- serialize the subbfields of $xavp(xname) in params format (name=value;)
and set the output to variable pv

23 months agocore: xavp - helper function to serialize subfields in a params list
Daniel-Constantin Mierla [Fri, 20 Apr 2018 09:58:20 +0000 (11:58 +0200)]
core: xavp - helper function to serialize subfields in a params list

23 months agomodules: readme files regenerated - corex ... [skip ci]
Kamailio Dev [Thu, 19 Apr 2018 17:02:14 +0000 (19:02 +0200)]
modules: readme files regenerated - corex ... [skip ci]

23 months agocorex: docs for via_add_xavp_params() function
Daniel-Constantin Mierla [Thu, 19 Apr 2018 16:24:36 +0000 (18:24 +0200)]
corex: docs for via_add_xavp_params() function

23 months agocorex: new function via_add_xavp_params(flags)
Daniel-Constantin Mierla [Thu, 19 Apr 2018 16:17:32 +0000 (18:17 +0200)]
corex: new function via_add_xavp_params(flags)

- control the flag for adding xavp fields to via params

23 months agocore: added internal flag for adding xavp fields to via params
Daniel-Constantin Mierla [Thu, 19 Apr 2018 16:16:59 +0000 (18:16 +0200)]
core: added internal flag for adding xavp fields to via params

23 months agocore: new core parameter xavp_via_params
Daniel-Constantin Mierla [Thu, 19 Apr 2018 15:50:48 +0000 (17:50 +0200)]
core: new core parameter xavp_via_params

- set the name of the xavp whose subfields will be added as via params

23 months agomodules: readme files regenerated - msilo ... [skip ci]
Kamailio Dev [Wed, 18 Apr 2018 07:01:33 +0000 (09:01 +0200)]
modules: readme files regenerated - msilo ... [skip ci]

23 months agomodules: readme files regenerated - jsonrpcs ... [skip ci]
Kamailio Dev [Wed, 18 Apr 2018 06:31:57 +0000 (08:31 +0200)]
modules: readme files regenerated - jsonrpcs ... [skip ci]

23 months agojsonrpcs: set pretty_format param to 1 by default
Daniel-Constantin Mierla [Wed, 18 Apr 2018 06:28:20 +0000 (08:28 +0200)]
jsonrpcs: set pretty_format param to 1 by default

- kamctl relies on it for some response processing

23 months agodrouting: docs - added several section ids
Daniel-Constantin Mierla [Tue, 17 Apr 2018 06:58:03 +0000 (08:58 +0200)]
drouting: docs - added several section ids

23 months agocounters: docs - format section ids
Daniel-Constantin Mierla [Mon, 16 Apr 2018 17:30:09 +0000 (19:30 +0200)]
counters: docs - format section ids

23 months agoMerge pull request #1502 from snen/dialog_fix_dmq_flag_value
Daniel-Constantin Mierla [Mon, 16 Apr 2018 17:19:22 +0000 (19:19 +0200)]
Merge pull request #1502 from snen/dialog_fix_dmq_flag_value

dialog: typo fix for DLG_IFLAG_DMQ_SYNC flag value

23 months agoMerge pull request #1501 from snen/fix_dialog_options_restart
Daniel-Constantin Mierla [Mon, 16 Apr 2018 17:18:48 +0000 (19:18 +0200)]
Merge pull request #1501 from snen/fix_dialog_options_restart

dialog: restore keep-alive after restart

23 months agodialog: typo fix for DLG_IFLAG_DMQ_SYNC flag value 1502/head
Dmitri Savolainen [Mon, 16 Apr 2018 16:43:50 +0000 (19:43 +0300)]
dialog: typo fix for DLG_IFLAG_DMQ_SYNC flag value

23 months agodialog: restore keep-alive after restart 1501/head
Dmitri Savolainen [Mon, 16 Apr 2018 16:32:05 +0000 (19:32 +0300)]
dialog: restore keep-alive after restart

23 months agomodules: readme files regenerated - app_lua ... [skip ci]
Kamailio Dev [Sun, 15 Apr 2018 11:16:56 +0000 (13:16 +0200)]
modules: readme files regenerated - app_lua ... [skip ci]

23 months agoapp_lua: defaut value for reload parameter set to 1
Daniel-Constantin Mierla [Sun, 15 Apr 2018 11:03:14 +0000 (13:03 +0200)]
app_lua: defaut value for reload parameter set to 1

- reload feature enabbled by default, set to 0 to disable

23 months agolcr: docs - added many section ids
Daniel-Constantin Mierla [Sat, 14 Apr 2018 10:14:37 +0000 (12:14 +0200)]
lcr: docs - added many section ids

23 months agondb_mongodb: fix deprecation warning
Victor Seva [Fri, 13 Apr 2018 08:25:17 +0000 (10:25 +0200)]
ndb_mongodb: fix deprecation warning

Since 1.5.0 mongoc_collection_find() is deprecated
> http://mongoc.org/libmongoc/1.5.0/mongoc_collection_find.html

23 months agoRevert "Makefile.modules: add cfg files in module docs also to Makefile, to re-create...
Henning Westerholt [Fri, 13 Apr 2018 15:57:07 +0000 (17:57 +0200)]
Revert "Makefile.modules: add cfg files in module docs also to Makefile, to re-create README on changes"

- This reverts commit 91c36a1a9251bdd775370878437fcc1293b85ea9.
- needs more testing, will not work for some modules

23 months agoMakefile.modules: add cfg files in module docs also to Makefile, to re-create README...
Henning Westerholt [Fri, 13 Apr 2018 15:47:21 +0000 (17:47 +0200)]
Makefile.modules: add cfg files in module docs also to Makefile, to re-create README on changes

23 months agonat_traversal: use the new function names for basic timer processes
Daniel-Constantin Mierla [Fri, 13 Apr 2018 06:23:18 +0000 (08:23 +0200)]
nat_traversal: use the new function names for basic timer processes

23 months agomsilo: remove not working tm parameter in the example cfg, reported from Abdul Basit
Henning Westerholt [Thu, 12 Apr 2018 19:30:26 +0000 (21:30 +0200)]
msilo: remove not working tm parameter in the example cfg, reported from Abdul Basit

- remove the not working, too small tm parameter in the example cfg
- has been not changed in the last 10 years, probably not valid anymore
- reported from Abdul Basit on sr-users

23 months agocore: small spelling fix in WARN message related to server id functionality
Henning Westerholt [Thu, 12 Apr 2018 19:14:15 +0000 (21:14 +0200)]
core: small spelling fix in WARN message related to server id functionality

23 months agotopos: reuse uuid for requests withing dialog
Daniel-Constantin Mierla [Thu, 12 Apr 2018 12:51:15 +0000 (14:51 +0200)]
topos: reuse uuid for requests withing dialog

- related to GH #1496

23 months agoMerge pull request #1497 from kamailio/vseva/fix_cdp
ng-voice GmbH [Thu, 12 Apr 2018 11:58:54 +0000 (13:58 +0200)]
Merge pull request #1497 from kamailio/vseva/fix_cdp

cdp: fix compilation warning

23 months agocdp: fix compilation warning vseva/fix_cdp 1497/head
Victor Seva [Thu, 12 Apr 2018 11:49:12 +0000 (13:49 +0200)]
cdp: fix compilation warning

> CC (clang) [M cdp.so] authstatemachine.o
> authstatemachine.c:748:3: warning: implicit conversion from 'int' to 'char' changes value from 209 to -47 [-Wconstant-conversion]
>                 set_4bytes(x, AAA_SUCCESS);
>                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
> ./diameter.h:77:44: note: expanded from macro 'set_4bytes'
>         (_b)[2]=((_v)&0x0000ff00)>>8;(_b)[3]=((_v)&0x000000ff);}
>                                             ~ ~~~~^~~~~~~~~~~
> authstatemachine.c:758:3: warning: implicit conversion from 'int' to 'char' changes value from 209 to -47 [-Wconstant-conversion]
>                 set_4bytes(x, AAA_SUCCESS);
>                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
> ./diameter.h:77:44: note: expanded from macro 'set_4bytes'
>         (_b)[2]=((_v)&0x0000ff00)>>8;(_b)[3]=((_v)&0x000000ff);}
>                                             ~ ~~~~^~~~~~~~~~~

> ocs_avp_helper.c:329:3: warning: implicit conversion from 'int' to 'char' changes value from 128 to -128 [-Wconstant-conversion]
>                 set_4bytes(x, 86400);
>                 ^~~~~~~~~~~~~~~~~~~~
> ./../cdp/diameter.h:77:44: note: expanded from macro 'set_4bytes'
>         (_b)[2]=((_v)&0x0000ff00)>>8;(_b)[3]=((_v)&0x000000ff);}
>                                             ~ ~~~~^~~~~~~~~~~

23 months agomodules: readme files regenerated - corex ... [skip ci]
Kamailio Dev [Thu, 12 Apr 2018 10:32:13 +0000 (12:32 +0200)]
modules: readme files regenerated - corex ... [skip ci]

23 months agocorex: fixed prototype for few exported xflags functions to config
Daniel-Constantin Mierla [Thu, 12 Apr 2018 10:28:33 +0000 (12:28 +0200)]
corex: fixed prototype for few exported xflags functions to config

23 months agocorex: documentation for via_add_srvid()
Daniel-Constantin Mierla [Thu, 12 Apr 2018 10:25:52 +0000 (12:25 +0200)]
corex: documentation for via_add_srvid()

23 months agocore: guarded bitwise test
Daniel-Constantin Mierla [Thu, 12 Apr 2018 10:21:52 +0000 (12:21 +0200)]
core: guarded bitwise test

23 months agocorex: added via_add_srvid() function
Daniel-Constantin Mierla [Thu, 12 Apr 2018 10:12:23 +0000 (12:12 +0200)]
corex: added via_add_srvid() function

23 months agocore: new internal msg flag to add srvid param to local via
Daniel-Constantin Mierla [Thu, 12 Apr 2018 07:51:10 +0000 (09:51 +0200)]
core: new internal msg flag to add srvid param to local via

23 months agomodules: readme files regenerated - acc ... [skip ci]
Kamailio Dev [Wed, 11 Apr 2018 21:48:06 +0000 (23:48 +0200)]
modules: readme files regenerated - acc ... [skip ci]

23 months agomodule docs: remove info for confidential security reports again from module FAQs
Henning Westerholt [Wed, 11 Apr 2018 21:41:24 +0000 (23:41 +0200)]
module docs: remove info for confidential security reports again from module FAQs

23 months agodb_redis: Fix scanning large tables
Andreas Granig [Wed, 11 Apr 2018 15:28:32 +0000 (17:28 +0200)]
db_redis: Fix scanning large tables

* When querying large tables (e.g. pre-loading location by usrloc),
  make sure to use O(1) when adding keys by prepending them to list.
* Increase batch size of redis scan command to reduce number of
  redis queries.
* Batch creation of DB_ROW entries to free up memory allocated by
  redis in heap regularly.
* Fix more issues reported by coverity.

23 months agomodules: readme files regenerated - tmx ... [skip ci]
Kamailio Dev [Wed, 11 Apr 2018 13:46:28 +0000 (15:46 +0200)]
modules: readme files regenerated - tmx ... [skip ci]

23 months agotmx: docs - notes that flush x/flags is not needed when doing tm relay
Daniel-Constantin Mierla [Wed, 11 Apr 2018 13:41:21 +0000 (15:41 +0200)]
tmx: docs - notes that flush x/flags is not needed when doing tm relay

23 months agotm: resync xflags on new t_newtran() attempt
Daniel-Constantin Mierla [Wed, 11 Apr 2018 13:09:40 +0000 (15:09 +0200)]
tm: resync xflags on new t_newtran() attempt

- have the same behaviour as for flags
- reported by GH #1490

23 months agopv: added new transformation {uri.tosocket}
Daniel-Constantin Mierla [Tue, 10 Apr 2018 11:52:14 +0000 (13:52 +0200)]
pv: added new transformation {uri.tosocket}

- converts a sip uri to socket address format
- from sip:address:port;transport=proto to proto:address:port

23 months agopv: new config variable $sas
Daniel-Constantin Mierla [Tue, 10 Apr 2018 11:29:01 +0000 (13:29 +0200)]
pv: new config variable $sas

- return source address in socket format (proto:address:port)

23 months agocore: added helper function to retrieve source address in socket format
Daniel-Constantin Mierla [Tue, 10 Apr 2018 11:28:34 +0000 (13:28 +0200)]
core: added helper function to retrieve source address in socket format

23 months agomodules: readme files regenerated - corex ... [skip ci]
Kamailio Dev [Tue, 10 Apr 2018 10:46:38 +0000 (12:46 +0200)]
modules: readme files regenerated - corex ... [skip ci]

23 months agocorex: added documentation for set_source_address()
Daniel-Constantin Mierla [Tue, 10 Apr 2018 10:33:57 +0000 (12:33 +0200)]
corex: added documentation for set_source_address()

23 months agocorex: added set_source_address() function
Daniel-Constantin Mierla [Tue, 10 Apr 2018 10:28:53 +0000 (12:28 +0200)]
corex: added set_source_address() function

23 months agocore: exposed parse_protohostport() prototype
Daniel-Constantin Mierla [Tue, 10 Apr 2018 08:55:58 +0000 (10:55 +0200)]
core: exposed parse_protohostport() prototype

23 months agondb_redis: fix error introduced commit in 95cfa343857e4: 'for' loop initial decl.
Henning Westerholt [Tue, 10 Apr 2018 05:34:36 +0000 (07:34 +0200)]
ndb_redis: fix error introduced commit in 95cfa343857e4: 'for' loop initial decl.

- fix error related to sentinel patch, introduced in commit 95cfa343857e4
- error: 'for' loop initial declarations are only allowed in C99 mode

23 months agocorex: fix warning about unused ri variable in corex module
Henning Westerholt [Mon, 9 Apr 2018 19:33:41 +0000 (21:33 +0200)]
corex: fix warning about unused ri variable in corex module

23 months agomodules: readme files regenerated - tls ... [skip ci]
Kamailio Dev [Mon, 9 Apr 2018 12:01:30 +0000 (14:01 +0200)]
modules: readme files regenerated - tls ... [skip ci]

23 months agoMerge pull request #1484 from aalba6675/hsm-support
aalba6675 [Mon, 9 Apr 2018 11:58:45 +0000 (19:58 +0800)]
Merge pull request #1484 from aalba6675/hsm-support

tls: add support for OpenSSL engine and private keys in HSM

23 months agotls: add support for OpenSSL engine and private keys in HSM 1484/head
AntonyA [Thu, 15 Mar 2018 13:41:29 +0000 (21:41 +0800)]
tls: add support for OpenSSL engine and private keys in HSM

- add support for OpenSSL engine and loading private keys from HSM
- for when kamailio is a TLS edge proxy and needs to use HSM
- currently we initialize the engine in worker processes as PKCS#11
  libraries are not guaranteed to be fork() safe

- new config params
    - engine: name the OpenSSL engine
    - engine_config: an OpenSSL config format file used to bootstrap engines
    - engine_algorithms: list of algorithms to delegate to the engine

- tested with Gemalto SafeNet Luna (AWS CloudHSM) with RSA and EC private keys
  TLSv1.2 and PFS cipher suites

23 months agodb_redis: fix compilation warning
Victor Seva [Mon, 9 Apr 2018 10:57:00 +0000 (12:57 +0200)]
db_redis: fix compilation warning

> CC (clang) [M db_redis.so] redis_table.o
> redis_table.c:728:27: warning: comparison of constant -1 with expression of type 'unsigned char' is always false [-Wtautological-constant-out-of-range-compare]
>                     if (c == EOF) {
>                        ~ ^  ~~~
> redis_table.c:754:27: warning: comparison of constant -1 with expression of type 'unsigned char' is always false [-Wtautological-constant-out-of-range-compare]
>                     if (c == EOF) {
>                         ~ ^  ~~~
> redis_table.c:794:40: warning: comparison of constant -1 with expression of type 'unsigned char' is always true [-Wtautological-constant-out-of-range-compare]
>                     if (c != '\n' && c != EOF) {
>                                     ~ ^  ~~~
> redis_table.c:807:20: warning: comparison of constant -1 with expression of type 'unsigned char' is always true [-Wtautological-constant-out-of-range-compare]
>         } while (c != EOF);
>                  ~ ^  ~~~

23 months agoMerge pull request #1493 from schmurfy/redis_sentinel
Daniel-Constantin Mierla [Mon, 9 Apr 2018 10:20:12 +0000 (12:20 +0200)]
Merge pull request #1493 from schmurfy/redis_sentinel

ndb_redis: adds support for sentinel

23 months agoMerge pull request #1494 from sergey-safarov/spec_update
Daniel-Constantin Mierla [Mon, 9 Apr 2018 10:16:48 +0000 (12:16 +0200)]
Merge pull request #1494 from sergey-safarov/spec_update

RPM spec update

23 months agomodules: readme files regenerated - corex ... [skip ci]
Kamailio Dev [Mon, 9 Apr 2018 10:16:26 +0000 (12:16 +0200)]
modules: readme files regenerated - corex ... [skip ci]

23 months agocorex: docs for set_send_socket() and set_recv_socket()
Daniel-Constantin Mierla [Mon, 9 Apr 2018 10:11:03 +0000 (12:11 +0200)]
corex: docs for set_send_socket() and set_recv_socket()

23 months agocorex: added set_send_socket() and set_recv_socket()
Daniel-Constantin Mierla [Mon, 9 Apr 2018 10:04:56 +0000 (12:04 +0200)]
corex: added set_send_socket() and set_recv_socket()

- options to set send and recv sockets with parameters containing
variables

23 months agomodules: readme files regenerated - dialog ... [skip ci]
Kamailio Dev [Mon, 9 Apr 2018 08:46:53 +0000 (10:46 +0200)]
modules: readme files regenerated - dialog ... [skip ci]

23 months agodialog: added missing documentation for end_timeout parameter
Daniel-Constantin Mierla [Sun, 8 Apr 2018 07:45:06 +0000 (09:45 +0200)]
dialog: added missing documentation for end_timeout parameter

23 months agodialog: print ref and end_ts in dialog list rpc output
Daniel-Constantin Mierla [Sat, 7 Apr 2018 06:25:49 +0000 (08:25 +0200)]
dialog: print ref and end_ts in dialog list rpc output

23 months agomodules: readme files regenerated - dialog ... [skip ci]
Kamailio Dev [Fri, 6 Apr 2018 07:31:52 +0000 (09:31 +0200)]
modules: readme files regenerated - dialog ... [skip ci]

23 months agodialog: documented dlg_db_load_extra() function
Daniel-Constantin Mierla [Fri, 6 Apr 2018 07:21:56 +0000 (09:21 +0200)]
dialog: documented dlg_db_load_extra() function

- related to #1274

23 months agodialog: added dlg_db_load_extra() function
Daniel-Constantin Mierla [Fri, 6 Apr 2018 07:21:02 +0000 (09:21 +0200)]
dialog: added dlg_db_load_extra() function

- load dialogs from database that are not yet in memory of current
kamailio instance

23 months agomodules: readme files regenerated - textops ... [skip ci]
Kamailio Dev [Thu, 5 Apr 2018 18:16:42 +0000 (20:16 +0200)]
modules: readme files regenerated - textops ... [skip ci]

23 months agotextops: documentation for append_body_part_hex()
Daniel-Constantin Mierla [Thu, 5 Apr 2018 18:03:23 +0000 (20:03 +0200)]
textops: documentation for append_body_part_hex()

23 months agotextops: added function append_body_part_hex(...)
Daniel-Constantin Mierla [Thu, 5 Apr 2018 17:54:33 +0000 (19:54 +0200)]
textops: added function append_body_part_hex(...)

- add a new part to the body, with its content provided in hexa (it is
converted to decimal before appending)

23 months agomodules: readme files regenerated - rtpengine ... [skip ci]
Kamailio Dev [Thu, 5 Apr 2018 12:31:36 +0000 (14:31 +0200)]
modules: readme files regenerated - rtpengine ... [skip ci]

23 months agortpengine: Add description for metadata flag
Claudiu Boriga [Thu, 5 Apr 2018 12:29:37 +0000 (15:29 +0300)]
rtpengine: Add description for metadata flag

23 months agodb_redis: Force table scan if no query keys given
Andreas Granig [Thu, 5 Apr 2018 09:18:47 +0000 (11:18 +0200)]
db_redis: Force table scan if no query keys given