sip-router
14 months agostun: small spelling fix: lenght -> length
Henning Westerholt [Sun, 24 Mar 2019 18:20:42 +0000 (19:20 +0100)]
stun: small spelling fix: lenght -> length

14 months agosctp: small spelling fix: lenght -> length
Henning Westerholt [Sun, 24 Mar 2019 18:20:31 +0000 (19:20 +0100)]
sctp: small spelling fix: lenght -> length

14 months agondb_redis: small spelling fix: lenght -> length
Henning Westerholt [Sun, 24 Mar 2019 18:20:21 +0000 (19:20 +0100)]
ndb_redis: small spelling fix: lenght -> length

14 months agoims_registrar_scscf: small spelling fix: lenght -> length
Henning Westerholt [Sun, 24 Mar 2019 18:20:00 +0000 (19:20 +0100)]
ims_registrar_scscf: small spelling fix: lenght -> length

14 months agodialog: small spelling fix: lenght -> length
Henning Westerholt [Sun, 24 Mar 2019 18:19:50 +0000 (19:19 +0100)]
dialog: small spelling fix: lenght -> length

14 months agodb_postgres: small spelling fix: lenght -> length
Henning Westerholt [Sun, 24 Mar 2019 18:19:37 +0000 (19:19 +0100)]
db_postgres: small spelling fix: lenght -> length

14 months agocarrierroute: small spelling fix: lenght -> length
Henning Westerholt [Sun, 24 Mar 2019 18:19:19 +0000 (19:19 +0100)]
carrierroute: small spelling fix: lenght -> length

14 months agocore: small spelling fix: lenght -> length
Henning Westerholt [Sun, 24 Mar 2019 18:18:28 +0000 (19:18 +0100)]
core: small spelling fix: lenght -> length

14 months agocore: added define to set max length for advertised socket info
Daniel-Constantin Mierla [Sat, 23 Mar 2019 20:54:17 +0000 (21:54 +0100)]
core: added define to set max length for advertised socket info

- allow different value than the length for socket address
- value set to 255
- GH #1902

14 months agoMerge pull request #1903 from kevin-olbrich/patch-1
Daniel-Constantin Mierla [Sat, 23 Mar 2019 17:30:42 +0000 (18:30 +0100)]
Merge pull request #1903 from kevin-olbrich/patch-1

etc/kamailio.cfg: detect sipvicious as scanner

14 months agoetc/kamailio.cfg: detect sipvicious as scanner 1903/head
Kevin Olbrich [Fri, 22 Mar 2019 20:45:35 +0000 (21:45 +0100)]
etc/kamailio.cfg: detect sipvicious as scanner

14 months agoapp_ruby: detect if the exception is a script exit
Daniel-Constantin Mierla [Fri, 22 Mar 2019 04:41:07 +0000 (05:41 +0100)]
app_ruby: detect if the exception is a script exit

14 months agodialog: parse headers for request and transfer reply for errors
Daniel-Constantin Mierla [Fri, 22 Mar 2019 03:34:26 +0000 (04:34 +0100)]
dialog: parse headers for request and transfer reply for errors

14 months agodialog: parse tm callback reply in early phase to detect broken format
Daniel-Constantin Mierla [Fri, 22 Mar 2019 03:17:23 +0000 (04:17 +0100)]
dialog: parse tm callback reply in early phase to detect broken format

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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]

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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]

14 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

14 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]

14 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

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

14 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

14 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

14 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

14 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

14 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

14 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]

14 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

14 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

14 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

14 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

14 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

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

14 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

14 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

14 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

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

14 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

14 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

14 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

14 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]

14 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

14 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.

14 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()

14 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

14 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

14 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

14 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

14 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

14 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

14 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/...

14 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

14 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

14 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

14 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]

14 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)

14 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

14 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

14 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

14 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

14 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

14 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]

14 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

14 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

14 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]

14 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

14 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

14 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

14 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

14 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]

14 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

14 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

14 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'

14 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

15 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

15 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

15 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

15 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

15 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