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

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

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

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

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

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

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

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
Daniel-Constantin Mierla [Fri, 22 Feb 2019 11:16:40 +0000 (12:16 +0100)]
evrexec: documentation for rpc command

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

- kamctl rpc 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
- 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.

16 months agouac_redirect: Use Contact's "flags" header parameter into branch flags.
Alex Hermann [Thu, 31 Jan 2019 16:28:34 +0000 (17:28 +0100)]
uac_redirect: Use Contact's "flags" header parameter into branch flags.

16 months agocore/parser: Add parser for 'flags' param in Contact header
Alex Hermann [Thu, 31 Jan 2019 16:28:33 +0000 (17:28 +0100)]
core/parser: Add parser for 'flags' param in Contact header

16 months agotm: Add option to add path and flags to redirected contacts
Alex Hermann [Thu, 31 Jan 2019 16:28:32 +0000 (17:28 +0100)]
tm: Add option to add path and flags to redirected contacts

16 months agosl: Add option to add path and flags to redirected contacts
Alex Hermann [Thu, 31 Jan 2019 16:28:31 +0000 (17:28 +0100)]
sl: Add option to add path and flags to redirected contacts

16 months agocore/dset: Create contacts with flags as header parameter
Alex Hermann [Thu, 31 Jan 2019 16:28:30 +0000 (17:28 +0100)]
core/dset: Create contacts with flags as header parameter

Add the branch flags to the Contact uri in a redirect (302).

16 months agocore/dset: Create Contacts header with path vector as Route header
Alex Hermann [Thu, 31 Jan 2019 16:28:29 +0000 (17:28 +0100)]
core/dset: Create Contacts header with path vector as Route header

When Kamailio is functioning as a registrar sends a 302 redirect, the
registered contacts are sent inside the Contact header. If a contact
as a path vector, that path should become a Route header in the
INVITE (rfc 3327). This patch adds the path vector as a Route header
parameter to the Contacts in the redirect so the receiving entity of
the 302 can add the proper Route headers.

This is a standard way to specify headers to be added to a request,
see rfc3261 section 19.1.1.

16 months agocore/dset: Add options field to print_dset()
Alex Hermann [Thu, 31 Jan 2019 16:28:28 +0000 (17:28 +0100)]
core/dset: Add options field to print_dset()

Will be used later on to optionally enhance the contacts.

16 months agocore/dset: Cleanup printing the dset
Alex Hermann [Thu, 31 Jan 2019 16:28:27 +0000 (17:28 +0100)]
core/dset: Cleanup printing the dset

Eliminate duplicate code

16 months agotls: use NID_userId instead of NID_x500UniqueIdentifier access (GH #1846)
Henning Westerholt [Mon, 11 Feb 2019 20:26:10 +0000 (21:26 +0100)]
tls: use NID_userId instead of NID_x500UniqueIdentifier access (GH #1846)

- use NID_userId instead of NID_x500UniqueIdentifier to access the uid field
  in x509 subjects in tls module
- pull request GH #1846 from Sebastian Denz, denzs at gonicus dot de

16 months agocore: fix related to e3ecad34bb1 in dst_blacklist.c, small whitespace change in ut.c
Henning Westerholt [Mon, 11 Feb 2019 20:15:57 +0000 (21:15 +0100)]
core: fix related to e3ecad34bb1 in dst_blacklist.c, small whitespace change in ut.c

16 months agoMerge pull request #1847 from sergey-safarov/1836
ng-voice GmbH [Mon, 11 Feb 2019 13:37:24 +0000 (14:37 +0100)]
Merge pull request #1847 from sergey-safarov/1836

src/core/tcp_main.c: Fixed #1836 after regression introduced …

16 months agosrc/core/tcp_main.c: Fixed #1836 after regression introduced e3ecad34bb13e72b16a4213e... 1847/head
Sergey Safarov [Mon, 11 Feb 2019 12:37:15 +0000 (15:37 +0300)]
src/core/tcp_main.c: Fixed #1836 after regression introduced e3ecad34bb13e72b16a4213e7ce785194e88c534

16 months agomodules: readme files regenerated - tls ... [skip ci]
Kamailio Dev [Sun, 10 Feb 2019 16:01:42 +0000 (17:01 +0100)]
modules: readme files regenerated - tls ... [skip ci]

16 months agotls: replace old sip-router wiki with current kamailio wiki entity in docs
Henning Westerholt [Sun, 10 Feb 2019 15:56:37 +0000 (16:56 +0100)]
tls: replace old sip-router wiki with current kamailio wiki entity in docs

16 months agotm: debug message when matching a skip method for transaction lookup
Daniel-Constantin Mierla [Sun, 10 Feb 2019 15:16:29 +0000 (16:16 +0100)]
tm: debug message when matching a skip method for transaction lookup

16 months agomodules: readme files regenerated - app_lua ... [skip ci]
Kamailio Dev [Sun, 10 Feb 2019 14:46:42 +0000 (15:46 +0100)]
modules: readme files regenerated - app_lua ... [skip ci]

16 months agodispatcher: docs for ds_load_mode parameter
Daniel-Constantin Mierla [Fri, 8 Feb 2019 14:16:13 +0000 (15:16 +0100)]
dispatcher: docs for ds_load_mode parameter

16 months agodispatcher: ds_load_mode - control behaviour when adding destinations
Daniel-Constantin Mierla [Fri, 8 Feb 2019 14:10:35 +0000 (15:10 +0100)]
dispatcher: ds_load_mode - control behaviour when adding destinations

- 0 (default) - skip when failing to add a destination address (current
- 1 - throw error when failing to add a destination address

16 months agoapp_lua: docs - added note about KSR KEMI exports for register parameter
Daniel-Constantin Mierla [Fri, 8 Feb 2019 19:11:40 +0000 (20:11 +0100)]
app_lua: docs - added note about KSR KEMI exports for register parameter

- mention that old 'sr' Lua module might be obsoleted soon

16 months agocorex: removed svn id headers
Daniel-Constantin Mierla [Mon, 4 Feb 2019 19:07:25 +0000 (20:07 +0100)]
corex: removed svn id headers

16 months agogzcompress: removed svn id line
Daniel-Constantin Mierla [Mon, 4 Feb 2019 19:04:20 +0000 (20:04 +0100)]
gzcompress: removed svn id line

16 months agotls: add support for unique identifier PVs and select (GH #1843)
Henning Westerholt [Sun, 10 Feb 2019 13:30:45 +0000 (14:30 +0100)]
tls: add support for unique identifier PVs and select (GH #1843)

- add support for unique identifier PVs and select, related to issue GH #1843
- new PVs: $tls_peer_subject_uid and $tls_my_subject_uid
- new selects: uid, uniqueIdentifier and unique_identifier

16 months agomodules: readme files regenerated - http_async_client ... [skip ci]
Kamailio Dev [Sat, 9 Feb 2019 15:31:42 +0000 (16:31 +0100)]
modules: readme files regenerated - http_async_client ... [skip ci]

16 months agohttp_async_client: add ifdef/endif block for tcp_keepalive
Federico Cabiddu [Sat, 9 Feb 2019 15:16:50 +0000 (16:16 +0100)]
http_async_client: add ifdef/endif block for tcp_keepalive

16 months agortp_media_server: adding call bridging rtp_media_server 1823/head
Julien Chavanton [Mon, 26 Nov 2018 05:57:23 +0000 (05:57 +0000)]
rtp_media_server: adding call bridging

- forward in dialog messages using RMS bridge in B2BUA manner
- move all code related to rms_session_info to dedicated source file
- session_list refactoring to always include all dialog information
- suspend transaction to have non blocking bridging
- random rtp port
- stop using shared memory for MS2 and oRTP, manage all the allocation
  from one dedicated process

16 months agocore: fix crashes and logical errors for cmd line parsing, reported from Thuan Pham
Henning Westerholt [Thu, 7 Feb 2019 20:26:27 +0000 (21:26 +0100)]
core: fix crashes and logical errors for cmd line parsing, reported from Thuan Pham

- fix a bunch of crashes and logical errors for command line parsing
- do not parse tcp, tls and sctp in listen statement if TCP or SCTP is disabled
- this will later crash during module startup (e.g. in tm)
- do not allow to config TCP and SCTP children count if TCP or SCTP is disabled
- report error messages in this cases to help users detect it
- reported from Thuan Pham, Thuan.Pham at monash dot edu

16 months agortjson: mark for new branching after setting ruri or duri
Daniel-Constantin Mierla [Thu, 7 Feb 2019 14:55:59 +0000 (15:55 +0100)]
rtjson: mark for new branching after setting ruri or duri

16 months agoMerge pull request #1840 from kamailio/grumvalski/fix_dmq_nodelist
Federico Cabiddu [Thu, 7 Feb 2019 13:27:07 +0000 (14:27 +0100)]
Merge pull request #1840 from kamailio/grumvalski/fix_dmq_nodelist

dmq: wait for a 2nd failed ping before deleting a node

16 months agodmq: wait for a 2nd failed ping before deleting a node grumvalski/fix_dmq_nodelist 1840/head
Federico Cabiddu [Thu, 7 Feb 2019 10:39:27 +0000 (11:39 +0100)]
dmq: wait for a 2nd failed ping before deleting a node

16 months agoMerge pull request #1839 from kamailio/grumvalski/fix_jsonrpcs_doublefree
Federico Cabiddu [Thu, 7 Feb 2019 08:38:17 +0000 (09:38 +0100)]
Merge pull request #1839 from kamailio/grumvalski/fix_jsonrpcs_doublefree

jsonrpcs: fix double free crash