sip-router
3 months agoDelete README 1974/head
alexyosifov [Wed, 5 Jun 2019 06:32:58 +0000 (09:32 +0300)]
Delete README

Will be autogenerated.

3 months agoims_usrloc_pcscf: get_pcontact changes for IPv6
Aleksandar Yosifov [Mon, 3 Jun 2019 14:37:03 +0000 (17:37 +0300)]
ims_usrloc_pcscf: get_pcontact changes for IPv6

- Sometimes IPv6 address is coming with square brackets
  and can not be found in userloc database. The search
  algorithm is not changed, only used methods are changed.

3 months agoims_ipsec_pcscf: IPv6 support
Aleksandar Yosifov [Thu, 23 May 2019 09:06:45 +0000 (12:06 +0300)]
ims_ipsec_pcscf: IPv6 support

- Set authentication algorithm for SA depending of
  parsed security-client info from REGISTER request msg.
  For now, the supported algorithms are md5 and sha1,
  the default algorithm is sha1.

- fill_contact() changes:
  No significant changes, but added a debug message
  and code is more readable.

- Added support for IPv6.
  A new parameter IPSEC_LISTEN_ADDR6 is added in pcscf.cfg
  file that describe IPv6 listen address.
  A new module parameter ipsec_listen_addr6 is added in
  kamailio.cfg to pass IPv6 listen address into the ipsec module.

- mode_init() changes:
  Add ipv4 and/or ipv6 listen interfaces depending of configured
  parameters in pcscf/kamailio config files.

- create_ipsec_tunnel() changes:
  Update temp security parameters for contact.
  Add 4 SAs and polisies (UE client->Proxy server, Proxy client->
  UE server, Proxy server->UE client and UE server->Proxy client).
  Server->client SAs are used for TCP connections.

- destroy_ipsec_tunnel() changes:
  Remove all SAs and policies.

- ipsec_forward() changes:
  Refactored to use both UDP and TCP protocols. Selects the protocol
  type, sourse and destination ports based on message type.

- Removed unused method convert_ip_address(). Replaced by core methods
  str2ipbuf() and str2ip6buf().

- changes in README
  README regenerated via ims_ipsec_pscscf_admin.xml.
  Added a new parameter for listen IPv6 address.

3 months agoapp_sqlang: removed local implementation for KSR.pv sub-module
Daniel-Constantin Mierla [Mon, 3 Jun 2019 16:16:21 +0000 (18:16 +0200)]
app_sqlang: removed local implementation for KSR.pv sub-module

- switch to use the one from core

3 months agoapp_ruby: removed local implementation for KSR.pv sub-module
Daniel-Constantin Mierla [Mon, 3 Jun 2019 10:25:45 +0000 (12:25 +0200)]
app_ruby: removed local implementation for KSR.pv sub-module

- switch to use the one from core

3 months agoapp_python: removed unused function to return str variants
Daniel-Constantin Mierla [Mon, 3 Jun 2019 07:53:49 +0000 (09:53 +0200)]
app_python: removed unused function to return str variants

3 months agoapp_python3: removed local implementation for KSR.pv sub-module
Daniel-Constantin Mierla [Mon, 3 Jun 2019 07:52:33 +0000 (09:52 +0200)]
app_python3: removed local implementation for KSR.pv sub-module

- switch to use the one from core

3 months agoapp_python: removed local implementation for KSR.pv sub-module
Daniel-Constantin Mierla [Mon, 3 Jun 2019 07:27:48 +0000 (09:27 +0200)]
app_python: removed local implementation for KSR.pv sub-module

- switch to use the one from core

3 months agoapp_lua/utils/app_lua_ctl: updated include file name
Daniel-Constantin Mierla [Mon, 3 Jun 2019 07:04:50 +0000 (09:04 +0200)]
app_lua/utils/app_lua_ctl: updated include file name

3 months agohtable: fix a possible null pointer dereference in dmq startup error case
Henning Westerholt [Fri, 31 May 2019 10:42:21 +0000 (12:42 +0200)]
htable: fix a possible null pointer dereference in dmq startup error case

3 months agoMakefile.groups: add new module app_lua_sr to lua group
Henning Westerholt [Thu, 30 May 2019 15:29:20 +0000 (17:29 +0200)]
Makefile.groups: add new module app_lua_sr to lua group

3 months agomodules: readme files regenerated - app_lua ... [skip ci]
Kamailio Dev [Wed, 29 May 2019 12:02:05 +0000 (14:02 +0200)]
modules: readme files regenerated - app_lua ... [skip ci]

3 months agoapp_lua_sr: new module split from app_lua to export old Lua sr lib
Daniel-Constantin Mierla [Wed, 29 May 2019 11:55:26 +0000 (13:55 +0200)]
app_lua_sr: new module split from app_lua to export old Lua sr lib

3 months agoapp_lua: docs - removed register modparam, relocated to app_lua_sr
Daniel-Constantin Mierla [Wed, 29 May 2019 11:54:01 +0000 (13:54 +0200)]
app_lua: docs - removed register modparam, relocated to app_lua_sr

3 months agoapp_lua: exposed inter-module api
Daniel-Constantin Mierla [Wed, 29 May 2019 11:32:04 +0000 (13:32 +0200)]
app_lua: exposed inter-module api

3 months agoapp_lua: removed old Lua sr module exports
Daniel-Constantin Mierla [Wed, 29 May 2019 09:18:20 +0000 (11:18 +0200)]
app_lua: removed old Lua sr module exports

- exporting only KSR via KEMI framework
- Lua sr module is relocated to app_lua_sr kamailio module, to be
obsoleted and removed over the time
- export KSR.pv submodule using implementation from core

3 months agomodules: readme files regenerated - siptrace ... [skip ci]
Kamailio Dev [Tue, 28 May 2019 20:01:49 +0000 (22:01 +0200)]
modules: readme files regenerated - siptrace ... [skip ci]

3 months agosiptrace: document usage of trace_info xavp to prevent overlapping
iionita [Mon, 27 May 2019 08:09:13 +0000 (11:09 +0300)]
siptrace: document usage of trace_info xavp to prevent overlapping

3 months agosiptrace: avoid flooding logs with unnecessary errors on common scenarios
iionita [Thu, 23 May 2019 08:27:41 +0000 (11:27 +0300)]
siptrace: avoid flooding logs with unnecessary errors on common scenarios

3 months agosiptrace: use xavps to pass data for the duration of transaction/dialog
iionita [Wed, 22 May 2019 14:31:47 +0000 (17:31 +0300)]
siptrace: use xavps to pass data for the duration of transaction/dialog

Before this data was serialized in order to fit a normal AVP and
be passed to DLGCB_CREATED callback. Moreover for transaction tracing
data was allocated in current process memory which would have crashed
if the reply were to be recieved in a different process. With the
current implementation data is allocated in shared memory, all processes
having access to it.
For dialogs data is passed through xavp to dlgcb created. From
there all dialog callbacks are registered and they receive argument
the pointer to siptrace info. For transactions the pointer is passed
as dialog callback parameter.

3 months agoMakefile.defs: detect gcc 9.0+
Daniel-Constantin Mierla [Tue, 28 May 2019 12:27:34 +0000 (14:27 +0200)]
Makefile.defs: detect gcc 9.0+

- reported by GH #1965

3 months agokemix: functions to return directly user and host from ruri
Daniel-Constantin Mierla [Tue, 28 May 2019 12:05:16 +0000 (14:05 +0200)]
kemix: functions to return directly user and host from ruri

3 months agocore: kemi - defines for modes used to return null string
Daniel-Constantin Mierla [Tue, 28 May 2019 12:04:07 +0000 (14:04 +0200)]
core: kemi - defines for modes used to return null string

3 months agoMerge pull request #1964 from alexyosifov/registrar_pcscf_sec_agree
Daniel-Constantin Mierla [Tue, 28 May 2019 11:27:24 +0000 (13:27 +0200)]
Merge pull request #1964 from alexyosifov/registrar_pcscf_sec_agree

ims_registrar_pcscf: parse security verify header

3 months agoMerge pull request #1967 from alishir/master
Daniel-Constantin Mierla [Tue, 28 May 2019 11:26:55 +0000 (13:26 +0200)]
Merge pull request #1967 from alishir/master

kamdbctl: Fixes name of ims_charging sql script.

3 months agokamdbctl: fixes name of ims_charging sql script. 1967/head
Ali Shirvani [Tue, 28 May 2019 08:26:48 +0000 (12:56 +0430)]
kamdbctl: fixes name of ims_charging sql script.

- ims_charging_create renamed to ims_charging-create

3 months agousrloc: clone xavp list in contact struct in memory mode
Daniel-Constantin Mierla [Tue, 28 May 2019 06:44:32 +0000 (08:44 +0200)]
usrloc: clone xavp list in contact struct in memory mode

3 months agokemix: exported functions to get common URI values via KSR.kx
Daniel-Constantin Mierla [Mon, 27 May 2019 09:56:52 +0000 (11:56 +0200)]
kemix: exported functions to get common URI values via KSR.kx

3 months agokemix: new module to collect KEMI specific collections
Daniel-Constantin Mierla [Fri, 24 May 2019 10:44:16 +0000 (12:44 +0200)]
kemix: new module to collect KEMI specific collections

- avoid pushing code in core for alternatives to core keywords,
conditions, a.s.o.

3 months agocore: kemi - exposed sr_kemi_xval_null() function prototype
Daniel-Constantin Mierla [Fri, 24 May 2019 10:30:12 +0000 (12:30 +0200)]
core: kemi - exposed sr_kemi_xval_null() function prototype

3 months agomisc/examples/kemi: fix another small copy and paste error
Henning Westerholt [Thu, 23 May 2019 19:34:01 +0000 (21:34 +0200)]
misc/examples/kemi: fix another small copy and paste error

3 months agomisc/examples/kemi: fixed copy&paste error with type of language
Daniel-Constantin Mierla [Thu, 23 May 2019 09:50:55 +0000 (11:50 +0200)]
misc/examples/kemi: fixed copy&paste error with type of language

3 months agomisc/examples/kemi: added python3 and ruby as options to basic example
Daniel-Constantin Mierla [Thu, 23 May 2019 09:38:44 +0000 (11:38 +0200)]
misc/examples/kemi: added python3 and ruby as options to basic example

3 months agoapp_lua: set reload parameter to 0 value if given via modparam
Daniel-Constantin Mierla [Thu, 23 May 2019 09:37:45 +0000 (11:37 +0200)]
app_lua: set reload parameter to 0 value if given via modparam

3 months agoapp_jsdt: removed local implementation for KSR.pv sub-module
Daniel-Constantin Mierla [Thu, 23 May 2019 09:21:47 +0000 (11:21 +0200)]
app_jsdt: removed local implementation for KSR.pv sub-module

- switch to use the one from core

3 months agoapp_jsdt: handle functions that return xval and have up to two params
Daniel-Constantin Mierla [Thu, 23 May 2019 08:51:33 +0000 (10:51 +0200)]
app_jsdt: handle functions that return xval and have up to two params

3 months agocore: kemi - prototypes for functions returning xval with up to two params
Daniel-Constantin Mierla [Thu, 23 May 2019 08:49:50 +0000 (10:49 +0200)]
core: kemi - prototypes for functions returning xval with up to two params

3 months agoims_registrar_pcscf: parse security verify header 1964/head
Aleksandar Yosifov [Thu, 23 May 2019 08:05:12 +0000 (11:05 +0300)]
ims_registrar_pcscf: parse security verify header

- Parse 'security verify' header from REGISTER request message
  and save updated parameters into the database.
- Added debug messages in save_pendign and save for easy debugging.

3 months agocore: xavp - updated comments about vptr filed
Daniel-Constantin Mierla [Thu, 23 May 2019 08:01:14 +0000 (10:01 +0200)]
core: xavp - updated comments about vptr filed

3 months agocore: xvavp - new data type SR_XTYPE_SPTR
Daniel-Constantin Mierla [Thu, 23 May 2019 07:30:51 +0000 (09:30 +0200)]
core: xvavp - new data type SR_XTYPE_SPTR

- store a shm pointer that has to be freed at destroy with shm_free()

3 months agocore: added a few variants for parsing IPv4/6 addresses
Daniel-Constantin Mierla [Wed, 22 May 2019 10:26:09 +0000 (12:26 +0200)]
core: added a few variants for parsing IPv4/6 addresses

- store parsed structure directly in a provided buffer
- wrapper for parsing either IPv4 or IPv6

3 months agoims_registrar_scscf: changed str r_reginfo_s format: from 'version=%s ' to 'version...
Aleksandar Yosifov [Wed, 22 May 2019 08:31:49 +0000 (10:31 +0200)]
ims_registrar_scscf: changed str r_reginfo_s format: from 'version=%s ' to 'version=%d'. (GH #1961)

- changed str r_reginfo_s format: from 'version=%s ' to 'version=%d'. (GH #1961)
- In NOTIFY message from S-CSCF to UE, Message Body contains different xml parameters
  and one of them can be a contact parameter with list of unknown-params. In some
  cases unknown-param has value with '%' inside. Before the fix, adding of reginfo
  version breaks the string of unknown-param. Adding reginfo version before contact
  parameters keeps unknown-param string unchanged.

3 months agoapp_sqlang: skip registering KSR.pv from global list
Daniel-Constantin Mierla [Wed, 22 May 2019 07:56:15 +0000 (09:56 +0200)]
app_sqlang: skip registering KSR.pv from global list

- for now is still done with the custom functions from the module

3 months agoapp_ruby: skip registering KSR.pv from global list
Daniel-Constantin Mierla [Wed, 22 May 2019 07:55:43 +0000 (09:55 +0200)]
app_ruby: skip registering KSR.pv from global list

- for now is still done with the custom functions from the module

3 months agoapp_python3: skip registering KSR.pv from global list
Daniel-Constantin Mierla [Wed, 22 May 2019 07:55:24 +0000 (09:55 +0200)]
app_python3: skip registering KSR.pv from global list

- for now is still done with the custom functions from the module

3 months agoapp_python: skip registering KSR.pv from global list
Daniel-Constantin Mierla [Wed, 22 May 2019 07:54:54 +0000 (09:54 +0200)]
app_python: skip registering KSR.pv from global list

- for now is still done with the custom functions from the module

3 months agoapp_lua: skip registering KSR.pv from global list
Daniel-Constantin Mierla [Wed, 22 May 2019 07:54:27 +0000 (09:54 +0200)]
app_lua: skip registering KSR.pv from global list

- for now is still done with the custom functions from the module

3 months agoapp_jsdt: skip registering KSR.pv from global list
Daniel-Constantin Mierla [Wed, 22 May 2019 07:47:33 +0000 (09:47 +0200)]
app_jsdt: skip registering KSR.pv from global list

- for now is still done with the custom functions from the module

3 months agocore: kemi - added KSR.pv module in the global list
Daniel-Constantin Mierla [Wed, 22 May 2019 07:46:43 +0000 (09:46 +0200)]
core: kemi - added KSR.pv module in the global list

4 months agocore: copy discovered interface name only when its len is > 0
Daniel-Constantin Mierla [Tue, 21 May 2019 15:26:14 +0000 (17:26 +0200)]
core: copy discovered interface name only when its len is > 0

4 months agocore: kemi - functions for KSR.pv module implemented in core
Daniel-Constantin Mierla [Tue, 21 May 2019 12:56:40 +0000 (14:56 +0200)]
core: kemi - functions for KSR.pv module implemented in core

- to replace those implemented in each interpreter module for better
coherence and make it easier to extend the KSR.pv sub-module in the future

4 months agocore: pv - exposed the function to return the str empty static variable
Daniel-Constantin Mierla [Tue, 21 May 2019 12:55:53 +0000 (14:55 +0200)]
core: pv - exposed the function to return the str empty static variable

4 months agocore: kemi - changed SR_KEMIP_INTSTR to SR_KEMIP_XVAL
Daniel-Constantin Mierla [Tue, 21 May 2019 11:35:21 +0000 (13:35 +0200)]
core: kemi - changed SR_KEMIP_INTSTR to SR_KEMIP_XVAL

- added also SR_KEMIP_NULL to mark null values

4 months agolcr: pass gw struct by pointer to dump_gw() function
Daniel-Constantin Mierla [Tue, 21 May 2019 11:11:01 +0000 (13:11 +0200)]
lcr: pass gw struct by pointer to dump_gw() function

- passing the struct value is inneficient due to its large size (688 bytes)

4 months agomodules: readme files regenerated - dispatcher ... [skip ci]
Kamailio Dev [Mon, 20 May 2019 15:16:42 +0000 (17:16 +0200)]
modules: readme files regenerated - dispatcher ... [skip ci]

4 months agodispatcher: docs - fixed typo in description for reload_delta
Daniel-Constantin Mierla [Mon, 20 May 2019 15:11:21 +0000 (17:11 +0200)]
dispatcher: docs - fixed typo in description for reload_delta

4 months agomodules: readme files regenerated - dispatcher ... [skip ci]
Kamailio Dev [Mon, 20 May 2019 09:46:45 +0000 (11:46 +0200)]
modules: readme files regenerated - dispatcher ... [skip ci]

4 months agortp_media_server: removed execution flag from source files and makefile
Daniel-Constantin Mierla [Mon, 20 May 2019 09:38:24 +0000 (11:38 +0200)]
rtp_media_server: removed execution flag from source files and makefile

4 months agodispatcher: docs for reload_delta parameter
Daniel-Constantin Mierla [Mon, 20 May 2019 09:34:16 +0000 (11:34 +0200)]
dispatcher: docs for reload_delta parameter

- GH #1939

4 months agodispatcher: added reload_delta parameter
Daniel-Constantin Mierla [Mon, 20 May 2019 09:15:48 +0000 (11:15 +0200)]
dispatcher: added reload_delta parameter

- limit the frequency of rpc reload commands to try to avoid races of
parallel reload operations
- default value is 5 seconds (no more than one reload command every 5
seconds)

4 months agotls: register SNI callback for server default profile
Daniel-Constantin Mierla [Mon, 20 May 2019 08:56:08 +0000 (10:56 +0200)]
tls: register SNI callback for server default profile

- make SNI work for other profile when the default one does not have
server_name
- GH #1938

4 months agoMerge pull request #1958 from sergey-safarov/mips
Daniel-Constantin Mierla [Mon, 20 May 2019 07:16:49 +0000 (09:16 +0200)]
Merge pull request #1958 from sergey-safarov/mips

src/Makefile.defs: fix build on mips

4 months agoapp_python3, auth, ims_auth: chmod to 0644 for source code file with exec flag
Daniel-Constantin Mierla [Mon, 20 May 2019 07:13:55 +0000 (09:13 +0200)]
app_python3, auth, ims_auth: chmod to 0644 for source code file with exec flag

- GH #1957

4 months agopkg/kamailio/obs: Packaged app_python3
Sergey Safarov [Sat, 18 May 2019 20:00:38 +0000 (23:00 +0300)]
pkg/kamailio/obs: Packaged app_python3

4 months agopkg/kamailio/obs: Added openssl_mutex_shared into TLS module package [skip ci]
Sergey Safarov [Sat, 18 May 2019 16:29:51 +0000 (19:29 +0300)]
pkg/kamailio/obs: Added openssl_mutex_shared into TLS module package [skip ci]

4 months agopkg/kamailio/obs: Fixed packaging on Fedora 30 [skip ci]
Sergey Safarov [Sat, 18 May 2019 16:27:56 +0000 (19:27 +0300)]
pkg/kamailio/obs: Fixed packaging on Fedora 30 [skip ci]

4 months agopkg/kamailio/alpine: Packaged pua_json, db_redis, ims_ocs, acc_json [skip ci]
Sergey Safarov [Sat, 18 May 2019 09:56:08 +0000 (12:56 +0300)]
pkg/kamailio/alpine: Packaged pua_json, db_redis, ims_ocs, acc_json [skip ci]

4 months agosrc/Makefile.defs: fix build on mips 1958/head
Sergey Safarov [Sat, 18 May 2019 09:24:40 +0000 (12:24 +0300)]
src/Makefile.defs: fix build on mips

4 months agocore: allow to set advertised address to -l command line parameter
Daniel-Constantin Mierla [Fri, 17 May 2019 08:31:22 +0000 (10:31 +0200)]
core: allow to set advertised address to -l command line parameter

* -l listen-address/advertised-address
* -l udp:10.0.0.10:5080/1.2.3.4:5060

4 months agomisc/tools/kemi: added tool to generate code for KEMI modules
Daniel-Constantin Mierla [Fri, 17 May 2019 07:11:03 +0000 (09:11 +0200)]
misc/tools/kemi: added tool to generate code for KEMI modules

- kemi-code-gen.py - can generate typedefs for functions and the large
if-else blocks for variants of parameters

4 months agoapp_sqlang: completed the handling of KEMI functions with 4 parameters
Daniel-Constantin Mierla [Fri, 17 May 2019 06:58:00 +0000 (08:58 +0200)]
app_sqlang: completed the handling of KEMI functions with 4 parameters

4 months agoapp_sqlang: implemented the handling of KEMI functions with 5 parameters
Daniel-Constantin Mierla [Fri, 17 May 2019 06:48:27 +0000 (08:48 +0200)]
app_sqlang: implemented the handling of KEMI functions with 5 parameters

4 months agocore: allow setting server id via --server-id command line param
Daniel-Constantin Mierla [Thu, 16 May 2019 17:42:50 +0000 (19:42 +0200)]
core: allow setting server id via --server-id command line param

4 months agodb_mongodb: catch the null values and set the type to DB1_STRING
Daniel-Constantin Mierla [Thu, 16 May 2019 10:35:46 +0000 (12:35 +0200)]
db_mongodb: catch the null values and set the type to DB1_STRING

- avoid the log message on unhandled type

4 months agoapp_ruby: implemented the handling of KEMI functions with 5 parameters
Daniel-Constantin Mierla [Thu, 16 May 2019 10:16:32 +0000 (12:16 +0200)]
app_ruby: implemented the handling of KEMI functions with 5 parameters

4 months agoapp_ruby: completed the handling of KEMI functions with 4 parameters
Daniel-Constantin Mierla [Thu, 16 May 2019 10:11:10 +0000 (12:11 +0200)]
app_ruby: completed the handling of KEMI functions with 4 parameters

4 months agoapp_python3: completed the handling of KEMI functions with 4 parameters
Daniel-Constantin Mierla [Thu, 16 May 2019 10:01:09 +0000 (12:01 +0200)]
app_python3: completed the handling of KEMI functions with 4 parameters

4 months agoapp_python: give address of last int param to kemi functions
Daniel-Constantin Mierla [Thu, 16 May 2019 09:54:54 +0000 (11:54 +0200)]
app_python: give address of last int param to kemi functions

- intoduced by previous commit

4 months agoapp_python3: implemented the handling of KEMI functions with 5 parameters
Daniel-Constantin Mierla [Thu, 16 May 2019 09:49:53 +0000 (11:49 +0200)]
app_python3: implemented the handling of KEMI functions with 5 parameters

4 months agoapp_python: implemented the handling of KEMI functions with 5 parameters
Daniel-Constantin Mierla [Thu, 16 May 2019 09:37:19 +0000 (11:37 +0200)]
app_python: implemented the handling of KEMI functions with 5 parameters

4 months agoapp_python: completed the handling of KEMI functions with 4 parameters
Daniel-Constantin Mierla [Thu, 16 May 2019 09:29:22 +0000 (11:29 +0200)]
app_python: completed the handling of KEMI functions with 4 parameters

4 months agoapp_lua: implemented the handling of KEMI functions with 5 parameters
Daniel-Constantin Mierla [Thu, 16 May 2019 07:32:44 +0000 (09:32 +0200)]
app_lua: implemented the handling of KEMI functions with 5 parameters

4 months agoapp_lua: completed the handling of KEMI functions with 4 parameters
Daniel-Constantin Mierla [Thu, 16 May 2019 07:30:05 +0000 (09:30 +0200)]
app_lua: completed the handling of KEMI functions with 4 parameters

4 months agoapp_jsdt: completed the handling of KEMI functions with 4 parameters
Daniel-Constantin Mierla [Thu, 16 May 2019 07:15:48 +0000 (09:15 +0200)]
app_jsdt: completed the handling of KEMI functions with 4 parameters

4 months agoapp_jsdt: implemented the handling of KEMI functions with 5 parameters
Daniel-Constantin Mierla [Thu, 16 May 2019 07:09:44 +0000 (09:09 +0200)]
app_jsdt: implemented the handling of KEMI functions with 5 parameters

4 months agocore: kemi - typedefs for functions with 5 parameters
Daniel-Constantin Mierla [Thu, 16 May 2019 06:57:17 +0000 (08:57 +0200)]
core: kemi - typedefs for functions with 5 parameters

4 months agoMerge pull request #1954 from omnicate/master
Daniel-Constantin Mierla [Wed, 15 May 2019 16:33:43 +0000 (18:33 +0200)]
Merge pull request #1954 from omnicate/master

ims_qos: use msg_ctx_id_t to detect same msg/transaction processing

4 months agomodules: readme files regenerated - db_text ... [skip ci]
Kamailio Dev [Wed, 15 May 2019 14:32:26 +0000 (16:32 +0200)]
modules: readme files regenerated - db_text ... [skip ci]

4 months agodb_text: add missing "max_result_rows" param to the doc
Ovidiu Sas [Wed, 15 May 2019 14:16:27 +0000 (10:16 -0400)]
db_text: add missing "max_result_rows" param to the doc

4 months agomodules: readme files regenerated - tm ... [skip ci]
Kamailio Dev [Wed, 15 May 2019 12:31:49 +0000 (14:31 +0200)]
modules: readme files regenerated - tm ... [skip ci]

4 months agotm: docs for t_get_status_code()
Daniel-Constantin Mierla [Wed, 15 May 2019 12:25:24 +0000 (14:25 +0200)]
tm: docs for t_get_status_code()

4 months agotm: added t_get_status_code()
Daniel-Constantin Mierla [Wed, 15 May 2019 12:18:59 +0000 (14:18 +0200)]
tm: added t_get_status_code()

- return the status code of the transaction - the sip response code
- in case of error or no status set, then it returns -1

4 months agosiptrace: use trace type for ki_sip_trace_dst_cid_flag()
Daniel-Constantin Mierla [Wed, 15 May 2019 11:03:28 +0000 (13:03 +0200)]
siptrace: use trace type for ki_sip_trace_dst_cid_flag()

4 months agoims_qos: use msg_ctx_id_t to detect same msg/transaction processing 1954/head
szcom [Wed, 15 May 2019 10:54:12 +0000 (12:54 +0200)]
ims_qos: use msg_ctx_id_t to detect same msg/transaction processing

- relies on msg id and pid, not only msg id (which is incremeted by
each process and has potential conflicts with failure routing)
- msg id and pid are enough to indentify the transaction thus
dropping checks for the pointers

4 months agodialplan: don't try to translate on dp_match()
Victor Seva [Wed, 15 May 2019 08:00:56 +0000 (10:00 +0200)]
dialplan: don't try to translate on dp_match()

fix #1952

4 months agojanssonrpcc: remove compilation warning
Victor Seva [Wed, 15 May 2019 09:13:17 +0000 (11:13 +0200)]
janssonrpcc: remove compilation warning

> janssonrpcc_mod.c:345:25: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
>         if (jsonrpc_keep_alive < 0) {
>             ~~~~~~~~~~~~~~~~~~ ^ ~
> 1 warning generated.

4 months agocore: added command line parameter to set subst preprocessor directive
Daniel-Constantin Mierla [Tue, 14 May 2019 15:09:13 +0000 (17:09 +0200)]
core: added command line parameter to set subst preprocessor directive

* --subst="expression" - like: #!subst "expression"

4 months agocore: command line parameters for adding substdef and substdefs
Daniel-Constantin Mierla [Tue, 14 May 2019 15:00:07 +0000 (17:00 +0200)]
core: command line parameters for adding substdef and substdefs

* --substdef="expression" - like a #!substdef "expression"
* --substdefis="expression" - like a #!substdefs "expression"

4 months agocore: return negative on error adding pre-processor substdef
Daniel-Constantin Mierla [Tue, 14 May 2019 14:36:08 +0000 (16:36 +0200)]
core: return negative on error adding pre-processor substdef

- expected by the checks when executing the functions

4 months agosiptrace: use the str for null values from pv core api
Daniel-Constantin Mierla [Tue, 14 May 2019 09:04:49 +0000 (11:04 +0200)]
siptrace: use the str for null values from pv core api