sip-router
16 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'

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

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

16 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

16 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

16 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

16 months agotm: use kemi wrapper to execute routing functions
Daniel-Constantin Mierla [Tue, 26 Feb 2019 17:59:16 +0000 (18:59 +0100)]
tm: use kemi wrapper to execute routing functions

16 months agocore: use kemi exec route wrapper for onsend_route and child one init event
Daniel-Constantin Mierla [Tue, 26 Feb 2019 17:37:30 +0000 (18:37 +0100)]
core: use kemi exec route wrapper for onsend_route and child one init event

16 months agocore: receive - use kemi wrapper to execute top keng routes
Daniel-Constantin Mierla [Tue, 26 Feb 2019 17:22:38 +0000 (18:22 +0100)]
core: receive - use kemi wrapper to execute top keng routes

- reset the select static buffer
- GH #1829

16 months agocore: kemi - wraper to execute top routing function
Daniel-Constantin Mierla [Tue, 26 Feb 2019 17:19:00 +0000 (18:19 +0100)]
core: kemi - wraper to execute top routing function

- reset the static buffer for selects and script flags

16 months agoimc: report error if room owner sends #leave
Jan Janak [Thu, 21 Feb 2019 18:02:08 +0000 (13:02 -0500)]
imc: report error if room owner sends #leave

Previously, if the room owner send the #leave command, the room would
have been automatically destroyed. That is somewhat dangerous and
error prone, e.g., if the user sends the #leave command to the wrong
room. With this patch, #leave reports an error if used by a room
owner and the user is encouraged to use #destroy instead.

16 months agoimc: add Supported header to all chat room MESSAGEs.
Jan Janak [Wed, 20 Feb 2019 23:12:02 +0000 (18:12 -0500)]
imc: add Supported header to all chat room MESSAGEs.

The header contains value "kamailio/imc" which indicates that the
end-point is a chat room that supports the in-band signaling protocol
implemented by Kamailio's imc module.

16 months agoimc: add In-Reply-To header to MESSAGEs generated in response
Jan Janak [Wed, 20 Feb 2019 22:21:13 +0000 (17:21 -0500)]
imc: add In-Reply-To header to MESSAGEs generated in response

When generating a MESSAGE in response to a command, add a In-Reply-To
header field to the second message with the Call-ID of the (original)
message that carried the command. A chat client could then use the
In-Reply-To header field to correlate requests and responses carried
in-band in chat messages.

16 months agoimc: implement command #rooms
Jan Janak [Wed, 20 Feb 2019 17:44:16 +0000 (12:44 -0500)]
imc: implement command #rooms

The command can be used to list all the rooms available on the chat
server.

16 months agoimc: implement command #add
Jan Janak [Wed, 20 Feb 2019 16:21:56 +0000 (11:21 -0500)]
imc: implement command #add

The command can be used by room owners and administrators to
explicitly add other users as members to the room. It works a bit like
the command #invite, except that the added user will have no chance to
accept or reject the request.

16 months agoimc: check arguments in #invite
Jan Janak [Wed, 20 Feb 2019 15:51:03 +0000 (10:51 -0500)]
imc: check arguments in #invite

The command has one required argument: the name/URI of the user to be
invited to the room.

16 months agoimc: a small fix in #join
Jan Janak [Wed, 20 Feb 2019 15:40:24 +0000 (10:40 -0500)]
imc: a small fix in #join

When a user has left or been removed from a room and try to join
again, make sure to test the IMC_MEMBER_DELETED flag, otherwise they'd
be getting a message that they are already in the room.

16 months agoimc: make message buffer larger
Jan Janak [Wed, 20 Feb 2019 15:22:56 +0000 (10:22 -0500)]
imc: make message buffer larger

Enlarge the buffer so that longer messages and user lists can be sent.
A larger buffer is fine when TCP and or TLS is used.

16 months agoimc: notify user #leaving a room.
Jan Janak [Wed, 20 Feb 2019 15:19:44 +0000 (10:19 -0500)]
imc: notify user #leaving a room.

When a user chooses to leave a room, send the broadcast first. That
way, the broadcast will include the leaving user and they will be able
to see that they have left the room successfully. Also, this behavior
is consistent with the behavior of #join.

16 months agoimc: improved #join command handling
Jan Janak [Wed, 20 Feb 2019 15:03:22 +0000 (10:03 -0500)]
imc: improved #join command handling

This patch improves the overall handling of the #join command on the
chat server. If a user attempts to join a room they are already a
member of, notify the user, instead of sending a broadcast that the
user has joined again to the entire room.

If a user attempts to join a private room, notify them that private
rooms are by invitation only with a unicast message and send a
broadcast to the entire room about the join attempt so that
administrators can see the join attempt in order to decide whether or
not to send an invitation to the user.

16 months agoimc: consistent formatting of room/user names.
Jan Janak [Wed, 20 Feb 2019 07:30:08 +0000 (02:30 -0500)]
imc: consistent formatting of room/user names.

No matter in which message a room URI or user URI is printed, always
use the same function to consistent format the resulting string. In
most cases, this means printing just the username portion of the full
URI.

16 months agoimc: cleanup in invite related messages.
Jan Janak [Wed, 20 Feb 2019 06:39:17 +0000 (01:39 -0500)]
imc: cleanup in invite related messages.

In the original version, when the user receives an invitation to join
the room, it was not obvious who is inviting.

16 months agoimc: rename command #list to #members.
Jan Janak [Wed, 20 Feb 2019 06:30:32 +0000 (01:30 -0500)]
imc: rename command #list to #members.

List was not very good name for the command, because the user would
not know whether the command lists rooms or members within a room.

The alias "list" is kept for backward compatibility.

16 months agoimc: make #create command arguments optional
Jan Janak [Wed, 20 Feb 2019 06:23:53 +0000 (01:23 -0500)]
imc: make #create command arguments optional

With no arguments, the room name is taken from To header and the room
will be made public.

With one argument, if the value is 'private', a private room with name
from To is created. If the value of the single argument is anything
else, it is taken as room name and the room will be made public.

With two argument, the first argument is room name and the second
argument must be string 'private'.

This change makes the #create command consistent with all other
commands where the room/user name is also optional.

16 months agoimc: consistent handling of command parameters.
Jan Janak [Wed, 20 Feb 2019 05:11:29 +0000 (00:11 -0500)]
imc: consistent handling of command parameters.

Most (all) commands takes parametes in one of the following forms:
username, username@domain, sip:username@domain. The purpose of this
change is to provide consistent handling of such parameters across all
commands and their arguments.

If a command takes a user or a room as a parameter, the user can
provide just a username, username@domain, or a full URI
sip:username@domain. The imc module will automatically obtain missing
parts from other parts of the message, e.g., the Request-URI or From
headers.

In addition, all debugging and logging messages print the full URI of
users and rooms. This significantly helps with debugging and
development.

16 months agoimc: pass both parsed and unparsed URIs to all command handlers
Jan Janak [Tue, 19 Feb 2019 19:14:26 +0000 (14:14 -0500)]
imc: pass both parsed and unparsed URIs to all command handlers

In order for the command handler to be able to send a response back
when the corresponding room does not exist, e.g., when sending an
error message, the handler must have access to the original unparsed
URI.

This change fixes one bug on the side: when sending a response, the
response will be sent to the correct part number which was part of the
original SIP URI. Previously, port numbers were ignored since the SIP
URI to send the message to was constructed just from the username and
domain parts.

16 months agoimc: make behavior of "#create" configurable when room already exists
Jan Janak [Tue, 19 Feb 2019 16:53:29 +0000 (11:53 -0500)]
imc: make behavior of "#create" configurable when room already exists

The default behavior of the create command is to silently add the user
to a group of one already exists. This can be confusing in some
scenarios, e.g., when the user miss-types the room number. This patch
adds a module parameter called "check_on_create" which makes it
possible to customize this behavior. If set and the user attempts to
create a room that already exists, the command will report an error.

16 months agoimc: define message prefix with a macro
Jan Janak [Tue, 19 Feb 2019 16:21:40 +0000 (11:21 -0500)]
imc: define message prefix with a macro

This simple change makes it much easier to consistently change the
prefix across all messages sent to the user. By default, the prefix is
"*** ".

16 months agoimc: make behavior of "#join" when room does not exist configurable
Jan Janak [Tue, 19 Feb 2019 16:08:42 +0000 (11:08 -0500)]
imc: make behavior of "#join" when room does not exist configurable

Before, the command "#join" would automatically create the room and
add the user to the room if it does not exist. That behavior can be
confusing, especially on mobile where it is easy to miss-type room
name. With the default behavior, the user would be added to the wrong
room in that case.

This patch introduces module parameter "create_on_join" which makes
this behavior configurable. If set to 0, command join will not create
the room if it does not exist and would send an error back to the user
instead.

16 months agoimc: use correct command prefix in the invite message.
Jan Janak [Tue, 19 Feb 2019 15:44:02 +0000 (10:44 -0500)]
imc: use correct command prefix in the invite message.

When showing the INVITATION to the user, make sure to show the actual
command prefix that has been configured via the module parameter.

16 months agoimc: use STR_FMT in formatted string arguments.
Jan Janak [Tue, 19 Feb 2019 15:35:55 +0000 (10:35 -0500)]
imc: use STR_FMT in formatted string arguments.

This makes the code somewhat shorter and safer.

16 months agoimc: collect chat room related strings in one place.
Jan Janak [Tue, 19 Feb 2019 15:01:26 +0000 (10:01 -0500)]
imc: collect chat room related strings in one place.

Rather than embedding strings directly in the functions that use them,
it is better to have them collected at one place so that they can be
easily modified. Later, we may turn the strings into module parameters
so that they can be customized at startup time, e.g., to translate them.

16 months agoimc: remove code duplication.
Jan Janak [Tue, 19 Feb 2019 06:54:18 +0000 (01:54 -0500)]
imc: remove code duplication.

A significant portion of the functions handling invite and remove was
duplicated code. Refactor the code into a common function.

16 months agoimc: rename "exit" to "leave", keep backward compatiblity
Jan Janak [Tue, 19 Feb 2019 05:58:08 +0000 (00:58 -0500)]
imc: rename "exit" to "leave", keep backward compatiblity

The command name "leave" better describes what the command does and is
less confusing for users (coincidentally, source code comments and
debugging messages also use leave, not exit).

The command name "exit" is kept as an alias for backward
compatibility.

16 months agoimc: minor language fixes
Jan Janak [Tue, 19 Feb 2019 05:50:37 +0000 (00:50 -0500)]
imc: minor language fixes

16 months agoimc: rename command "deny" to "reject"
Jan Janak [Tue, 19 Feb 2019 05:41:16 +0000 (00:41 -0500)]
imc: rename command "deny" to "reject"

Since the command effectively "rejects" an invitation, the word
"reject" is a better match. Keep "deny" as an alias to the command for
backward compatibility.

16 months agoims_ipsec_pcscf: IPv6 support
Tsvetomir Dimitrov [Wed, 13 Feb 2019 08:56:14 +0000 (08:56 +0000)]
ims_ipsec_pcscf: IPv6 support

The parameter ipsec_listen_addr of the module can be set to either IPv4
or IPv6 address. All xfrm related code is reworked to handle both type
of addresses.

Note: At the moment it is not possible to use both IPv4 and IPv6 at the
same time for IPSec. The implementation allows it, but additional config
parameters should be added in order to make this work.

16 months agoims_ipsec_pcscf: TCP support
Tsvetomir Dimitrov [Tue, 16 Oct 2018 12:44:00 +0000 (12:44 +0000)]
ims_ipsec_pcscf: TCP support

Adds TCP support to the module. The client and server ports, specified
in the configuration, are bound on TCP and UDP protocols. All xfrm
related code is changed to work with both protocols.

16 months agocore: return the correct position in out buffer for decode base58
Daniel-Constantin Mierla [Tue, 26 Feb 2019 11:08:18 +0000 (12:08 +0100)]
core: return the correct position in out buffer for decode base58

- GH #1868

16 months agotm: use msg_ctx_id_t to detect same msg/transaction processing
Daniel-Constantin Mierla [Tue, 26 Feb 2019 07:03:01 +0000 (08:03 +0100)]
tm: 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)

16 months agocdp: proper check not to go over allocated size of apps ids
Daniel-Constantin Mierla [Tue, 26 Feb 2019 06:57:49 +0000 (07:57 +0100)]
cdp: proper check not to go over allocated size of apps ids

- GH #1851

16 months agocore: set msg->pid when building local sip_msg_t from buf
Daniel-Constantin Mierla [Tue, 26 Feb 2019 06:57:12 +0000 (07:57 +0100)]
core: set msg->pid when building local sip_msg_t from buf

16 months agocore: msgid made unsigned inside msg_ctx_id_t to match field in sip_msg_t
Daniel-Constantin Mierla [Tue, 26 Feb 2019 06:54:24 +0000 (07:54 +0100)]
core: msgid made unsigned inside msg_ctx_id_t to match field in sip_msg_t

16 months agorr: parse route headers if not parsed already (instead of aborting)
Ovidiu Sas [Mon, 25 Feb 2019 20:56:44 +0000 (07:56 +1100)]
rr: parse route headers if not parsed already (instead of aborting)

16 months agomodules: readme files regenerated - rtpengine ... [skip ci]
Kamailio Dev [Mon, 25 Feb 2019 16:01:55 +0000 (17:01 +0100)]
modules: readme files regenerated - rtpengine ... [skip ci]

16 months agotopoh: improve checks for contact header processing
Henning Westerholt [Mon, 25 Feb 2019 15:45:42 +0000 (16:45 +0100)]
topoh: improve checks for contact header processing

16 months agortpengine: docs for start_forwarding and stop_forwarding (558780f743)
Richard Fuchs [Mon, 25 Feb 2019 15:46:23 +0000 (10:46 -0500)]
rtpengine: docs for start_forwarding and stop_forwarding (558780f743)

16 months agortpengine: add support for start_forwarding and stop_forwarding
Richard Fuchs [Mon, 25 Feb 2019 15:45:02 +0000 (10:45 -0500)]
rtpengine: add support for start_forwarding and stop_forwarding

16 months agoapp_python3: exported exec function to KEMI also as execx
Daniel-Constantin Mierla [Mon, 25 Feb 2019 08:20:47 +0000 (09:20 +0100)]
app_python3: exported exec function to KEMI also as execx

16 months agoapp_python: exported exec function to KEMI also as execx
Daniel-Constantin Mierla [Mon, 25 Feb 2019 08:19:34 +0000 (09:19 +0100)]
app_python: exported exec function to KEMI also as execx

16 months agondb_mongodb: exported exec function to KEMI also as execx
Daniel-Constantin Mierla [Mon, 25 Feb 2019 08:05:07 +0000 (09:05 +0100)]
ndb_mongodb: exported exec function to KEMI also as execx

16 months agojsonrpcs: exported exec function to KEMI also as execx
Daniel-Constantin Mierla [Mon, 25 Feb 2019 07:35:37 +0000 (08:35 +0100)]
jsonrpcs: exported exec function to KEMI also as execx

- exec is a builtin in older versions of python and results in error
if used as a member of an object
- alternative:
  jsonrpcs_exec = getattr(KSR.jsonrpc, "exec")
  jsonrpcs_exec("...")

16 months agomodules: readme files regenerated - rtp_media_server ... [skip ci]
Kamailio Dev [Mon, 25 Feb 2019 04:31:36 +0000 (05:31 +0100)]
modules: readme files regenerated - rtp_media_server ... [skip ci]

16 months agortp_media_server: configurable event routes
Julien Chavanton [Mon, 25 Feb 2019 04:13:20 +0000 (04:13 +0000)]
rtp_media_server: configurable event routes

 for all action commands and corrected docs

16 months agotopoh: improve checks for via header processing
Henning Westerholt [Sun, 24 Feb 2019 20:25:25 +0000 (21:25 +0100)]
topoh: improve checks for via header processing

16 months agomodules: readme files regenerated - rtp_media_server ... [skip ci]
Kamailio Dev [Fri, 22 Feb 2019 23:01:34 +0000 (00:01 +0100)]
modules: readme files regenerated - rtp_media_server ... [skip ci]

16 months agortp_media_server: proper handling on CANCEL
Julien Chavanton [Fri, 22 Feb 2019 20:30:01 +0000 (20:30 +0000)]
rtp_media_server: proper handling on CANCEL

 while bridging.
 doc update for bridge command

16 months agomodules: readme files regenerated - rtp_media_server ... [skip ci]
Kamailio Dev [Fri, 22 Feb 2019 17:31:45 +0000 (18:31 +0100)]
modules: readme files regenerated - rtp_media_server ... [skip ci]

16 months agoMerge pull request #1823 from kamailio/rtp_media_server
Julien Chavanton [Fri, 22 Feb 2019 17:27:16 +0000 (09:27 -0800)]
Merge pull request #1823 from kamailio/rtp_media_server

rtp_media_server: adding call bridging

16 months agomodules: readme files regenerated - evrexec ... [skip ci]
Kamailio Dev [Fri, 22 Feb 2019 11:32:12 +0000 (12:32 +0100)]
modules: readme files regenerated - evrexec ... [skip ci]

16 months agoevrexec: documentation for rpc command evrexec.run
Daniel-Constantin Mierla [Fri, 22 Feb 2019 11:16:40 +0000 (12:16 +0100)]
evrexec: documentation for rpc command evrexec.run

16 months agoevrexec: added rpc command evrexec.run to run an event_route
Daniel-Constantin Mierla [Fri, 22 Feb 2019 10:54:13 +0000 (11:54 +0100)]
evrexec: added rpc command evrexec.run to run an event_route

- kamctl rpc evrexec.run evname [evdata]
- first parameter is the event route name (or KEMI function)
- second parameter (optional, string) is an arbitrary data that becomes
available inside the event route via $evr(data)

16 months agosiputils: fix debug logging
Ovidiu Sas [Thu, 21 Feb 2019 23:48:55 +0000 (18:48 -0500)]
siputils: fix debug logging

16 months agoRevert "siputils: fix debug logging"
Ovidiu Sas [Thu, 21 Feb 2019 23:47:34 +0000 (18:47 -0500)]
Revert "siputils: fix debug logging"

This reverts commit 91b2c5da34ba7064f858b13bf0a1d27da74336d4.

16 months agosiptrace: check database table version only if db connector supports query
Daniel-Constantin Mierla [Thu, 21 Feb 2019 15:03:41 +0000 (16:03 +0100)]
siptrace: check database table version only if db connector supports query

- reported by GH #1850

16 months agopkg/kamailio/obs: Fixed sipcapture-daemon-config dependency [skip ci]
Sergey Safarov [Thu, 21 Feb 2019 06:54:17 +0000 (09:54 +0300)]
pkg/kamailio/obs: Fixed sipcapture-daemon-config dependency [skip ci]

16 months agopkg/kamailio/obs: Added secfilter package [skip ci]
Sergey Safarov [Thu, 21 Feb 2019 06:52:15 +0000 (09:52 +0300)]
pkg/kamailio/obs: Added secfilter package [skip ci]

16 months agosiputils: fix debug logging
root [Wed, 20 Feb 2019 20:11:25 +0000 (07:11 +1100)]
siputils: fix debug logging

16 months agokamctl: updates to trap command to work with pretty printed jsonrpc
Daniel-Constantin Mierla [Wed, 20 Feb 2019 11:14:13 +0000 (12:14 +0100)]
kamctl: updates to trap command to work with pretty printed jsonrpc

16 months agokamctl: also shift only on params when printing rpc command
Daniel-Constantin Mierla [Wed, 20 Feb 2019 10:32:49 +0000 (11:32 +0100)]
kamctl: also shift only on params when printing rpc command

16 months agokamctl: shift only when expecting more parameters for rpc command
Daniel-Constantin Mierla [Wed, 20 Feb 2019 10:30:26 +0000 (11:30 +0100)]
kamctl: shift only when expecting more parameters for rpc command

16 months agocore: added latency_limit_cfg global parameter
Daniel-Constantin Mierla [Wed, 20 Feb 2019 09:22:03 +0000 (10:22 +0100)]
core: added latency_limit_cfg global parameter

- print execution time for configuration script only if it exceeds this
value
- default is 0 - print allways (behaviour so far)
- it is printed to latency_cfg_log level

16 months agokamailio.cfg: explicitely set the tcp/tls connections upper limits
Daniel-Constantin Mierla [Tue, 19 Feb 2019 16:37:40 +0000 (17:37 +0100)]
kamailio.cfg: explicitely set the tcp/tls connections upper limits

- notes about tcp_children and relation with children parameter

16 months agoMerge pull request #1859 from sergey-vb/sergey-vb-fix-redirection_number
Daniel-Constantin Mierla [Tue, 19 Feb 2019 07:32:32 +0000 (08:32 +0100)]
Merge pull request #1859 from sergey-vb/sergey-vb-fix-redirection_number

sipt: $sipt(redirection_number) evaluates the value as a numerical value

16 months agoutils: revert commit to two files accidentally introduced in commit 61eb1ac7
Henning Westerholt [Mon, 18 Feb 2019 19:54:03 +0000 (20:54 +0100)]
utils: revert commit to two files accidentally introduced in commit 61eb1ac7

16 months agokamdbctl: warn that drop cmd will drop existing DB, ask for confirmation (GH #1858)
Henning Westerholt [Mon, 18 Feb 2019 19:44:29 +0000 (20:44 +0100)]
kamdbctl: warn that drop cmd will drop existing DB, ask for confirmation (GH #1858)

- warn that the drop command will drop existing DB, ask for confirmation
- manually merge pull request GH #1858 from fredposner, fred at qxork dot com

16 months agoimc: fix a chat room related crash and DB reload problems (GH #1855)
Jan Janak [Sun, 17 Feb 2019 20:00:47 +0000 (15:00 -0500)]
imc: fix a chat room related crash and DB reload problems (GH #1855)

- Avoid crash in case a chat room has no members.
  The imc module may encounter chat rooms that, for one reason or another,
  have no members. In that case, we cannot use the URI of the first member
  as the owner URI. This happens, for example, when the destroy function
  fails to save chat room members into the database.
- When storing data in database, use replace instead of insert.
  The insert statement would fail with an index violation if the
  database already contains a matching record. That would happen, for
  example, if some of the records being saved in mod_destroy were
  re-loaded from the database on server start.

16 months ago kamdbctl: added verification before reinit (#1852)
Fred Posner [Sun, 17 Feb 2019 18:38:33 +0000 (13:38 -0500)]
 kamdbctl: added verification before reinit  (#1852)

kamdbctl: added verification before reinit command (GH #1852)
- add get_answer and warning that reinit command will drop existing database
- even seasoned users forget and ther is no backing out, results in data loss

16 months agoMakefile.defs: version set to 5.3.0-dev3
Daniel-Constantin Mierla [Thu, 14 Feb 2019 08:35:16 +0000 (09:35 +0100)]
Makefile.defs: version set to 5.3.0-dev3

16 months agocore: log printed size, current token size and buffer size for pv printf overflow
Daniel-Constantin Mierla [Wed, 13 Feb 2019 08:42:08 +0000 (09:42 +0100)]
core: log printed size, current token size and buffer size for pv printf overflow

16 months agotopos: fix typos in the debug messages
Daniel-Constantin Mierla [Tue, 12 Feb 2019 22:49:08 +0000 (23:49 +0100)]
topos: fix typos in the debug messages

16 months agotopos_redis: print expires value in log messages
Daniel-Constantin Mierla [Mon, 11 Feb 2019 22:23:56 +0000 (23:23 +0100)]
topos_redis: print expires value in log messages

16 months agoregistrar : check xavp clone result
lazedo [Fri, 8 Feb 2019 14:39:03 +0000 (14:39 +0000)]
registrar : check xavp clone result

16 months agomodules: readme files regenerated - sl ... [skip ci]
Kamailio Dev [Mon, 11 Feb 2019 20:46:46 +0000 (21:46 +0100)]
modules: readme files regenerated - sl ... [skip ci]

16 months agocore/config: Increase MAX_REDIRECTION_LEN from 512 to 4096
Alex Hermann [Thu, 31 Jan 2019 16:28:35 +0000 (17:28 +0100)]
core/config: Increase MAX_REDIRECTION_LEN from 512 to 4096

Contacts can be long and there may be many of them.