sip-router
2 years agoMerge pull request #1345 from kamailio/lazedo-patch-2
Daniel-Constantin Mierla [Sat, 9 Dec 2017 08:20:00 +0000 (09:20 +0100)]
Merge pull request #1345 from kamailio/lazedo-patch-2

schema: allow null in active_watchers reason

2 years agoipops: exported functions to kemi framework
Daniel-Constantin Mierla [Sat, 9 Dec 2017 07:55:25 +0000 (08:55 +0100)]
ipops: exported functions to kemi framework

2 years agoipops: use sip_msg_t type
Daniel-Constantin Mierla [Fri, 8 Dec 2017 22:08:25 +0000 (23:08 +0100)]
ipops: use sip_msg_t type

- set cfg functions signatures with two parameters

2 years agosipdump: safety check for received address
Daniel-Constantin Mierla [Fri, 8 Dec 2017 15:47:39 +0000 (16:47 +0100)]
sipdump: safety check for received address

2 years agorls: avoid walking a null string
Daniel-Constantin Mierla [Fri, 8 Dec 2017 15:44:56 +0000 (16:44 +0100)]
rls: avoid walking a null string

2 years agopua: safety check for params values
Daniel-Constantin Mierla [Fri, 8 Dec 2017 15:44:01 +0000 (16:44 +0100)]
pua: safety check for params values

2 years agoauth_ephemeral: init the return code
Daniel-Constantin Mierla [Fri, 8 Dec 2017 15:43:17 +0000 (16:43 +0100)]
auth_ephemeral: init the return code

2 years agotls: safety checks for select values
Daniel-Constantin Mierla [Fri, 8 Dec 2017 15:42:19 +0000 (16:42 +0100)]
tls: safety checks for select values

2 years agocore: select - init proto string to udp
Daniel-Constantin Mierla [Fri, 8 Dec 2017 15:41:53 +0000 (16:41 +0100)]
core: select - init proto string to udp

2 years agocore: receive - clang format the code
Daniel-Constantin Mierla [Fri, 8 Dec 2017 15:41:35 +0000 (16:41 +0100)]
core: receive - clang format the code

2 years agodb2_ops: safety check for input parameter
Daniel-Constantin Mierla [Fri, 8 Dec 2017 14:18:05 +0000 (15:18 +0100)]
db2_ops: safety check for input parameter

2 years agodb_postgres: avoid potential double free if sb url parsing fails
Daniel-Constantin Mierla [Fri, 8 Dec 2017 14:01:18 +0000 (15:01 +0100)]
db_postgres: avoid potential double free if sb url parsing fails

2 years agocplc: null terminate log string
Daniel-Constantin Mierla [Fri, 8 Dec 2017 13:51:26 +0000 (14:51 +0100)]
cplc: null terminate log string

- reset field to avoid double free

2 years agoMakefile.groups: add evrexec module to extra group
Victor Seva [Fri, 8 Dec 2017 13:25:49 +0000 (14:25 +0100)]
Makefile.groups: add evrexec module to extra group

2 years agopkg/kamailio/deb: phonenum requires libphonenum >= 7
Victor Seva [Fri, 8 Dec 2017 13:16:52 +0000 (14:16 +0100)]
pkg/kamailio/deb: phonenum requires libphonenum >= 7

* remove jessie support

2 years agopkg/kamailio/deb: kamailio-phonenum-modules [skip ci]
Victor Seva [Fri, 8 Dec 2017 11:29:12 +0000 (12:29 +0100)]
pkg/kamailio/deb: kamailio-phonenum-modules [skip ci]

2 years agoapp_python: enabled rpc command to reload the script
Daniel-Constantin Mierla [Fri, 8 Dec 2017 11:17:07 +0000 (12:17 +0100)]
app_python: enabled rpc command to reload the script

- reload command performs the mod_init and child_init operations
- not tested yet

2 years agocore: kemi - removed redundant anchor operation
Daniel-Constantin Mierla [Fri, 8 Dec 2017 09:53:18 +0000 (10:53 +0100)]
core: kemi - removed redundant anchor operation

2 years agopresence: extra columns updated for dbmode 2
lazedo [Wed, 6 Dec 2017 17:38:19 +0000 (17:38 +0000)]
presence: extra columns updated for dbmode 2

we noticed some phones and upstream clusters sending
diferent route / contact after initial subscription.

this commit adds contact and record_route to updated columns for dbmode = 2
also adds user_agent to initial save
and a simple fix for getting the correct message in debug

2 years agotm: restore backup char inside ki_t_check_status()
Daniel-Constantin Mierla [Fri, 8 Dec 2017 08:47:01 +0000 (09:47 +0100)]
tm: restore backup char inside ki_t_check_status()

2 years agopkg/kamailio/deb: geoip2 module [skip ci]
Victor Seva [Fri, 8 Dec 2017 08:32:46 +0000 (09:32 +0100)]
pkg/kamailio/deb: geoip2 module [skip ci]

fix #1352

2 years agotextopsx: proper check for null value inside ki_modify_hf()
Daniel-Constantin Mierla [Fri, 8 Dec 2017 08:31:21 +0000 (09:31 +0100)]
textopsx: proper check for null value inside ki_modify_hf()

2 years agorabbitmq: proper test of pv cache lookup return
Daniel-Constantin Mierla [Fri, 8 Dec 2017 08:27:11 +0000 (09:27 +0100)]
rabbitmq: proper test of pv cache lookup return

2 years agopresence: increased the size of db update arrays in update_subs_db()
Daniel-Constantin Mierla [Fri, 8 Dec 2017 08:25:12 +0000 (09:25 +0100)]
presence: increased the size of db update arrays in update_subs_db()

2 years agopeering: check return code when parsing all headers
Daniel-Constantin Mierla [Fri, 8 Dec 2017 08:22:20 +0000 (09:22 +0100)]
peering: check return code when parsing all headers

2 years agolcr: safety checks for parms of kemi functions
Daniel-Constantin Mierla [Fri, 8 Dec 2017 08:20:02 +0000 (09:20 +0100)]
lcr: safety checks for parms of kemi functions

2 years agohttp_client: fixed safety check looking up var names
Daniel-Constantin Mierla [Fri, 8 Dec 2017 08:07:40 +0000 (09:07 +0100)]
http_client: fixed safety check looking up var names

2 years agocrypto: fixed safety check looking up var names
Daniel-Constantin Mierla [Fri, 8 Dec 2017 08:04:35 +0000 (09:04 +0100)]
crypto: fixed safety check looking up var names

2 years agoauth_radius: safety check for r variable
Daniel-Constantin Mierla [Fri, 8 Dec 2017 08:01:18 +0000 (09:01 +0100)]
auth_radius: safety check for r variable

2 years agocore: kemi - break when matching the header name
Daniel-Constantin Mierla [Fri, 8 Dec 2017 07:58:20 +0000 (08:58 +0100)]
core: kemi - break when matching the header name

2 years agocore: pvapi - set prev variable when dropping from cache
Daniel-Constantin Mierla [Fri, 8 Dec 2017 07:57:59 +0000 (08:57 +0100)]
core: pvapi - set prev variable when dropping from cache

2 years agoapp_mono: safety check beforing accessing field inside pointer
Daniel-Constantin Mierla [Fri, 8 Dec 2017 07:57:17 +0000 (08:57 +0100)]
app_mono: safety check beforing accessing field inside pointer

- zero terminated allocated strings

2 years agokamctl: regenerate db creation scripts
Daniel-Constantin Mierla [Fri, 8 Dec 2017 07:42:00 +0000 (08:42 +0100)]
kamctl: regenerate db creation scripts

2 years agoMerge pull request #1355 from sergey-vb/master
Daniel-Constantin Mierla [Fri, 8 Dec 2017 07:17:49 +0000 (08:17 +0100)]
Merge pull request #1355 from sergey-vb/master

schema: add indexes to topos Mysql tables

2 years agoschema: add indexes to topos Mysql tables (#13) 1355/head
sergey-vb [Fri, 8 Dec 2017 06:50:11 +0000 (08:50 +0200)]
schema: add indexes to topos Mysql tables (#13)

* topos: update topos_d.xml

To optimize DB query speedup I propose to add few indexes.

*  topos: update topos_t.xml

To optimize DB query speedup I propose to add few indexes.

2 years agolog_systemd: fixed typo in previous commit
Daniel-Constantin Mierla [Thu, 7 Dec 2017 14:24:44 +0000 (15:24 +0100)]
log_systemd: fixed typo in previous commit

2 years agosca: exported functions to kemi framework
Daniel-Constantin Mierla [Thu, 7 Dec 2017 14:05:54 +0000 (15:05 +0100)]
sca: exported functions to kemi framework

2 years agosca: get cfg int parameter in wrapper functions
Daniel-Constantin Mierla [Thu, 7 Dec 2017 13:44:00 +0000 (14:44 +0100)]
sca: get cfg int parameter in wrapper functions

2 years agolog_systemd: exported functions to kemi framework
Daniel-Constantin Mierla [Thu, 7 Dec 2017 13:43:11 +0000 (14:43 +0100)]
log_systemd: exported functions to kemi framework

2 years agocounters: exported functions to kemi interface
Daniel-Constantin Mierla [Thu, 7 Dec 2017 13:19:57 +0000 (14:19 +0100)]
counters: exported functions to kemi interface

2 years agomsilo: exported functions to kemi framework
Daniel-Constantin Mierla [Thu, 7 Dec 2017 09:52:15 +0000 (10:52 +0100)]
msilo: exported functions to kemi framework

2 years agorls: exported functions to kemi framework
Daniel-Constantin Mierla [Thu, 7 Dec 2017 09:05:47 +0000 (10:05 +0100)]
rls: exported functions to kemi framework

2 years agorabbitmq: functions exported to kemi framework
Daniel-Constantin Mierla [Thu, 7 Dec 2017 07:35:23 +0000 (08:35 +0100)]
rabbitmq: functions exported to kemi framework

2 years agoauth_ephemeral: variants of auth functions exported to kemi
Daniel-Constantin Mierla [Thu, 7 Dec 2017 07:34:55 +0000 (08:34 +0100)]
auth_ephemeral: variants of auth functions exported to kemi

2 years agorabbitmq: clang format the code
Daniel-Constantin Mierla [Wed, 6 Dec 2017 20:16:35 +0000 (21:16 +0100)]
rabbitmq: clang format the code

2 years agouac_redirect: exported get_redirects() variants to kemi framework
Daniel-Constantin Mierla [Wed, 6 Dec 2017 20:11:11 +0000 (21:11 +0100)]
uac_redirect: exported get_redirects() variants to kemi framework

2 years agomodules: readme files regenerated - benchmark ... [skip ci]
Kamailio Dev [Wed, 6 Dec 2017 19:16:24 +0000 (20:16 +0100)]
modules: readme files regenerated - benchmark ... [skip ci]

2 years agobenchmark: documentation for register parameter
Daniel-Constantin Mierla [Wed, 6 Dec 2017 19:00:50 +0000 (20:00 +0100)]
benchmark: documentation for register parameter

2 years agobenchmark: exported functions to kemi framework
Daniel-Constantin Mierla [Wed, 6 Dec 2017 18:56:32 +0000 (19:56 +0100)]
benchmark: exported functions to kemi framework

- new parameter 'register' - register a timer id, required when using
kemi framework, because there is no fixup mechanism to register timer
ids based on function params

2 years agogroup: is_user_in() exported to kemi framework
Daniel-Constantin Mierla [Wed, 6 Dec 2017 17:10:12 +0000 (18:10 +0100)]
group: is_user_in() exported to kemi framework

2 years agoMerge pull request #1348 from grumvalski/local_request_crash
Federico Cabiddu [Wed, 6 Dec 2017 16:18:47 +0000 (17:18 +0100)]
Merge pull request #1348 from grumvalski/local_request_crash

tm: make t_run_local_req reentrant

2 years agohttp_async_client: exported query function to kemi interface
Daniel-Constantin Mierla [Wed, 6 Dec 2017 16:00:41 +0000 (17:00 +0100)]
http_async_client: exported query function to kemi interface

2 years agotm: t_check_status exported to kemi framework
Daniel-Constantin Mierla [Wed, 6 Dec 2017 15:50:39 +0000 (16:50 +0100)]
tm: t_check_status exported to kemi framework

2 years agouserblacklist: exported user check functions to kemi framework
Daniel-Constantin Mierla [Wed, 6 Dec 2017 15:38:56 +0000 (16:38 +0100)]
userblacklist: exported user check functions to kemi framework

2 years agouri_db: functions exported to kemi framework
Daniel-Constantin Mierla [Wed, 6 Dec 2017 14:52:25 +0000 (15:52 +0100)]
uri_db: functions exported to kemi framework

2 years agomediaproxy: export functions to kemi framework
Daniel-Constantin Mierla [Wed, 6 Dec 2017 11:31:28 +0000 (12:31 +0100)]
mediaproxy: export functions to kemi framework

2 years agondb_mongodb: exported functions to kemi framework
Daniel-Constantin Mierla [Wed, 6 Dec 2017 10:43:38 +0000 (11:43 +0100)]
ndb_mongodb: exported functions to kemi framework

2 years agoasync: use t_continue_cb() for executing via kemi framework
Daniel-Constantin Mierla [Wed, 6 Dec 2017 10:19:00 +0000 (11:19 +0100)]
async: use t_continue_cb() for executing via kemi framework

2 years agohttp_async_client: exported functions to kemi framework
Daniel-Constantin Mierla [Wed, 6 Dec 2017 07:51:39 +0000 (08:51 +0100)]
http_async_client: exported functions to kemi framework

2 years agotmx: exported the rest of the functions to kemi framework
Daniel-Constantin Mierla [Wed, 6 Dec 2017 07:51:09 +0000 (08:51 +0100)]
tmx: exported the rest of the functions to kemi framework

2 years agotm: allow execution of t_continue with callback name
Daniel-Constantin Mierla [Wed, 6 Dec 2017 07:50:23 +0000 (08:50 +0100)]
tm: allow execution of t_continue with callback name

- t_continue_cb() exported to tm api

2 years agohttp_async_client: propagate route name to https async callback
Daniel-Constantin Mierla [Tue, 5 Dec 2017 16:22:24 +0000 (17:22 +0100)]
http_async_client: propagate route name to https async callback

- lookup actions in target process, rather than in originating one

2 years agohttp_async_client: use directly the core fixup helper
Daniel-Constantin Mierla [Tue, 5 Dec 2017 15:54:21 +0000 (16:54 +0100)]
http_async_client: use directly the core fixup helper

2 years agohttp_async_client: use route_lookup() instead of route_get()
Daniel-Constantin Mierla [Tue, 5 Dec 2017 15:50:59 +0000 (16:50 +0100)]
http_async_client: use route_lookup() instead of route_get()

- avoids creating a useless route block structure

2 years agohttp_client: exported functions to kemi framework
Daniel-Constantin Mierla [Tue, 5 Dec 2017 15:45:27 +0000 (16:45 +0100)]
http_client: exported functions to kemi framework

2 years agohttp_client: clang format the code
Daniel-Constantin Mierla [Tue, 5 Dec 2017 14:20:55 +0000 (15:20 +0100)]
http_client: clang format the code

2 years agocrypto: exported functions to kemi interface
Daniel-Constantin Mierla [Tue, 5 Dec 2017 14:13:47 +0000 (15:13 +0100)]
crypto: exported functions to kemi interface

2 years agodmq: exported functions to kemi framework
Daniel-Constantin Mierla [Tue, 5 Dec 2017 12:19:17 +0000 (13:19 +0100)]
dmq: exported functions to kemi framework

2 years agodmq: use core fixup helper functions directly
Daniel-Constantin Mierla [Tue, 5 Dec 2017 11:10:24 +0000 (12:10 +0100)]
dmq: use core fixup helper functions directly

2 years agotopos: update contact in branch record before sending response
Daniel-Constantin Mierla [Tue, 5 Dec 2017 10:55:51 +0000 (11:55 +0100)]
topos: update contact in branch record before sending response

- might be updated in config execution
- reported by GH #1339

2 years agonat_traversal: exported functions to kemi framework
Daniel-Constantin Mierla [Tue, 5 Dec 2017 10:23:00 +0000 (11:23 +0100)]
nat_traversal: exported functions to kemi framework

2 years agonat_traversal: clang format the code
Daniel-Constantin Mierla [Tue, 5 Dec 2017 10:09:55 +0000 (11:09 +0100)]
nat_traversal: clang format the code

2 years agomisc_radius: exported functions to kemi framework
Daniel-Constantin Mierla [Tue, 5 Dec 2017 09:54:07 +0000 (10:54 +0100)]
misc_radius: exported functions to kemi framework

2 years agomisc_radius: fixed accessing str* params after previous commit
Daniel-Constantin Mierla [Tue, 5 Dec 2017 08:19:29 +0000 (09:19 +0100)]
misc_radius: fixed accessing str* params after previous commit

2 years agomisc_radius: use spve fixup helper instead of pvar
Daniel-Constantin Mierla [Tue, 5 Dec 2017 08:17:49 +0000 (09:17 +0100)]
misc_radius: use spve fixup helper instead of pvar

- simplifies getting params

2 years agomisc_radius: clang format the code
Daniel-Constantin Mierla [Tue, 5 Dec 2017 07:21:58 +0000 (08:21 +0100)]
misc_radius: clang format the code

2 years agoauth_radius: exported functions to kemi framework
Daniel-Constantin Mierla [Mon, 4 Dec 2017 15:54:52 +0000 (16:54 +0100)]
auth_radius: exported functions to kemi framework

2 years agoauth_radius: use core fixup helper functions
Daniel-Constantin Mierla [Mon, 4 Dec 2017 15:03:52 +0000 (16:03 +0100)]
auth_radius: use core fixup helper functions

2 years agoacc_radius: clang format the code
Daniel-Constantin Mierla [Mon, 4 Dec 2017 14:50:06 +0000 (15:50 +0100)]
acc_radius: clang format the code

2 years agoauth_radius: clang format the code
Daniel-Constantin Mierla [Mon, 4 Dec 2017 14:47:40 +0000 (15:47 +0100)]
auth_radius: clang format the code

2 years agoacc_radius: functions exported to kemi framework
Daniel-Constantin Mierla [Mon, 4 Dec 2017 12:09:03 +0000 (13:09 +0100)]
acc_radius: functions exported to kemi framework

2 years agojansson: fix the include guard in header file
Daniel-Constantin Mierla [Mon, 4 Dec 2017 11:49:41 +0000 (12:49 +0100)]
jansson: fix the include guard in header file

2 years agocore: pv - use active values for pv buffer slots and size
Daniel-Constantin Mierla [Mon, 4 Dec 2017 08:21:54 +0000 (09:21 +0100)]
core: pv - use active values for pv buffer slots and size

- during startup, param value and active can be different, up to the
moment when the config is completely loaded

2 years agocore: fix setting pv_cache_limit param
Daniel-Constantin Mierla [Mon, 4 Dec 2017 08:03:28 +0000 (09:03 +0100)]
core: fix setting pv_cache_limit param

2 years agocore: more checks when printing udp recv debug message
Daniel-Constantin Mierla [Fri, 1 Dec 2017 12:43:42 +0000 (13:43 +0100)]
core: more checks when printing udp recv debug message

2 years agotest/unit: 3.sh - updates for using db root password with kamdbctl
Daniel-Constantin Mierla [Fri, 1 Dec 2017 10:07:07 +0000 (11:07 +0100)]
test/unit: 3.sh - updates for using db root password with kamdbctl

2 years agokamctl: expose db root password variable used by kamdbctl.mysql in kamctlrc
Daniel-Constantin Mierla [Fri, 1 Dec 2017 10:05:21 +0000 (11:05 +0100)]
kamctl: expose db root password variable used by kamdbctl.mysql in kamctlrc

- DBROOTPW can be now set in kamctlrc
- targeting use for automatic testing

2 years agotest/unit: 24.sh - removed invalid comment about mysql
Daniel-Constantin Mierla [Fri, 1 Dec 2017 09:47:41 +0000 (10:47 +0100)]
test/unit: 24.sh - removed invalid comment about mysql

2 years agotm: make t_run_local_req reentrant 1348/head
grumvalski [Thu, 30 Nov 2017 14:06:27 +0000 (15:06 +0100)]
tm: make t_run_local_req reentrant

- avoid crash when local-request event route is triggered inside another one

2 years agomtree: use cast to unsigned char for accessing _mt_char_table array
Timo Teras [Wed, 29 Nov 2017 18:53:29 +0000 (19:53 +0100)]
mtree: use cast to unsigned char for accessing _mt_char_table array

- switched the index from unsigned int to unsigned char
- simplifies the code by avoiding the tests for exceeding the size of the
array
- error message extended to print the full string
- slightly modified version of PR #1343

2 years agonat_traversal: handle local generated transactions (#1344)
lazedo [Wed, 29 Nov 2017 11:00:01 +0000 (11:00 +0000)]
nat_traversal: handle local generated transactions (#1344)

* nat_traversal: fix local generated transactions

* nat_traversal: handle TMCB_RESPONSE_SENT only for FAKED_REPLY

* nat_traversal: free allocated buffer

2 years agoschema: allow null in active_watchers reason 1345/head
lazedo [Wed, 29 Nov 2017 10:15:27 +0000 (10:15 +0000)]
schema: allow null in active_watchers reason

2 years agondb_redis: detect argument specifiers for redis_cmd() with three params
Daniel-Constantin Mierla [Wed, 29 Nov 2017 09:57:06 +0000 (10:57 +0100)]
ndb_redis: detect argument specifiers for redis_cmd() with three params

- check if %s or %d is part of the command, because it makes the redis
api expect more params to the commands and can crash if none is found
- reported by GH #1342

2 years agopresence: update contact in update_subs_db
lazedo [Wed, 29 Nov 2017 04:14:07 +0000 (04:14 +0000)]
presence: update contact in update_subs_db

2 years agoldap: use core fixup function for ldap_search()
Daniel-Constantin Mierla [Wed, 29 Nov 2017 07:33:38 +0000 (08:33 +0100)]
ldap: use core fixup function for ldap_search()

2 years agoldap: clang format the code
Daniel-Constantin Mierla [Tue, 28 Nov 2017 16:51:33 +0000 (17:51 +0100)]
ldap: clang format the code

2 years agotcpops: exported functions to kemi framework
Daniel-Constantin Mierla [Tue, 28 Nov 2017 12:25:35 +0000 (13:25 +0100)]
tcpops: exported functions to kemi framework

2 years agocore: timer - use uint type instead of short for flags and slow index
Daniel-Constantin Mierla [Tue, 28 Nov 2017 09:48:24 +0000 (10:48 +0100)]
core: timer - use uint type instead of short for flags and slow index

- get rid of unused padding field

2 years agocnxcc: removed unused variable
Daniel-Constantin Mierla [Tue, 28 Nov 2017 09:37:26 +0000 (10:37 +0100)]
cnxcc: removed unused variable

2 years ago.clang-format: do not use bleeding edge keys
Juha Heinanen [Mon, 27 Nov 2017 22:22:36 +0000 (00:22 +0200)]
.clang-format: do not use bleeding edge keys