sip-router
10 months agocall_obj: software license.
Vicente Hernando [Wed, 4 Sep 2019 11:26:07 +0000 (13:26 +0200)]
call_obj: software license.

10 months agopkg/kamailio/deb: version set 5.3.0~pre0
Victor Seva [Thu, 5 Sep 2019 09:53:28 +0000 (11:53 +0200)]
pkg/kamailio/deb: version set 5.3.0~pre0

10 months agopkg/kamailio/deb: version set 5.3.0~dev8 [skip ci]
Victor Seva [Thu, 5 Sep 2019 06:46:10 +0000 (08:46 +0200)]
pkg/kamailio/deb: version set 5.3.0~dev8 [skip ci]

10 months agoMakefile.defs: version set to 5.3.0-pre0
Daniel-Constantin Mierla [Thu, 5 Sep 2019 05:03:27 +0000 (07:03 +0200)]
Makefile.defs: version set to 5.3.0-pre0

- start of pre-release phase (testing) for v5.3.x

10 months agoMakefile.defs: version set to 5.3.0-dev8
Daniel-Constantin Mierla [Thu, 5 Sep 2019 05:02:39 +0000 (07:02 +0200)]
Makefile.defs: version set to 5.3.0-dev8

- end of development for v5.3.x

10 months agomodules: readme files regenerated - nathelper ... [skip ci]
Kamailio Dev [Tue, 3 Sep 2019 22:31:30 +0000 (00:31 +0200)]
modules: readme files regenerated - nathelper ... [skip ci]

10 months agoMerge pull request #2051 from aalba6675/kemi-rr-preset
Daniel-Constantin Mierla [Tue, 3 Sep 2019 22:21:16 +0000 (00:21 +0200)]
Merge pull request #2051 from aalba6675/kemi-rr-preset

module rr: KEMI expose record_route_preset

10 months agonathelper: docs - added missing xml tags for the new nat test option
Daniel-Constantin Mierla [Tue, 3 Sep 2019 22:19:38 +0000 (00:19 +0200)]
nathelper: docs - added missing xml tags for the new nat test option

10 months agomodules: readme files regenerated - nathelper ... [skip ci]
Kamailio Dev [Tue, 3 Sep 2019 21:31:47 +0000 (23:31 +0200)]
modules: readme files regenerated - nathelper ... [skip ci]

10 months agonathelper: also return -1 in case of SDP parsing errors for sdp_1918 check, simplify...
Henning Westerholt [Tue, 3 Sep 2019 21:21:45 +0000 (23:21 +0200)]
nathelper: also return -1 in case of SDP parsing errors for sdp_1918 check, simplify code

10 months agonathelper: extend nat_uac_test() to test for mismatch between connection and source...
Yasin Caner [Tue, 3 Sep 2019 21:14:16 +0000 (23:14 +0200)]
nathelper: extend nat_uac_test() to test for mismatch between connection and source IP (GH #2045)

- extend nat_uac_test function to test for mismatch between connection and source IP
- add documentation for this new flag 256 to module docs as well
- based on pull request GH #2045 with smaller adaptions

10 months agophonenum: proper access to the str type param resid
Daniel-Constantin Mierla [Tue, 3 Sep 2019 18:03:05 +0000 (20:03 +0200)]
phonenum: proper access to the str type param resid

10 months agomodules: readme files regenerated - uac ... [skip ci]
Kamailio Dev [Mon, 2 Sep 2019 17:16:50 +0000 (19:16 +0200)]
modules: readme files regenerated - uac ... [skip ci]

10 months agouac: docs - fixed missing ending tag
Daniel-Constantin Mierla [Mon, 2 Sep 2019 17:10:31 +0000 (19:10 +0200)]
uac: docs - fixed missing ending tag

10 months agomodules: readme files regenerated - uac ... [skip ci]
Kamailio Dev [Mon, 2 Sep 2019 16:46:48 +0000 (18:46 +0200)]
modules: readme files regenerated - uac ... [skip ci]

10 months agouac: docs - updates about use of auth_ha1 for remote registrations
Daniel-Constantin Mierla [Mon, 2 Sep 2019 14:43:59 +0000 (16:43 +0200)]
uac: docs - updates about use of auth_ha1 for remote registrations

- added docs for rpc uac.reg_add command

10 months agolib/srdb1: uac_reg schema - updated notes about auth_password and auth_ha1
Daniel-Constantin Mierla [Mon, 2 Sep 2019 14:43:09 +0000 (16:43 +0200)]
lib/srdb1: uac_reg schema - updated notes about auth_password and auth_ha1

10 months agouac: use auth_ha1 field if set for remote registrations
Daniel-Constantin Mierla [Mon, 2 Sep 2019 14:23:31 +0000 (16:23 +0200)]
uac: use auth_ha1 field if set for remote registrations

- has priority over auth_password field

10 months agomodules: readme files regenerated - phonenum ... [skip ci]
Kamailio Dev [Mon, 2 Sep 2019 11:47:22 +0000 (13:47 +0200)]
modules: readme files regenerated - phonenum ... [skip ci]

10 months agophonenum: docs for resid parameter
Daniel-Constantin Mierla [Mon, 2 Sep 2019 11:45:16 +0000 (13:45 +0200)]
phonenum: docs for resid parameter

10 months agophonenum: new param resid to register result container ids
Daniel-Constantin Mierla [Mon, 2 Sep 2019 11:41:03 +0000 (13:41 +0200)]
phonenum: new param resid to register result container ids

- allow use in KEMI scripting by pre-registering container result id via
modparam

10 months agotm: improve from-tags to include more randomness and use the recommended size from...
Henning Westerholt [Mon, 2 Sep 2019 07:54:21 +0000 (09:54 +0200)]
tm: improve from-tags to include more randomness and use the recommended size from RFC 3261 (GH #1164)

- improve from-tag generation for uac request to include more randomness (request uri)
- use the recommended size of 32 bit randomness from RFC 3261
- implementation could be further improved by using a cryptographic hash algorithm
- related to GH #1164

10 months agocore: improve to-tags to include more randomness and use the recommended size from...
Henning Westerholt [Sun, 1 Sep 2019 20:48:39 +0000 (22:48 +0200)]
core: improve to-tags to include more randomness and use the recommended size from RFC 3261 (GH #1164)

- improve to-tag generation to include more randomness (callid body if available)
- use the recommended size of 32 bit randomness from RFC 3261
- implementation could be further improved by using a cryptographic hash algorithm
- related to GH #1164

10 months agoseas: remove a code block related to tag generation which was commented out since...
Henning Westerholt [Sun, 1 Sep 2019 18:08:39 +0000 (20:08 +0200)]
seas: remove a code block related to tag generation which was commented out since 2006

10 months agomodule rr: KEMI expose record_route_preset 2051/head
A Alba [Sun, 1 Sep 2019 17:28:48 +0000 (01:28 +0800)]
module rr: KEMI expose record_route_preset

10 months agoCONTRIBUTING.md: removed garbage bullet from commit mesage details
Daniel-Constantin Mierla [Sun, 1 Sep 2019 17:23:08 +0000 (19:23 +0200)]
CONTRIBUTING.md: removed garbage bullet from commit mesage details

10 months agonathelper: use portable kamailio rand() wrapper instead of direct library call
Henning Westerholt [Sun, 1 Sep 2019 15:16:26 +0000 (17:16 +0200)]
nathelper: use portable kamailio rand() wrapper instead of direct library call

10 months agortp_media_server: use portable kamailio rand() wrapper instead of direct library...
Henning Westerholt [Sun, 1 Sep 2019 15:14:05 +0000 (17:14 +0200)]
rtp_media_server: use portable kamailio rand() wrapper instead of direct library call

10 months agolost: use portable kamailio rand() wrapper instead of direct library call
Henning Westerholt [Sun, 1 Sep 2019 15:08:05 +0000 (17:08 +0200)]
lost: use portable kamailio rand() wrapper instead of direct library call

10 months agolost: a few bug fixes reported from source code analyzer
Henning Westerholt [Sun, 1 Sep 2019 15:01:58 +0000 (17:01 +0200)]
lost: a few bug fixes reported from source code analyzer

10 months agolib: add a comment that HA1 hash value is currently not used from uacreg module
Henning Westerholt [Wed, 28 Aug 2019 18:56:01 +0000 (20:56 +0200)]
lib: add a comment that HA1 hash value is currently not used from uacreg module

10 months agopkg/docker: updated submodule [skip ci]
Sergey Safarov [Sat, 31 Aug 2019 10:05:32 +0000 (13:05 +0300)]
pkg/docker: updated submodule [skip ci]

10 months agopkg/kamailio/obs: packaged kemix, lost and xhttp_prom modules
Sergey Safarov [Sat, 31 Aug 2019 10:01:12 +0000 (13:01 +0300)]
pkg/kamailio/obs: packaged kemix, lost and xhttp_prom modules

10 months agotm: void the return for sr_kemi_route() to prevent analyzer warnings
Daniel-Constantin Mierla [Fri, 30 Aug 2019 07:09:33 +0000 (09:09 +0200)]
tm: void the return for sr_kemi_route() to prevent analyzer warnings

10 months agosl: void the return for sr_kemi_route() to prevent analyzer warnings
Daniel-Constantin Mierla [Fri, 30 Aug 2019 07:04:43 +0000 (09:04 +0200)]
sl: void the return for sr_kemi_route() to prevent analyzer warnings

10 months agotls: proper dot position for matching subdomains
Daniel-Constantin Mierla [Thu, 29 Aug 2019 16:51:17 +0000 (18:51 +0200)]
tls: proper dot position for matching subdomains

- reported by GH #2049

10 months agosl: docs - set section ids in expected format
Daniel-Constantin Mierla [Thu, 29 Aug 2019 12:36:00 +0000 (14:36 +0200)]
sl: docs - set section ids in expected format

10 months agomodules: readme files regenerated - sl ... [skip ci]
Kamailio Dev [Wed, 28 Aug 2019 19:02:05 +0000 (21:02 +0200)]
modules: readme files regenerated - sl ... [skip ci]

10 months agosl: docs for new params event_callback_fl_ack and event_callback_lres_sent
Daniel-Constantin Mierla [Wed, 28 Aug 2019 18:55:12 +0000 (20:55 +0200)]
sl: docs for new params event_callback_fl_ack and event_callback_lres_sent

10 months agosl: added kemi callbacks for event routes
Daniel-Constantin Mierla [Wed, 28 Aug 2019 15:55:15 +0000 (17:55 +0200)]
sl: added kemi callbacks for event routes

- new parameters
  * event_callback_fl_ack - name of callback function for filtered-ack
  * event_callback_lres_sent - name of callback function for
  local-response

10 months agokamctl: regenerate database creation scripts after scheme extensions
Henning Westerholt [Tue, 27 Aug 2019 20:00:12 +0000 (22:00 +0200)]
kamctl: regenerate database creation scripts after scheme extensions

10 months agolib: change topos DB scheme for *contact from uri_len to contact_len, 512 (GH #2043)
Henning Westerholt [Tue, 27 Aug 2019 19:58:41 +0000 (21:58 +0200)]
lib: change topos DB scheme for *contact from uri_len to contact_len, 512 (GH #2043)

10 months agolib: change uri_len from 128 to 255 for DB scheme (GH #2043)
Henning Westerholt [Tue, 27 Aug 2019 19:55:00 +0000 (21:55 +0200)]
lib: change uri_len from 128 to 255 for DB scheme (GH #2043)

10 months agolib: use socket_len for location received and topos IP address DB scheme (no change...
Henning Westerholt [Tue, 27 Aug 2019 19:49:31 +0000 (21:49 +0200)]
lib: use socket_len for location received and topos IP address DB scheme (no change table definitions)

10 months ago- lib: use new introduced socket_len in topos and uacreg DB scheme (no actual change...
Henning Westerholt [Tue, 27 Aug 2019 19:41:33 +0000 (21:41 +0200)]
- lib: use new introduced socket_len in topos and uacreg DB scheme (no actual change in definition)

10 months agolib: add new DB scheme entity 'socket_len' with length 128 to prepare the change...
Henning Westerholt [Tue, 27 Aug 2019 19:38:14 +0000 (21:38 +0200)]
lib: add new DB scheme entity 'socket_len' with length 128 to prepare the change of uri_len

10 months agolib: use domain_len for dialog socket in database scheme (no change in table definitions)
Henning Westerholt [Tue, 27 Aug 2019 19:31:47 +0000 (21:31 +0200)]
lib: use domain_len for dialog socket in database scheme (no change in table definitions)

10 months agomodules: readme files regenerated - tm ... [skip ci]
Kamailio Dev [Tue, 27 Aug 2019 11:31:45 +0000 (13:31 +0200)]
modules: readme files regenerated - tm ... [skip ci]

10 months agotm: new parameter event_callback_lres_sent
Daniel-Constantin Mierla [Tue, 27 Aug 2019 11:21:15 +0000 (13:21 +0200)]
tm: new parameter event_callback_lres_sent

- set the name of callback function to be executed in KEMI scripts for
event_route[tm:local-response]

10 months agotm: docs for event_callback_lres_sent param
Daniel-Constantin Mierla [Tue, 27 Aug 2019 11:19:35 +0000 (13:19 +0200)]
tm: docs for event_callback_lres_sent param

10 months agotm: lookup envet route for local-response only once
Daniel-Constantin Mierla [Tue, 27 Aug 2019 11:02:18 +0000 (13:02 +0200)]
tm: lookup envet route for local-response only once

10 months agomodules: readme files regenerated - tm ... [skip ci]
Kamailio Dev [Tue, 27 Aug 2019 11:01:47 +0000 (13:01 +0200)]
modules: readme files regenerated - tm ... [skip ci]

10 months agotm: event_route[local-response] is actually executed after response is sent
Daniel-Constantin Mierla [Tue, 27 Aug 2019 10:49:20 +0000 (12:49 +0200)]
tm: event_route[local-response] is actually executed after response is sent

- change back after previous commit
- somehow it is incoherent with event_route[local-request] that is
before sending out, allowing to change the content

10 months agomodules: readme files regenerated - tm ... [skip ci]
Kamailio Dev [Tue, 27 Aug 2019 07:46:47 +0000 (09:46 +0200)]
modules: readme files regenerated - tm ... [skip ci]

10 months agotm: docs - include dockbook entities in event route file
Daniel-Constantin Mierla [Tue, 27 Aug 2019 07:36:39 +0000 (09:36 +0200)]
tm: docs - include dockbook entities in event route file

10 months agomodules: readme files regenerated - tm ... [skip ci]
Kamailio Dev [Tue, 27 Aug 2019 07:31:51 +0000 (09:31 +0200)]
modules: readme files regenerated - tm ... [skip ci]

10 months agoMerge pull request #2047 from kamailio/grumvalski/siptrace_fix
Federico Cabiddu [Tue, 27 Aug 2019 07:26:48 +0000 (09:26 +0200)]
Merge pull request #2047 from kamailio/grumvalski/siptrace_fix

siptrace: check if trace_to_database is set before checking the db co…

10 months agotm: docs - clarifications about event routes
Daniel-Constantin Mierla [Tue, 27 Aug 2019 07:17:18 +0000 (09:17 +0200)]
tm: docs - clarifications about event routes

10 months agopkg/kamailio/alpine: packaged MongoDB module [skip ci]
Sergey Safarov [Tue, 27 Aug 2019 06:03:20 +0000 (09:03 +0300)]
pkg/kamailio/alpine: packaged MongoDB module [skip ci]

10 months agopkg/docker: updated submodule
Sergey Safarov [Wed, 14 Aug 2019 12:41:15 +0000 (15:41 +0300)]
pkg/docker: updated submodule

10 months agoMerge pull request #2040 from kamailio/set_rtpengine_set
juha-h [Mon, 26 Aug 2019 18:43:53 +0000 (21:43 +0300)]
Merge pull request #2040 from kamailio/set_rtpengine_set

modules/rtpengine: set_rtpengine_set fix

10 months agosiptrace: check if trace_to_database is set before checking the db connection 2047/head
Federico Cabiddu [Mon, 26 Aug 2019 18:21:13 +0000 (20:21 +0200)]
siptrace: check if trace_to_database is set before checking the db connection

10 months agomodules: readme files regenerated - tm ... [skip ci]
Kamailio Dev [Mon, 26 Aug 2019 14:02:22 +0000 (16:02 +0200)]
modules: readme files regenerated - tm ... [skip ci]

10 months agotm: docs - note about kemi for on_sl_reply parameter
Daniel-Constantin Mierla [Mon, 26 Aug 2019 13:52:29 +0000 (15:52 +0200)]
tm: docs - note about kemi for on_sl_reply parameter

10 months agotm: execute on_sl_reply callback via kemi
Daniel-Constantin Mierla [Mon, 26 Aug 2019 13:49:42 +0000 (15:49 +0200)]
tm: execute on_sl_reply callback via kemi

- the value of the parameter on_sl_reply has to be the kemi function
name

10 months agotm: lookup on_sl_reply route in mod_init()
Daniel-Constantin Mierla [Mon, 26 Aug 2019 11:31:29 +0000 (13:31 +0200)]
tm: lookup on_sl_reply route in mod_init()

- moved from fixup during modparam to store the name of the route block

10 months agowebsocket: remove core stats.h #include, remove no-op #defines as well
Henning Westerholt [Sun, 25 Aug 2019 11:27:05 +0000 (13:27 +0200)]
websocket: remove core stats.h #include, remove no-op #defines as well

10 months agotls: remove core stats.h #include, add necessary system #include for open(..)
Henning Westerholt [Sun, 25 Aug 2019 11:26:34 +0000 (13:26 +0200)]
tls: remove core stats.h #include, add necessary system #include for open(..)

10 months agocore: remove STATS #define, depends on non-existing module, does not compile
Henning Westerholt [Sun, 25 Aug 2019 11:16:45 +0000 (13:16 +0200)]
core: remove STATS #define, depends on non-existing module, does not compile

- remove STATS #define, depends on non-existing snmp module, does not compile
- could be used to print e.g. number of packets on SIGUSR1
- these numbers were reported through SNMP
- replaced by Kamailio statistics support
- remove stats.c and stats.h files

10 months agocore: kemi - warning when using an unsupported method flag for is_method_in()
Daniel-Constantin Mierla [Sat, 24 Aug 2019 14:22:16 +0000 (16:22 +0200)]
core: kemi - warning when using an unsupported method flag for is_method_in()

10 months agocore: kemi - fix matching update for is_method_in("U")
Daniel-Constantin Mierla [Sat, 24 Aug 2019 14:09:45 +0000 (16:09 +0200)]
core: kemi - fix matching update for is_method_in("U")

10 months agouac: small whitespace change in docs
Henning Westerholt [Sat, 24 Aug 2019 10:29:57 +0000 (12:29 +0200)]
uac: small whitespace change in docs

10 months agomodules: readme files regenerated - uac ... [skip ci]
Kamailio Dev [Sat, 24 Aug 2019 10:01:42 +0000 (12:01 +0200)]
modules: readme files regenerated - uac ... [skip ci]

10 months agouac: add functionality to specify a custom socket for each uacreg table entry
Henning Westerholt [Sat, 24 Aug 2019 09:57:07 +0000 (11:57 +0200)]
uac: add functionality to specify a custom socket for each uacreg table entry

- add functionality to specify a custom socket for each uacreg table entry
- necessary if you need to REGISTER over different outgoing interfaces with uac
- add socket column to module database schemes
- bump uacreg database table version from 3 to 4
- add database version check helper to module
- extend RPC commands to output and also add this value
- add documentation for the new functionality

10 months agomodules: readme files regenerated - ims_registrar_scscf ... [skip ci]
Kamailio Dev [Sat, 24 Aug 2019 08:47:22 +0000 (10:47 +0200)]
modules: readme files regenerated - ims_registrar_scscf ... [skip ci]

10 months agoims_registrar_scscf : document title is fixed
Yasin CANER [Sat, 24 Aug 2019 06:13:26 +0000 (09:13 +0300)]
ims_registrar_scscf : document title is fixed

Document title is fixed

10 months agoMerge pull request #2038 from surendratiwari3/memory_leak_rtpengine
Daniel-Constantin Mierla [Fri, 23 Aug 2019 07:46:40 +0000 (09:46 +0200)]
Merge pull request #2038 from surendratiwari3/memory_leak_rtpengine

Module:rtpengine: memory leak is fixed, if no rtpengine in list

10 months agomodules/rtpengine: set_rtpengine_set fix 2040/head
Juha Heinanen [Fri, 23 Aug 2019 07:05:33 +0000 (10:05 +0300)]
modules/rtpengine: set_rtpengine_set fix

10 months agouac: remove obselete DB definition from source code
Henning Westerholt [Thu, 22 Aug 2019 20:28:11 +0000 (22:28 +0200)]
uac: remove obselete DB definition from source code

10 months agodialog: run dlg callbacks also for PRACK requests (as done for "other" requests)
Henning Westerholt [Tue, 20 Aug 2019 20:24:30 +0000 (22:24 +0200)]
dialog: run dlg callbacks also for PRACK requests (as done for "other" requests)

- run dlg callbacks also for PRACK requests (as done for "other" requests)
- bugfix for uac module in auto mode with dialog storage for PRACK requests

10 months agobuild: lost module depends (also via http_client) on curl library, correct group
Henning Westerholt [Tue, 20 Aug 2019 19:44:36 +0000 (21:44 +0200)]
build: lost module depends (also via http_client) on curl library, correct group

10 months agocore: tcp - new global parameter tcp_connection_match
Daniel-Constantin Mierla [Tue, 20 Aug 2019 11:48:48 +0000 (13:48 +0200)]
core: tcp - new global parameter tcp_connection_match

- control how the connection is matched
- set it to 1 to force a more strict matching trying to lookup using
local port as well, not only remote ip/port and local address
- default 0 - exiting behaviour

10 months agotm: set send socket flag when computing the destination and local socket is found
Daniel-Constantin Mierla [Tue, 20 Aug 2019 10:07:30 +0000 (12:07 +0200)]
tm: set send socket flag when computing the destination and local socket is found

10 months agopv: added {s.count,c} transformation
Daniel-Constantin Mierla [Tue, 20 Aug 2019 09:17:17 +0000 (11:17 +0200)]
pv: added {s.count,c} transformation

- count how many times c appears in the pv value
   "abababa"{s.count,a} => 4

10 months agoModule:rtpengine: memory leak is fixed, if no rtpengine in list while reload 2038/head
Surendra Tiwari [Tue, 20 Aug 2019 07:47:04 +0000 (13:17 +0530)]
Module:rtpengine: memory leak is fixed, if no rtpengine in list while reload

10 months agomodules: readme files regenerated - lost ... [skip ci]
Kamailio Dev [Mon, 19 Aug 2019 09:47:13 +0000 (11:47 +0200)]
modules: readme files regenerated - lost ... [skip ci]

10 months agocore: tcp - debug messages when looking up tcp connection
Daniel-Constantin Mierla [Mon, 19 Aug 2019 09:37:03 +0000 (11:37 +0200)]
core: tcp - debug messages when looking up tcp connection

10 months agotm: propagate tcp connection id in outbound branch dst structure
Daniel-Constantin Mierla [Mon, 19 Aug 2019 09:23:31 +0000 (11:23 +0200)]
tm: propagate tcp connection id in outbound branch dst structure

10 months agocore: dset - comment to document return code for getting branch data
Daniel-Constantin Mierla [Mon, 19 Aug 2019 09:00:41 +0000 (11:00 +0200)]
core: dset - comment to document return code for getting branch data

- differentiate when returning data for valid or invalid branch index

10 months agocore: dset - function to link branch data in a structure
Daniel-Constantin Mierla [Mon, 19 Aug 2019 08:32:46 +0000 (10:32 +0200)]
core: dset - function to link branch data in a structure

- existing functions to retrive branch attributes have too many parameters already

10 months agolost: docs - note that http_client param query_result has to be set to 0
Daniel-Constantin Mierla [Mon, 19 Aug 2019 08:26:16 +0000 (10:26 +0200)]
lost: docs - note that http_client param query_result has to be set to 0

10 months agomodules: readme files regenerated - lost ... [skip ci]
Kamailio Dev [Fri, 16 Aug 2019 21:01:36 +0000 (23:01 +0200)]
modules: readme files regenerated - lost ... [skip ci]

10 months agoevapi: use a completely new fake message structure for dispatcher handling
Daniel-Constantin Mierla [Fri, 16 Aug 2019 10:57:33 +0000 (12:57 +0200)]
evapi: use a completely new fake message structure for dispatcher handling

10 months agocore: clear branches and expose the function for a new faked msg
Daniel-Constantin Mierla [Fri, 16 Aug 2019 10:56:49 +0000 (12:56 +0200)]
core: clear branches and expose the function for a new faked msg

10 months agocore: function to get a new faked message in a specific structure
Daniel-Constantin Mierla [Fri, 16 Aug 2019 10:37:58 +0000 (12:37 +0200)]
core: function to get a new faked message in a specific structure

- refactored the code to be able to fill a sip msg structure with
content from the faked request

10 months agoregistrar: lookup() sets the tcp connection id in sip msg and branch structures
Daniel-Constantin Mierla [Fri, 16 Aug 2019 09:06:42 +0000 (11:06 +0200)]
registrar: lookup() sets the tcp connection id in sip msg and branch structures

10 months agocore: dset - function to push a new branch and return its pointer
Daniel-Constantin Mierla [Fri, 16 Aug 2019 09:05:35 +0000 (11:05 +0200)]
core: dset - function to push a new branch and return its pointer

10 months agocore: store tcp connection id in sip msg and branch structure
Daniel-Constantin Mierla [Fri, 16 Aug 2019 08:42:43 +0000 (10:42 +0200)]
core: store tcp connection id in sip msg and branch structure

- try to use it to identify outbound connection for stateless forward()

10 months agocore: tcp - new core parameter tcp_accept_unique
Daniel-Constantin Mierla [Fri, 16 Aug 2019 08:11:21 +0000 (10:11 +0200)]
core: tcp - new core parameter tcp_accept_unique

- if set to 1, do an extra check when a new connection is created to be
sure the is no overlapping with another connection on local ip/port and
remote ip/port
- recently some tcp/ip router/balancers can do port sharing, but that can create
troubles for routing of the requests with the current tcp routing implementation
(e.g., using the wrong connection in such group)
- default is set to 0

10 months agolost: small spelling fix in docs
Henning Westerholt [Fri, 16 Aug 2019 06:16:03 +0000 (08:16 +0200)]
lost: small spelling fix in docs