kamailio
14 months agoChangelog: update Changelog after fixes before release 5.2.8 5.2.8
Henning Westerholt [Fri, 2 Oct 2020 18:56:36 +0000 (18:56 +0000)]
Changelog: update Changelog after fixes before release 5.2.8

14 months agoRevert "jansson: use the core macros for ending string value with '\0' and to restore"
Henning Westerholt [Fri, 2 Oct 2020 18:32:56 +0000 (18:32 +0000)]
Revert "jansson: use the core macros for ending string value with '\0' and to restore"

This reverts commit 61255b01f88ea904bf5694f834a5b2aec7398c69.

14 months agoRevert "xcap_server: check before going to the end of the buffer"
Henning Westerholt [Fri, 2 Oct 2020 18:32:39 +0000 (18:32 +0000)]
Revert "xcap_server: check before going to the end of the buffer"

This reverts commit f82bdb7fadd02368133b4813cdba515a7725a31d.

14 months agoRevert "evapi: free addr info in case of bind error"
Henning Westerholt [Fri, 2 Oct 2020 16:49:36 +0000 (16:49 +0000)]
Revert "evapi: free addr info in case of bind error"

This reverts commit e7a390388fe640d46efc640e97a87f00f1361f47.

14 months agoChangelog: update for 5.2.8 release
Henning Westerholt [Fri, 2 Oct 2020 16:32:26 +0000 (16:32 +0000)]
Changelog: update for 5.2.8 release

14 months agoMakefile.defs: set version to 5.2.8
Henning Westerholt [Fri, 2 Oct 2020 16:24:50 +0000 (16:24 +0000)]
Makefile.defs: set version to 5.2.8

14 months agopkg: update alpine and obs spec files for 5.2.8
Henning Westerholt [Fri, 2 Oct 2020 16:24:03 +0000 (16:24 +0000)]
pkg: update alpine and obs spec files for 5.2.8

14 months agopkg: update debian pkg files for 5.2.8
Henning Westerholt [Fri, 2 Oct 2020 16:22:41 +0000 (16:22 +0000)]
pkg: update debian pkg files for 5.2.8

14 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Fri, 2 Oct 2020 16:17:01 +0000 (18:17 +0200)]
modules: readme files regenerated - modules ... [skip ci]

14 months agorr: reset param buffer for r-r advertised address
Daniel-Constantin Mierla [Wed, 30 Sep 2020 10:34:40 +0000 (12:34 +0200)]
rr: reset param buffer for r-r advertised address

- GH #2486

(cherry picked from commit 8dfc0f6ef0ddc4bf2d73d21124caa289d4b8ce07)

14 months agodispatcher: fix an error in initialisation /
Julien Chavanton [Mon, 28 Sep 2020 19:57:25 +0000 (12:57 -0700)]
dispatcher: fix an error in initialisation /

training of the latency estimator

(cherry picked from commit b728cb30810ef44b821a93335cdd34f954f2029c)

14 months agondb_redis: set message level to debug on exec
Victor Seva [Wed, 23 Sep 2020 07:01:43 +0000 (09:01 +0200)]
ndb_redis: set message level to debug on exec

* logging error makes no sense here since there's going
  to be a reconnection afterwards

> ERROR: ndb_redis [redis_client.c:903]: redisc_exec_argv(): Redis error: Server closed the connection

(cherry picked from commit a9c331d70dbed6827874aa99296203ac5a9d5c7b)

14 months agousrloc: use unsigned int for rpc output for the fields having this type
Daniel-Constantin Mierla [Mon, 21 Sep 2020 08:59:34 +0000 (10:59 +0200)]
usrloc: use unsigned int for rpc output for the fields having this type

(cherry picked from commit b754b9f68bee0b58b4ae00b7f0764c2bf711d14c)

14 months agotmx: safety check of expected route blocks for using $T_*() variables
Daniel-Constantin Mierla [Thu, 17 Sep 2020 12:21:30 +0000 (14:21 +0200)]
tmx: safety check of expected route blocks for using $T_*() variables

- related to GH #2479

(cherry picked from commit 2e7710e292a649c6c57e46d5994d3b2cf3815865)

14 months agolib/srdb1: db_use_table() more suggestive error messages
Daniel-Constantin Mierla [Thu, 17 Sep 2020 10:55:10 +0000 (12:55 +0200)]
lib/srdb1: db_use_table() more suggestive error messages

(cherry picked from commit 57d33a2d76219ae3d1eb503044dadaeddc7e06fd)

14 months agotopos: docs - more details about what SIP traffic is handled
Daniel-Constantin Mierla [Tue, 15 Sep 2020 05:33:00 +0000 (07:33 +0200)]
topos: docs - more details about what SIP traffic is handled

(cherry picked from commit 878971f2c0bc32233b6f18728f9b88537b3d19e8)

14 months agodispatcher: sync on updating last used fields
Daniel-Constantin Mierla [Mon, 14 Sep 2020 11:00:25 +0000 (13:00 +0200)]
dispatcher: sync on updating last used fields

(cherry picked from commit e307432e5f34a2093544e9ff703ea205169e4088)

14 months agodocs: add matrix channel information to normal and github READMEs
Henning Westerholt [Sat, 12 Sep 2020 09:57:10 +0000 (09:57 +0000)]
docs: add matrix channel information to normal and github READMEs

(cherry picked from commit 3c19ca90327d92be69cdce482e66991147db9083)

14 months agomsrp: proper parsing ipv6 host part in uri
Daniel-Constantin Mierla [Wed, 9 Sep 2020 11:01:36 +0000 (13:01 +0200)]
msrp: proper parsing ipv6 host part in uri

- enclose ipv6 address in square brackets for msrp pv
- related to #2472

(cherry picked from commit 1cda029885dd89e2ec46fe28a0d6f656aad19e7a)

14 months agohttpa_asyc_client: set curl memory callbacks in module initialization
Federico Cabiddu [Tue, 8 Sep 2020 13:04:04 +0000 (15:04 +0200)]
httpa_asyc_client: set curl memory callbacks in module initialization

(cherry picked from commit 66fea7c615e01b200b334d5255c90911cfb360fe)

14 months agousrloc: get_udomain() - safety checks for location table name parameter
Daniel-Constantin Mierla [Thu, 27 Aug 2020 10:34:50 +0000 (12:34 +0200)]
usrloc: get_udomain() - safety checks for location table name parameter

(cherry picked from commit 29dde9fea1eb21b4bb484286f7443dd32f611bd2)

14 months agosqlops module: added one more sql query function return value to README
Juha Heinanen [Tue, 25 Aug 2020 17:11:59 +0000 (20:11 +0300)]
sqlops module: added one more sql query function return value to README

(cherry picked from commit d93de03c10eb7b88024d7eb9ba85200601cf6c7a)

14 months agotopoh: remove the Via cookie when skipping topoh via event route
Daniel-Constantin Mierla [Mon, 24 Aug 2020 08:22:52 +0000 (10:22 +0200)]
topoh: remove the Via cookie when skipping topoh via event route

- event route is now executed with parsed sip message to be sent out
- GH #2437

(cherry picked from commit 06a1d20fdcae42c8f2130c547c6c6cf5fb6dce26)

14 months agolog_custom: print to stderror if sending log message fails
Daniel-Constantin Mierla [Mon, 24 Aug 2020 08:01:20 +0000 (10:01 +0200)]
log_custom: print to stderror if sending log message fails

- help troubleshooting while avoiding looping to same function in case
the log engine is set to log custom module

(cherry picked from commit f16d046f6330f897b374d9bb7dab3b2ce8eab3a7)

14 months agoMakefile.defs: Fixed libs option for FreeBSD
Dmitry [Sun, 16 Aug 2020 20:21:37 +0000 (23:21 +0300)]
Makefile.defs: Fixed libs option for FreeBSD

(cherry picked from commit f490c4e0f5888963a01fa99fe94a464d44223199)

14 months agotopoh: check if via param has the expected prefix, otherwise skip
Daniel-Constantin Mierla [Tue, 11 Aug 2020 10:36:02 +0000 (12:36 +0200)]
topoh: check if via param has the expected prefix, otherwise skip

- GH #2437

(cherry picked from commit 046126b4a90090bf5b8f9b517ba5218793e6b973)

14 months agopike: docs - section for pike.list rpc command
Daniel-Constantin Mierla [Tue, 11 Aug 2020 09:11:35 +0000 (11:11 +0200)]
pike: docs - section for pike.list rpc command

(cherry picked from commit 720e929a87c6d3ee29c316ca63886c7142320f43)

14 months agoMakefile.defs: map gcc v10.x to 9.0+ options
Daniel-Constantin Mierla [Wed, 5 Aug 2020 14:38:01 +0000 (16:38 +0200)]
Makefile.defs: map gcc v10.x to 9.0+ options

- detect properly the 10.x gcc version number, GH #2425

(cherry picked from commit 79e7738027a40affa4c7f606bf55a3ad0fe31bc4)

14 months agoMakefile.defs: get clang version only from --version output
Daniel-Constantin Mierla [Tue, 4 Aug 2020 06:36:18 +0000 (08:36 +0200)]
Makefile.defs: get clang version only from --version output

- the full version with stderr output included has a different first
line on MacOS, making head -n 1 not extract the version number line

(cherry picked from commit bff689cfedca70149e17b6ec3584ca9ecab71418)

14 months agodb_text: free pointer in case of error
Daniel-Constantin Mierla [Sat, 1 Aug 2020 14:51:39 +0000 (16:51 +0200)]
db_text: free pointer in case of error

(cherry picked from commit bddf16db74ea779bb01805fc2cbabfdaf8f4d62b)

14 months agoxcap_server: check before going to the end of the buffer
Daniel-Constantin Mierla [Fri, 31 Jul 2020 18:45:47 +0000 (20:45 +0200)]
xcap_server: check before going to the end of the buffer

- use marcros to set and restore char for ending 0

(cherry picked from commit 6ce5c0bdf136ecffd7917f2d60093e1b2c49fa54)

14 months agodialog: print old state on dlg timeout
Daniel-Constantin Mierla [Mon, 27 Jul 2020 07:37:23 +0000 (09:37 +0200)]
dialog: print old state on dlg timeout

(cherry picked from commit 06b7e416756e1711edef6db683cef35824f4b2a5)

14 months agopkg/kamailio/obs: spec formating
Sergey Safarov [Mon, 27 Jul 2020 06:50:54 +0000 (09:50 +0300)]
pkg/kamailio/obs: spec formating

(cherry picked from commit 56bb276b4e5c00843244d555e7c5221e3f2a6203)

14 months agotls: docs - fixed typo
Daniel-Constantin Mierla [Fri, 24 Jul 2020 20:25:50 +0000 (22:25 +0200)]
tls: docs - fixed typo

- GH #2410

(cherry picked from commit a12064696ac37cadf954a89b58daa1e05e182180)

14 months agomisc/examples: kemi lua - added debug callback function
Daniel-Constantin Mierla [Tue, 14 Jul 2020 07:21:04 +0000 (09:21 +0200)]
misc/examples: kemi lua - added debug callback function

- commented - can be enabled to track the execution trace of the lua
script

(cherry picked from commit 491a8327933cb4471260fdd09ff93296a7a0ccfd)

14 months agoims_charging: fix wrong default User-Equipment-Info-Type AVP format
Henning Westerholt [Sat, 11 Jul 2020 11:03:26 +0000 (11:03 +0000)]
ims_charging: fix wrong default User-Equipment-Info-Type AVP format

- fix User-Equipment-Info-Type AVP format
  According to the RFC 8506 it should be like this: The 48-bit Media Access
  Control (MAC) address is formatted as described in Section 3.21 of [RFC3580]
- use strlen instead of sizeof

(cherry picked from commit 1a8f54147063560f6016634152b17293394b8497)
(cherry picked from commit d51a3c4393b345b783adccf8a0e960274e11afb2)

14 months agoims_charging: bugfix for tel URIs, need the same logic in stop as in start requests
Henning Westerholt [Thu, 2 Jul 2020 16:05:51 +0000 (16:05 +0000)]
ims_charging: bugfix for tel URIs, need the same logic in stop as in start requests

(cherry picked from commit c3efb3b3331936a30f387e9f3c8c435d4d64f0bb)

14 months agoims_charging: add missing change for ccr.c (related to previous commit f5e44252c39c76...
Henning Westerholt [Thu, 2 Jul 2020 09:09:27 +0000 (09:09 +0000)]
ims_charging: add missing change for ccr.c (related to previous commit f5e44252c39c7695cb)

(cherry picked from commit 4cb61cc35a695e2636007f6518a63ed8e508b67f)

14 months agoims_charging: bugfix for destination_host parameter, implementation was incomplete
Henning Westerholt [Thu, 2 Jul 2020 08:54:20 +0000 (08:54 +0000)]
ims_charging: bugfix for destination_host parameter, implementation was incomplete

(cherry picked from commit f5e44252c39c7695cb66893035a0581a65a72f91)

14 months agoims_charging: fix error in destination_realm default vaulue
Henning Westerholt [Sun, 28 Jun 2020 12:45:43 +0000 (12:45 +0000)]
ims_charging: fix error in destination_realm default vaulue

(cherry picked from commit f679c118a589c80cb84954fb46271adef596e049)

14 months agosiputils: docs - added section ids for parameters
Daniel-Constantin Mierla [Fri, 26 Jun 2020 20:27:43 +0000 (22:27 +0200)]
siputils: docs - added section ids for parameters

(cherry picked from commit ec0b1d31f1d667abdcd7cce7fbfff110583e271c)

14 months agopua: docs - fixed missing comma in example
Daniel-Constantin Mierla [Wed, 24 Jun 2020 19:05:56 +0000 (21:05 +0200)]
pua: docs - fixed missing comma in example

- picked from #2371

(cherry picked from commit 9adccda325d258fe539b54ec67d4389d3a2fc72c)

14 months agoevapi: free addr info in case of bind error
Daniel-Constantin Mierla [Mon, 22 Jun 2020 13:32:30 +0000 (15:32 +0200)]
evapi: free addr info in case of bind error

(cherry picked from commit 41db985ebfcb691f2e20e689a83379e382ef6c03)

14 months agotools/kemi: add support for invoking function pointers
Torrey Searle [Fri, 19 Jun 2020 09:06:09 +0000 (11:06 +0200)]
tools/kemi: add support for invoking function pointers

also add a flag to allow generated version of code to be compatible
with older versions of python3

(cherry picked from commit 773ecfc9ceec5bbbe6c7f5fd72399baacfd74c0a)

14 months agodialog: fix error in debug logging, properly log both sockets
Henning Westerholt [Sun, 14 Jun 2020 15:13:31 +0000 (15:13 +0000)]
dialog: fix error in debug logging, properly log both sockets

(cherry picked from commit 6b27844460e0de475d9546db122ff1ba9d9be6d8)

14 months agokeepalive: logging state of dest just if changed
Luis Martin Gil [Tue, 9 Jun 2020 08:48:16 +0000 (10:48 +0200)]
keepalive: logging state of dest just if changed

(cherry picked from commit 5649a24929ae7bd60154a6c58c772db9e462af27)

14 months agoremove unused import
tsearle [Mon, 8 Jun 2020 15:33:35 +0000 (17:33 +0200)]
remove unused import

(cherry picked from commit 2d2594d3cdeead550ccd472f9d0288b72b98d689)

14 months agotools/kemi: add script to generate mock api for kemi python testing
Torrey Searle [Mon, 8 Jun 2020 07:17:00 +0000 (09:17 +0200)]
tools/kemi: add script to generate mock api for kemi python testing

(cherry picked from commit f4ec923976cbab5c1451b65268aaca65a33919fd)

14 months agoapp_jsdt: utils/app_jsdt_ctl - increase the static table size to 1536
Daniel-Constantin Mierla [Sat, 6 Jun 2020 08:50:19 +0000 (10:50 +0200)]
app_jsdt: utils/app_jsdt_ctl - increase the static table size to 1536

(cherry picked from commit cb55929b8ce39aee2af193e59034e43af7a44781)

14 months agocnxcc: don't terminate non confirmed calls
Victor Seva [Wed, 3 Jun 2020 11:22:21 +0000 (13:22 +0200)]
cnxcc: don't terminate non confirmed calls

* non confirmed calls can't be terminated via dialog.terminate_dlg() API
* set call.max_amount to 0 to terminate the call if gets confirmed

fix #2346

(cherry picked from commit ca0fc18e1cfad86ed6b7530d6c520b680e5d6a4f)

14 months agopdb: use memcpy() for PDB_BUFTOSHORT macro
Daniel-Constantin Mierla [Wed, 3 Jun 2020 19:46:20 +0000 (21:46 +0200)]
pdb: use memcpy() for PDB_BUFTOSHORT macro

- related to GH #2345

(cherry picked from commit be57be33d0e48d412ddab9801ee4d6d906329d70)

14 months ago misc: examples/kemi - fixes to the python script
Torrey Searle [Fri, 29 May 2020 07:30:56 +0000 (09:30 +0200)]
 misc: examples/kemi - fixes to the python script

remove dependency on Router.Logger
remove ;
fix comment ref exit()

(cherry picked from commit df2fa2c5589bd5f651e814e32e2edf00c23ffebc)

14 months agopkg/kamailio/obs: packaged xhttp_prom (prometheus)
Sergey Safarov [Sat, 23 May 2020 19:24:25 +0000 (22:24 +0300)]
pkg/kamailio/obs: packaged xhttp_prom (prometheus)

(cherry picked from commit 3e77c574c340941f36ca8f9081a77c5b476f8c8c)

14 months agoctl: small spelling fix in comment
Henning Westerholt [Thu, 14 May 2020 16:38:31 +0000 (16:38 +0000)]
ctl: small spelling fix in comment

(cherry picked from commit a5722aa7773eb4153e8c3b241cae6e3f5f7a9894)

14 months agocore: small spelling fix in comment
Henning Westerholt [Thu, 14 May 2020 16:38:00 +0000 (16:38 +0000)]
core: small spelling fix in comment

(cherry picked from commit fc09015bbad342b435de7ddb3300e19a415c340d)

14 months agojansson: use the core macros for ending string value with '\0' and to restore
Victor Seva [Thu, 14 May 2020 08:41:06 +0000 (10:41 +0200)]
jansson: use the core macros for ending string value with '\0' and to restore

fix #2327

(cherry picked from commit 3abc650d37e426840f060426a851ecac5210d2e5)

14 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Fri, 2 Oct 2020 14:02:24 +0000 (16:02 +0200)]
modules: readme files regenerated - modules ... [skip ci]

14 months agoFix typo on main README.md: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:51:16 +0000 (20:51 -0600)]
Fix typo on main README.md: Consecutives 'the'

14 months agoFix typo on xmpp module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:50:41 +0000 (20:50 -0600)]
Fix typo on xmpp module: Consecutives 'the'

14 months agoFix typo on websocket module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:50:02 +0000 (20:50 -0600)]
Fix typo on websocket module: Consecutives 'the'

14 months agoFix typo on tm module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:46:20 +0000 (20:46 -0600)]
Fix typo on tm module: Consecutives 'the'

14 months agoFix typo on sca module NOTES
Jorge Vallecillo [Fri, 2 Oct 2020 02:45:44 +0000 (20:45 -0600)]
Fix typo on sca module NOTES

14 months agoFix typo on ims_qos module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:44:27 +0000 (20:44 -0600)]
Fix typo on ims_qos module: Consecutives 'the'

14 months agoFix typo on drouting module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:43:44 +0000 (20:43 -0600)]
Fix typo on drouting module: Consecutives 'the'

14 months agoFix typo on db_mongodb module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:42:54 +0000 (20:42 -0600)]
Fix typo on db_mongodb module: Consecutives 'the'

14 months agoFix typo on cplc module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:41:54 +0000 (20:41 -0600)]
Fix typo on cplc module: Consecutives 'the'

14 months agoFix typo on counters module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:40:13 +0000 (20:40 -0600)]
Fix typo on counters module: Consecutives 'the'

14 months agoFix typo on carrierroute module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:39:26 +0000 (20:39 -0600)]
Fix typo on carrierroute module: Consecutives 'the'

14 months agoFix typo on avp module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:31:12 +0000 (20:31 -0600)]
Fix typo on avp module: Consecutives 'the'

14 months agoFix typo on app_jsdt module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:30:12 +0000 (20:30 -0600)]
Fix typo on app_jsdt module: Consecutives 'the'

14 months agoFix typo on srdb1 lib: Consecutive 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:29:03 +0000 (20:29 -0600)]
Fix typo on srdb1 lib: Consecutive 'the'

14 months agoChangelog: fix wrong date (year) for last releases
Henning Westerholt [Fri, 2 Oct 2020 13:35:21 +0000 (13:35 +0000)]
Changelog: fix wrong date (year) for last releases

14 months agotopos: update to-tag and rr on reply even to-tag is already set
Daniel-Constantin Mierla [Thu, 1 Oct 2020 08:04:50 +0000 (10:04 +0200)]
topos: update to-tag and rr on reply even to-tag is already set

- GH #2489

(cherry picked from commit acd7f6f1703d12aa8f2dce87e1b8e4b74d6b4d96)

14 months agodialog: dlg_cell, always check for a to-tag match
Julien Chavanton [Mon, 28 Sep 2020 16:13:16 +0000 (09:13 -0700)]
dialog: dlg_cell, always check for a to-tag match

14 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Tue, 15 Sep 2020 16:01:51 +0000 (18:01 +0200)]
modules: readme files regenerated - modules ... [skip ci]

14 months agoregistrar: Update documentation
whosgonna [Tue, 15 Sep 2020 15:29:08 +0000 (10:29 -0500)]
registrar:  Update documentation

- Replace all occurences of "HF" with "header field"
- Replace all occurences of "HFs" with "header fields"

(cherry picked from commit d936c6276b6d8e45efd87a4fc25a55b9c3ab1fce)

14 months agoregistrar: Update documentation
whosgonna [Tue, 15 Sep 2020 15:32:07 +0000 (10:32 -0500)]
registrar:  Update documentation

- Fix double negative "without no DB operation". Changed to
  "with no DB operation".

(cherry picked from commit be0382fa11920de972ddbcdbe17c3ff583da87e4)

14 months agodispatcher: update state if sending keepalive OPTIONS fails
Daniel-Constantin Mierla [Mon, 14 Sep 2020 07:33:16 +0000 (09:33 +0200)]
dispatcher: update state if sending keepalive OPTIONS fails

- backport of 4584e17b98f338916cc89dac6e1700f250cdf501

(cherry picked from commit 1bccb817c20f02665d48a38eb59a57a6ae17b81f)

14 months agocore: skip abort() in free_lump() for LUMPFLAG_DUPED
Daniel-Constantin Mierla [Wed, 9 Sep 2020 13:33:18 +0000 (15:33 +0200)]
core: skip abort() in free_lump() for LUMPFLAG_DUPED

- the LUMPFLAG_DUPED is set when duplicating lumps list for branch route
execution, but some functions such as set_body() may want to clean them
- report and minimal reproducing config by Henning Westerholt

(cherry picked from commit 57ee97f52dd90c86743b6fd6dd682285ef994e80)

14 months agopv: handle s.prefixes for empty values
Daniel-Constantin Mierla [Fri, 4 Sep 2020 08:22:52 +0000 (10:22 +0200)]
pv: handle s.prefixes for empty values

- avoid crash due to invalid length of result, GH #2467

(cherry picked from commit e74b06c32bc2b090937350858f655af4ab89ff63)
(cherry picked from commit ad14b61155686aead27e7ac5f3fb6b1aa90b6840)
(cherry picked from commit 8fcbfc697eaa7df91e84bfbf484ed51a49fc0e2e)

15 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Fri, 14 Aug 2020 10:48:07 +0000 (12:48 +0200)]
modules: readme files regenerated - modules ... [skip ci]

15 months agopipelimit: docs - fixed typo
Bastian Triller [Thu, 13 Aug 2020 07:26:57 +0000 (09:26 +0200)]
pipelimit: docs - fixed typo

(cherry picked from commit c87f3c1d07a5a3c51728d404200d60b10ed6159f)

16 months agopua: update_version_puadb() use pres_id to select record
Victor Seva [Fri, 31 Jul 2020 14:00:06 +0000 (16:00 +0200)]
pua: update_version_puadb() use pres_id to select record

* only relevant when db_mode is PUA_DB_ONLY
* call_id/to_tag/from_tag values can be "", for instance with
  DIALOG_PUBLISH.* records. Then **ALL** records get version
  field update
* update_vesion_puadb() is called from send_publish() and pres->id
  value is valid after a call to get_record_puadb()

related to #2414

(cherry picked from commit 733f5f240b4cf0c6e951257dc344d9b2c885331f)

16 months agopua: fix send_publish() behavior on PUA_DB_ONLY
Victor Seva [Thu, 30 Jul 2020 10:19:45 +0000 (12:19 +0200)]
pua: fix send_publish() behavior on PUA_DB_ONLY

* dialog PUBLISH was missing SIP-If-Mach
* pua was inserting a new record for every dialog state

fixes #2414

(cherry picked from commit da7f7ef082e28f81893ec06081358a9f88571bcc)

16 months agotm: lower log level for t_unref kill transaction to WARN
Henning Westerholt [Thu, 23 Jul 2020 15:23:15 +0000 (15:23 +0000)]
tm: lower log level for t_unref kill transaction to WARN

- lower log level for t_unref kill transaction to WARN
- immediate CANCEL on an INVITE could trigger this

(cherry picked from commit d85d43247c3d056eebeec3f97735d13c048a181c)

16 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Thu, 16 Jul 2020 16:21:12 +0000 (18:21 +0200)]
modules: readme files regenerated - modules ... [skip ci]

16 months agocore: strutils - trim trailing spaces when comparing hdr names
Daniel-Constantin Mierla [Thu, 16 Jul 2020 07:16:40 +0000 (09:16 +0200)]
core: strutils - trim trailing spaces when comparing hdr names

(cherry picked from commit 6d76b79b81bf448fa1f34753c1d000dc6c1870e0)
(cherry picked from commit d0f7c7056b32351cac0b20ce24b074d9be8459a2)
(cherry picked from commit 340deabc375272dc3f0a921786890dab8ee778b3)

16 months agocore: parser - trim trailing whitespaces in header name
Daniel-Constantin Mierla [Thu, 16 Jul 2020 07:09:48 +0000 (09:09 +0200)]
core: parser - trim trailing whitespaces in header name

(cherry picked from commit 7135feee9cdc93efa8c0c3e4abf24a9335ce42de)
(cherry picked from commit 63e227383d9c5112f287299981d217f1558a15a8)
(cherry picked from commit 434dfd38aad2a0e9115ceba55d871fba5d6628f2)

16 months agocore: don't close tcp connection for dropped non sip messages
lazedo [Mon, 13 Jul 2020 12:01:43 +0000 (13:01 +0100)]
core: don't close tcp connection for dropped non sip messages

(cherry picked from commit 007f98692bb6f7cb35adbb86ec6fb06f034614cc)
(cherry picked from commit 0cf30ae1c4128bca8882109ec34c34a2dd2b4cef)
(cherry picked from commit 2691b6a69bcddf0fd0daa92f27f27c6f8fb2a5a8)

16 months agocore: tcp - debug message when removing connection from list
Daniel-Constantin Mierla [Wed, 8 Jul 2020 12:44:34 +0000 (14:44 +0200)]
core: tcp - debug message when removing connection from list

(cherry picked from commit 317f707425a4cf0be144d2c874fcdf2ad8d7f992)
(cherry picked from commit 33ccba4be33fc24bd6a8c3539020b798f3e9a616)

16 months agocore: io wait - unhash in case delete operation fails because of EBADF
Daniel-Constantin Mierla [Tue, 7 Jul 2020 15:37:00 +0000 (17:37 +0200)]
core: io wait - unhash in case delete operation fails because of EBADF

- EBADF: epfd or fd is not a valid file descriptor

(cherry picked from commit 846cc5b97a907b5314ccf03772776e0d23434042)
(cherry picked from commit dc040c863172f827a4b508cc04c29ee9e9b61c83)

16 months agocarrierroute: do not test return for strcpy() and strcat()
Daniel-Constantin Mierla [Mon, 6 Jul 2020 07:03:32 +0000 (09:03 +0200)]
carrierroute: do not test return for strcpy() and strcat()

- they return the dst or src parameter, resulting in code analyzer
reporting

(cherry picked from commit 65159728a4425f45559de55fd5549731e717d74e)
(cherry picked from commit d597ecd290508b4be3dac459494db3d0eaffd6e7)

16 months agodb_redis: use safer localtime_r() function
Daniel-Constantin Mierla [Sun, 5 Jul 2020 18:50:00 +0000 (20:50 +0200)]
db_redis: use safer localtime_r() function

(cherry picked from commit 0cc1e167b9e54bb4a652162445efe89b02939eed)
(cherry picked from commit 8e849681b7da3f6d94576620019363faba0c111e)

16 months agocore: tcp - test connection reference counter to avoid going negative
Daniel-Constantin Mierla [Fri, 3 Jul 2020 21:00:24 +0000 (23:00 +0200)]
core: tcp - test connection reference counter to avoid going negative

(cherry picked from commit 6a637cf84906ec5315c77e5458180f7d9d69a481)
(cherry picked from commit 55edf5e1ff6afc895f8263854cbfe6c98c6e4d72)

16 months agocore: tcp - safety checks on emptly local tcp connection list
Daniel-Constantin Mierla [Fri, 3 Jul 2020 12:02:20 +0000 (14:02 +0200)]
core: tcp - safety checks on emptly local tcp connection list

(cherry picked from commit 67f9de8a946335e2bf16fe0e6063877cd4d51fb7)
(cherry picked from commit 003378f244d2c51773615905e7f98d3733b45b22)

16 months agocore: tcp - more details on error log messages
Daniel-Constantin Mierla [Fri, 3 Jul 2020 08:49:43 +0000 (10:49 +0200)]
core: tcp - more details on error log messages

(cherry picked from commit fefb3f1b2dbae8d9df24fecee763c5a1cd588107)
(cherry picked from commit f6ad586b6b461ff061428b4286521eb3d06de397)

16 months agotcpops: target variable passed on tcp_get_conid function was empty
kvrban [Thu, 2 Jul 2020 08:09:09 +0000 (10:09 +0200)]
tcpops: target variable passed on tcp_get_conid function was empty

(cherry picked from commit a2932492e24ac3c3afe4d33f025c7501c93fda49)
(cherry picked from commit 511719e61405bc7f718de180331c43c2883a62f5)

16 months agolib/srdb1: init timeval structs to silent analyzer
Daniel-Constantin Mierla [Fri, 3 Jul 2020 06:33:13 +0000 (08:33 +0200)]
lib/srdb1: init timeval structs to silent analyzer

(cherry picked from commit 0780e781c319254307c85bd873c58c6478a28da8)
(cherry picked from commit 6b438b9aad7044c79e4216d2c09ea95d5f0cc61c)

16 months agocnxcc: update docs [skip ci]
Jose Luis Verdeguer [Wed, 1 Jul 2020 15:47:59 +0000 (17:47 +0200)]
cnxcc: update docs [skip ci]

* new error return values
* delete return value from set_max_credit not in code

(cherry picked from commit bc0264f4802c266901a1eb7a296f80f1dbfcc828)
(cherry picked from commit d14c2513390fb6e3bad2e73e6548d7e6e9232c46)

16 months agocnxcc: avoid duplicated call info
Jose Luis Verdeguer [Wed, 1 Jul 2020 15:40:50 +0000 (17:40 +0200)]
cnxcc: avoid duplicated call info

Don't store call if call-id is already registered for that client

(cherry picked from commit fb8cc72f1bd76bb2fd4d4e2e5fa2afc50eef59ad)
(cherry picked from commit 31055879fccd14659e378bc28a79df82aa9b446b)