sip-router
11 months agoetc/kamailio.cfg: do sanity check for sip responses
Daniel-Constantin Mierla [Thu, 21 Mar 2019 13:30:06 +0000 (14:30 +0100)]
etc/kamailio.cfg: do sanity check for sip responses

11 months agoetc/kamailio.cfg: no connect for forwarding requests withing dialog
Daniel-Constantin Mierla [Thu, 21 Mar 2019 13:09:43 +0000 (14:09 +0100)]
etc/kamailio.cfg: no connect for forwarding requests withing dialog

- connections should be opened during the dialog creation and given that
tcp/tls source port is is most of the cases ephemeral, trying to connect
back fails

11 months agousrloc: safety checks for query result in db rpc functions
Daniel-Constantin Mierla [Thu, 21 Mar 2019 12:48:25 +0000 (13:48 +0100)]
usrloc: safety checks for query result in db rpc functions

- GH #1900

11 months agoetc/kamailio.cfg: set no connect flags for replies and natted messages
Daniel-Constantin Mierla [Wed, 20 Mar 2019 14:15:12 +0000 (15:15 +0100)]
etc/kamailio.cfg: set no connect flags for replies and natted messages

11 months agopkg/kamailio/deb: version set 5.3.0~dev4
Victor Seva [Wed, 20 Mar 2019 08:04:05 +0000 (09:04 +0100)]
pkg/kamailio/deb: version set 5.3.0~dev4

11 months agopkg/kamailio/deb: version set 5.3.0~dev3
Victor Seva [Wed, 20 Mar 2019 08:02:01 +0000 (09:02 +0100)]
pkg/kamailio/deb: version set 5.3.0~dev3

11 months agoxmlrpc: docs - section ids for functions and params
Daniel-Constantin Mierla [Tue, 19 Mar 2019 19:39:09 +0000 (20:39 +0100)]
xmlrpc: docs - section ids for functions and params

11 months agouac: add missing functionality to track also display names in dialog variables
Henning Westerholt [Mon, 18 Mar 2019 19:06:42 +0000 (20:06 +0100)]
uac: add missing functionality to track also display names in dialog variables

- add missing functionality to also track display names in dialog variables after
  usage of uac_replace_from/uac_replace_to
- the module was working correctly with signalisation tracked with TM callbacks,
  but not for dialog tracking
- four new dialog variables are inserted in dialog_vars: _uac_tdp, _uac_tdpnew,
  _uac_fdp, _uac_fdpnew
- fix a potential memory leak in one replace error path

11 months agomodules: readme files regenerated - usrloc ... [skip ci]
Kamailio Dev [Mon, 18 Mar 2019 15:02:04 +0000 (16:02 +0100)]
modules: readme files regenerated - usrloc ... [skip ci]

11 months agousrloc: docs - fixes for some param types
Daniel-Constantin Mierla [Mon, 18 Mar 2019 14:57:08 +0000 (15:57 +0100)]
usrloc: docs - fixes for some param types

11 months agocore: allow definition of advertise address for listen without port
Daniel-Constantin Mierla [Mon, 18 Mar 2019 13:42:09 +0000 (14:42 +0100)]
core: allow definition of advertise address for listen without port

- GH #1884

11 months agosecfilter: renamed global variable lock to secf_lock
Daniel-Constantin Mierla [Mon, 18 Mar 2019 11:16:25 +0000 (12:16 +0100)]
secfilter: renamed global variable lock to secf_lock

- fixed null pointer access in mod destroy by accessing secf data
variable

11 months agoMakefile.defs: version set to 5.3.0-dev4
Daniel-Constantin Mierla [Mon, 18 Mar 2019 07:19:20 +0000 (08:19 +0100)]
Makefile.defs: version set to 5.3.0-dev4

11 months agoMerge pull request #1891 from mslehto/old_modules_dir
Daniel-Constantin Mierla [Sat, 16 Mar 2019 06:36:25 +0000 (07:36 +0100)]
Merge pull request #1891 from mslehto/old_modules_dir

Makefile: give warning when old modules directory is found

11 months agouac: add debugging information also for display name removal case
Henning Westerholt [Fri, 15 Mar 2019 23:25:11 +0000 (00:25 +0100)]
uac: add debugging information also for display name removal case

11 months agouac: small spelling fix in debug output
Henning Westerholt [Fri, 15 Mar 2019 17:12:22 +0000 (18:12 +0100)]
uac: small spelling fix in debug output

11 months agoacc: debug messages when initializing db table names
Daniel-Constantin Mierla [Fri, 15 Mar 2019 08:39:03 +0000 (09:39 +0100)]
acc: debug messages when initializing db table names

11 months agotm: exported t_relay_to_*() variants to kemi framework
Daniel-Constantin Mierla [Thu, 14 Mar 2019 07:40:55 +0000 (08:40 +0100)]
tm: exported t_relay_to_*() variants to kemi framework

11 months agoMakefile: give warning when old modules directory is found 1891/head
Mikko Lehto [Wed, 13 Mar 2019 19:14:29 +0000 (21:14 +0200)]
Makefile: give warning when old modules directory is found

11 months agotls: remove unnecessary fetch of ticks without storage
Daniel-Constantin Mierla [Tue, 12 Mar 2019 13:03:06 +0000 (14:03 +0100)]
tls: remove unnecessary fetch of ticks without storage

11 months agoapp_python3: execution log message based on core latency_limit_action
Daniel-Constantin Mierla [Tue, 12 Mar 2019 12:28:22 +0000 (13:28 +0100)]
app_python3: execution log message based on core latency_limit_action

11 months agoMerge pull request #1890 from ionutionita92/issue-1871
Daniel-Constantin Mierla [Wed, 13 Mar 2019 13:28:13 +0000 (14:28 +0100)]
Merge pull request #1890 from ionutionita92/issue-1871

tm: remove unnecessary TMCB_ACK_NEG_IN callback call

11 months agotm: remove unnecessary TMCB_ACK_NEG_IN callback call 1890/head
iionita [Tue, 12 Mar 2019 13:50:09 +0000 (15:50 +0200)]
tm: remove unnecessary TMCB_ACK_NEG_IN callback call

- TMCB_ACK_NEG_IN was called in an if branch where the initial
condition was the message to be an INVITE; this was not affecting
anything for the moment since this callback wasn't used but in case
some piece of code would have used this callback it would be called
not only for hop-by-hop ACKs but also INVITEs

Closes #1871

11 months agomodules: readme files regenerated - secfilter ... [skip ci]
Kamailio Dev [Tue, 12 Mar 2019 13:01:42 +0000 (14:01 +0100)]
modules: readme files regenerated - secfilter ... [skip ci]

11 months agosecfilter: added locks and an RPC command to reset stats
Jose Luis Verdeguer [Tue, 12 Mar 2019 12:19:04 +0000 (13:19 +0100)]
secfilter: added locks and an RPC command to reset stats

11 months agosecfilter: update readme [skip ci]
Jose Luis Verdeguer [Tue, 12 Mar 2019 12:27:45 +0000 (13:27 +0100)]
secfilter: update readme [skip ci]

11 months agosecfilter: print statistics of blocked and allowed messages using RPC commands
Jose Luis Verdeguer [Tue, 12 Mar 2019 12:26:45 +0000 (13:26 +0100)]
secfilter: print statistics of blocked and allowed messages using RPC commands

11 months agosecfilter: avoid dereferences null
Jose Luis Verdeguer [Tue, 12 Mar 2019 09:03:26 +0000 (10:03 +0100)]
secfilter: avoid dereferences null

11 months agodb_oracle: oracle client updated: 12.2 -> 18.3
Ovidiu Sas [Mon, 11 Mar 2019 19:06:44 +0000 (15:06 -0400)]
db_oracle: oracle client updated: 12.2 -> 18.3

11 months agortpengine: normalise `compat.h` handling towards bencode upstream
Richard Fuchs [Mon, 11 Mar 2019 11:52:58 +0000 (07:52 -0400)]
rtpengine: normalise `compat.h` handling towards bencode upstream

fixes #1885

11 months agotcpops: log message when execution kemi callback fails
Daniel-Constantin Mierla [Mon, 11 Mar 2019 09:32:27 +0000 (10:32 +0100)]
tcpops: log message when execution kemi callback fails

11 months agoevrexec: safety check for kemi engine use
Daniel-Constantin Mierla [Mon, 11 Mar 2019 09:01:09 +0000 (10:01 +0100)]
evrexec: safety check for kemi engine use

11 months agotopoh: check returned pointer when decoding call-id
Daniel-Constantin Mierla [Mon, 11 Mar 2019 08:57:57 +0000 (09:57 +0100)]
topoh: check returned pointer when decoding call-id

11 months agomodules: readme files regenerated - dispatcher ... [skip ci]
Kamailio Dev [Mon, 11 Mar 2019 08:46:42 +0000 (09:46 +0100)]
modules: readme files regenerated - dispatcher ... [skip ci]

11 months agoMerge pull request #1877 from tverlaan/ds_rpc_remove_memory
Daniel-Constantin Mierla [Mon, 11 Mar 2019 08:37:44 +0000 (09:37 +0100)]
Merge pull request #1877 from tverlaan/ds_rpc_remove_memory

dispatcher: remove destination from in-memory dispatcher set

11 months agocore: mem/pkg - fix error macro name
Daniel-Constantin Mierla [Mon, 11 Mar 2019 07:57:12 +0000 (08:57 +0100)]
core: mem/pkg - fix error macro name

11 months agoapp_python: execution log message based on core latency_limit_action
Daniel-Constantin Mierla [Sun, 10 Mar 2019 09:56:03 +0000 (10:56 +0100)]
app_python: execution log message based on core latency_limit_action

11 months agotmx: use t_release_transaction for t_drop
lazedo [Tue, 5 Mar 2019 11:15:38 +0000 (11:15 +0000)]
tmx: use t_release_transaction for t_drop

11 months agocore: increase max_defines from 256 to 512
lazedo [Tue, 5 Mar 2019 10:35:01 +0000 (10:35 +0000)]
core: increase max_defines from 256 to 512

11 months agopresence: add sockinfo to $subs
lazedo [Tue, 5 Mar 2019 10:34:09 +0000 (10:34 +0000)]
presence: add sockinfo to $subs

11 months agocore: free resources in xavp_clone_level_nodata
lazedo [Tue, 5 Mar 2019 10:33:08 +0000 (10:33 +0000)]
core: free resources in xavp_clone_level_nodata

11 months agotm: add t_release_transaction to api
lazedo [Tue, 5 Mar 2019 10:30:55 +0000 (10:30 +0000)]
tm: add t_release_transaction to api

11 months agopv: use parsed uri to compute tosocket
lazedo [Tue, 5 Mar 2019 10:29:39 +0000 (10:29 +0000)]
pv: use parsed uri to compute tosocket

11 months agortimer: use timer worker id
lazedo [Tue, 5 Mar 2019 10:29:02 +0000 (10:29 +0000)]
rtimer: use timer worker id

11 months agocore: allow a worker id in timer routines
lazedo [Tue, 5 Mar 2019 09:59:04 +0000 (09:59 +0000)]
core: allow a worker id in timer routines

11 months agoapp_jsdt: execution log message based on core latency_limit_action
Daniel-Constantin Mierla [Sat, 9 Mar 2019 08:55:04 +0000 (09:55 +0100)]
app_jsdt: execution log message based on core latency_limit_action

11 months agotm: more debug to track decision to relay reply or not
Daniel-Constantin Mierla [Sat, 9 Mar 2019 08:40:59 +0000 (09:40 +0100)]
tm: more debug to track decision to relay reply or not

11 months agomodules: readme files regenerated - rtpengine ... [skip ci]
Kamailio Dev [Fri, 8 Mar 2019 21:16:42 +0000 (22:16 +0100)]
modules: readme files regenerated - rtpengine ... [skip ci]

11 months agortpengine: add docs for play_media() et al
Richard Fuchs [Fri, 8 Mar 2019 21:06:21 +0000 (16:06 -0500)]
rtpengine: add docs for play_media() et al

11 months agortpengine: add play_media() and stop_media()
Richard Fuchs [Fri, 8 Mar 2019 21:05:44 +0000 (16:05 -0500)]
rtpengine: add play_media() and stop_media()

Also includes addition of the media_duration pvar, as well as several
code cleanups and simplifications.

11 months agodispatcher: remove destination from in-memory dispatcher set 1877/head
Timmo Verlaan [Fri, 8 Mar 2019 20:19:22 +0000 (21:19 +0100)]
dispatcher: remove destination from in-memory dispatcher set

- add dispatcher.remove call to remove entry from in-memory dispatcher
list
- allow arguments to callback in ds_iter_set()

11 months agoapp_lua: execution log message based on core latency_limit_action
Daniel-Constantin Mierla [Fri, 8 Mar 2019 19:51:29 +0000 (20:51 +0100)]
app_lua: execution log message based on core latency_limit_action

11 months agocore: tcp - more details in debug messages
Daniel-Constantin Mierla [Fri, 8 Mar 2019 17:40:45 +0000 (18:40 +0100)]
core: tcp - more details in debug messages

11 months agocore: kemi - exported functions for equivalent tests of src_port and dst_port
Daniel-Constantin Mierla [Fri, 8 Mar 2019 17:37:38 +0000 (18:37 +0100)]
core: kemi - exported functions for equivalent tests of src_port and dst_port

11 months agohtable: exported get_clone api function to return pkg clone for item
Daniel-Constantin Mierla [Fri, 8 Mar 2019 08:04:58 +0000 (09:04 +0100)]
htable: exported get_clone api function to return pkg clone for item

- alternative to GH #1866

11 months agohtable: make static var the local htable item clone
Daniel-Constantin Mierla [Fri, 8 Mar 2019 08:03:47 +0000 (09:03 +0100)]
htable: make static var the local htable item clone

11 months agocore: kemi - corresponding functions to check af==ipv4/ipv6
Daniel-Constantin Mierla [Fri, 8 Mar 2019 07:40:09 +0000 (08:40 +0100)]
core: kemi - corresponding functions to check af==ipv4/ipv6

11 months agocore: exported functions to check incoming protocol
Daniel-Constantin Mierla [Thu, 7 Mar 2019 15:24:24 +0000 (16:24 +0100)]
core: exported functions to check incoming protocol

- corresponding to proto==UDP/TCP/TLS/...

11 months agortjson: reuse r-uri if not given in the rtjson field
Daniel-Constantin Mierla [Wed, 6 Mar 2019 07:16:29 +0000 (08:16 +0100)]
rtjson: reuse r-uri if not given in the rtjson field

11 months agortjson: more debug messages when getting routes from json
Daniel-Constantin Mierla [Tue, 5 Mar 2019 21:40:27 +0000 (22:40 +0100)]
rtjson: more debug messages when getting routes from json

11 months agortjson: user wrapper functions for kemi exports
Daniel-Constantin Mierla [Mon, 4 Mar 2019 19:30:25 +0000 (20:30 +0100)]
rtjson: user wrapper functions for kemi exports

11 months agomodules: readme files regenerated - rtpengine ... [skip ci]
Kamailio Dev [Mon, 4 Mar 2019 17:46:45 +0000 (18:46 +0100)]
modules: readme files regenerated - rtpengine ... [skip ci]

11 months agortpengine: update docs
Richard Fuchs [Mon, 4 Mar 2019 17:36:08 +0000 (12:36 -0500)]
rtpengine: update docs

Document rtpengine_info (from ffee45da0) and the via-branch=next option
(from 2baa05ad)

11 months agortpengine: add support for trickle ICE SDP fragments
Richard Fuchs [Mon, 4 Mar 2019 17:08:19 +0000 (12:08 -0500)]
rtpengine: add support for trickle ICE SDP fragments

11 months agortpengine: add support for explicit load balancing options
Richard Fuchs [Mon, 4 Mar 2019 17:07:30 +0000 (12:07 -0500)]
rtpengine: add support for explicit load balancing options

11 months agortpengine: add support for via-branch=extra option
Richard Fuchs [Mon, 4 Mar 2019 17:06:38 +0000 (12:06 -0500)]
rtpengine: add support for via-branch=extra option

11 months agotopoh: detect when via param is shorter than expected prefix
Daniel-Constantin Mierla [Sat, 2 Mar 2019 12:40:47 +0000 (13:40 +0100)]
topoh: detect when via param is shorter than expected prefix

11 months agotcpops: Fix minor typo: tcp_init_evroutes => tcpops_init_evroutes
Carsten Bock [Sun, 3 Mar 2019 23:15:19 +0000 (00:15 +0100)]
tcpops: Fix minor typo: tcp_init_evroutes => tcpops_init_evroutes

11 months agomodules: readme files regenerated - dialplan ... [skip ci]
Kamailio Dev [Fri, 1 Mar 2019 14:46:42 +0000 (15:46 +0100)]
modules: readme files regenerated - dialplan ... [skip ci]

11 months agodialplan: docs - note about limiting to max 1 rpc reload in 5 seconds
Daniel-Constantin Mierla [Fri, 1 Mar 2019 14:43:16 +0000 (15:43 +0100)]
dialplan: docs - note about limiting to max 1 rpc reload in 5 seconds

11 months agopv: new variable $rcv(key)
Daniel-Constantin Mierla [Fri, 1 Mar 2019 14:06:16 +0000 (15:06 +0100)]
pv: new variable $rcv(key)

- available inside event_route[core:msg-received]
- get details of the received message - the key can be:
  * buf - received message
  * len - lenght of received message
  * srcip - source ip
  * rcvip - local ip where it was received
  * scrport - source port
  * rcvport - local port where it was received
  * proto - protocol as int id
  * sproto - protocol as string
  * af - address family

11 months agocore: init actions context for running event_route[core:msg-received]
Daniel-Constantin Mierla [Fri, 1 Mar 2019 14:05:36 +0000 (15:05 +0100)]
core: init actions context for running event_route[core:msg-received]

11 months agocore: option to run event_route[core:msg-received] in incomming message
Daniel-Constantin Mierla [Fri, 1 Mar 2019 11:55:41 +0000 (12:55 +0100)]
core: option to run event_route[core:msg-received] in incomming message

- done before any major SIP parsing
- on drop, processing of the message is stopped
- enable with received_route_mode=yes (or 1)
- for kemi, set the callback name via kemi.received_route_callback param

11 months agodialplan: basic safety for concurent rpc reload
Daniel-Constantin Mierla [Fri, 1 Mar 2019 09:51:29 +0000 (10:51 +0100)]
dialplan: basic safety for concurent rpc reload

- reported by GH #1874

11 months agotm: put back t in wait timer if still referenced more than once
Daniel-Constantin Mierla [Thu, 28 Feb 2019 19:15:36 +0000 (20:15 +0100)]
tm: put back t in wait timer if still referenced more than once

- have a safety upper limit for putting back in wait timer
- special credits to Yufei Tao for testing and helping to troubleshoot

11 months agoMerge pull request #1872 from kamailio/cchance/htable_dmq_fix
Charles Chance [Thu, 28 Feb 2019 19:11:44 +0000 (19:11 +0000)]
Merge pull request #1872 from kamailio/cchance/htable_dmq_fix

htable: fix infinite loop during dmq sync of large tables

12 months agomodules: readme files regenerated - tcpops ... [skip ci]
Kamailio Dev [Thu, 28 Feb 2019 07:46:38 +0000 (08:46 +0100)]
modules: readme files regenerated - tcpops ... [skip ci]

12 months agotcpops: docs for event_callback parameter
Daniel-Constantin Mierla [Thu, 28 Feb 2019 07:42:51 +0000 (08:42 +0100)]
tcpops: docs for event_callback parameter

12 months agotcpops: event routes executed via kemi framework
Daniel-Constantin Mierla [Thu, 28 Feb 2019 07:35:53 +0000 (08:35 +0100)]
tcpops: event routes executed via kemi framework

- fixed missing compatibility with kemi execution
- event_callback parameter allows setting the name of kemi function

12 months agoutils: Fix copy/paste of 'database port'
Sean Bright [Wed, 27 Feb 2019 20:35:53 +0000 (15:35 -0500)]
utils: Fix copy/paste of 'database port'

12 months agotls: Minor spelling fix in workaround message
Sean Bright [Wed, 27 Feb 2019 20:35:31 +0000 (15:35 -0500)]
tls: Minor spelling fix in workaround message

12 months agodialog: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Wed, 27 Feb 2019 08:26:50 +0000 (09:26 +0100)]
dialog: use kemi wrapper to execute routing functions

12 months agodispatcher: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Wed, 27 Feb 2019 08:26:38 +0000 (09:26 +0100)]
dispatcher: use kemi wrapper to execute routing functions

12 months agoevapi: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Wed, 27 Feb 2019 08:26:19 +0000 (09:26 +0100)]
evapi: use kemi wrapper to execute routing functions

12 months agoeverexec: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Wed, 27 Feb 2019 08:26:09 +0000 (09:26 +0100)]
everexec: use kemi wrapper to execute routing functions

12 months agohttp_async_client: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Wed, 27 Feb 2019 08:25:51 +0000 (09:25 +0100)]
http_async_client: use kemi wrapper to execute routing functions

12 months agomsrp: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Wed, 27 Feb 2019 08:25:36 +0000 (09:25 +0100)]
msrp: use kemi wrapper to execute routing functions

12 months agoregistrar: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Wed, 27 Feb 2019 08:25:25 +0000 (09:25 +0100)]
registrar: use kemi wrapper to execute routing functions

12 months agosipcapture: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Wed, 27 Feb 2019 08:25:12 +0000 (09:25 +0100)]
sipcapture: use kemi wrapper to execute routing functions

12 months agotimer: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Wed, 27 Feb 2019 08:24:51 +0000 (09:24 +0100)]
timer: use kemi wrapper to execute routing functions

12 months agotls: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Wed, 27 Feb 2019 08:24:32 +0000 (09:24 +0100)]
tls: use kemi wrapper to execute routing functions

12 months agotopoh: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Wed, 27 Feb 2019 08:24:12 +0000 (09:24 +0100)]
topoh: use kemi wrapper to execute routing functions

12 months agotopos: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Wed, 27 Feb 2019 08:23:57 +0000 (09:23 +0100)]
topos: use kemi wrapper to execute routing functions

12 months agowebsocket: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Wed, 27 Feb 2019 08:23:31 +0000 (09:23 +0100)]
websocket: use kemi wrapper to execute routing functions

12 months agoxhttp: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Wed, 27 Feb 2019 08:23:13 +0000 (09:23 +0100)]
xhttp: use kemi wrapper to execute routing functions

12 months agoxmlrpc: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Wed, 27 Feb 2019 08:23:00 +0000 (09:23 +0100)]
xmlrpc: use kemi wrapper to execute routing functions

12 months agomodules: readme files regenerated - dispatcher ... [skip ci]
Kamailio Dev [Wed, 27 Feb 2019 08:16:58 +0000 (09:16 +0100)]
modules: readme files regenerated - dispatcher ... [skip ci]

12 months agodispatcher: more details for use_default param with dispatcher.list file
denyspozniak [Wed, 27 Feb 2019 08:05:03 +0000 (09:05 +0100)]
dispatcher: more details for use_default param with dispatcher.list file

12 months agohtable: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Tue, 26 Feb 2019 18:09:44 +0000 (19:09 +0100)]
htable: use kemi wrapper to execute routing functions

12 months agortimer: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Tue, 26 Feb 2019 18:01:28 +0000 (19:01 +0100)]
rtimer: use kemi wrapper to execute routing functions