kamailio
19 months agortpproxy: renamed extract_mediaip() to rp_extract_mediaip()
Daniel-Constantin Mierla [Tue, 6 Oct 2020 10:59:50 +0000 (12:59 +0200)]
rtpproxy: renamed extract_mediaip() to rp_extract_mediaip()

- extract_mediaip() is also in core sdp parser

(cherry picked from commit 8d0044770e94eaf7099eabbb55abe177e52e5373)

19 months agonathelper: renamed extract_mediaip() to nh_extract_mediaip()
Daniel-Constantin Mierla [Tue, 6 Oct 2020 09:56:45 +0000 (11:56 +0200)]
nathelper: renamed extract_mediaip() to nh_extract_mediaip()

- extract_mediaip() is also in core sdp parser

(cherry picked from commit b0f239a2c16b71b8b7e7b325ea121ffc48afa78e)

19 months agonathelper: docs - updated notes for fix_nated_sdp. few typos fixed [skip ci]
Arsen Semenov [Tue, 6 Oct 2020 06:40:27 +0000 (11:40 +0500)]
nathelper: docs - updated notes for fix_nated_sdp. few typos fixed [skip ci]

(cherry picked from commit 64579fee33d0a82a583b75184f78fcb7c9df2d82)

19 months agonathelper: fix_nated_sdp added support for a=rtcp param RFC3605
Arsen Semenov [Mon, 5 Oct 2020 08:52:45 +0000 (13:52 +0500)]
nathelper: fix_nated_sdp added support for a=rtcp param RFC3605

- GH #2459

(cherry picked from commit 088738ce16e73339e4c1b78c11f6ad6f8f3394cf)

19 months agophonenum: note about the role of country code name for phonenum_match_cn()
Daniel-Constantin Mierla [Fri, 2 Oct 2020 19:37:15 +0000 (21:37 +0200)]
phonenum: note about the role of country code name for phonenum_match_cn()

(cherry picked from commit dfd6c3966ed70d111a9196076bc29767c395d814)

19 months agocore: dns cache - removed disabled code between #if 0 ... #endif
Daniel-Constantin Mierla [Thu, 24 Sep 2020 08:04:08 +0000 (10:04 +0200)]
core: dns cache - removed disabled code between #if 0 ... #endif

(cherry picked from commit 298aeb7f93bfa75ec78bc941f2c76167525b2e61)

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

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

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

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

19 months agotm: do not add duplicate headers in local requests
Daniel-Constantin Mierla [Fri, 9 Oct 2020 20:15:12 +0000 (22:15 +0200)]
tm: do not add duplicate headers in local requests

(cherry picked from commit ada3701d22b1fd579f06b4f54fa695fa988e685f)

19 months agocore: parser - print lenghts in to header parsing debug message
Daniel-Constantin Mierla [Fri, 9 Oct 2020 19:59:49 +0000 (21:59 +0200)]
core: parser - print lenghts in to header parsing debug message

(cherry picked from commit 2648eb330b133a20f1398d59a28c53532106cad3)

19 months agosanity: extended check 4 (required headers) for uniqueness
Daniel-Constantin Mierla [Fri, 9 Oct 2020 19:55:45 +0000 (21:55 +0200)]
sanity: extended check 4 (required headers) for uniqueness

- Call-ID, CSeq, From and To have to be only once

(cherry picked from commit a9ede56b35990fcc9164af0775f503e49e33377e)

19 months agousrloc: send keepalive over ws and wss connections
Daniel-Constantin Mierla [Fri, 9 Oct 2020 07:25:41 +0000 (09:25 +0200)]
usrloc: send keepalive over ws and wss connections

(cherry picked from commit 5dda7f336121b6068fd306340cb90a7d7e76c708)

19 months agocore: tcp - helper function to send data over ws/wss connection
Daniel-Constantin Mierla [Fri, 9 Oct 2020 05:52:29 +0000 (07:52 +0200)]
core: tcp - helper function to send data over ws/wss connection

(cherry picked from commit 5e107824d684cdf30514b033e7f600862123ece5)

19 months agodialog: do unlock after saving updated dialog details
Daniel-Constantin Mierla [Mon, 5 Oct 2020 09:53:01 +0000 (11:53 +0200)]
dialog: do unlock after saving updated dialog details

- lock()/unlock() for dialog slots are reentrant

(cherry picked from commit e4cf6739e62c2ac1e5364315aaed1a7b73919253)

19 months agodialog: fix error in dlg.list_match for callid parameter (reported from Ilie Soltanici)
Henning Westerholt [Sat, 3 Oct 2020 16:58:53 +0000 (16:58 +0000)]
dialog: fix error in dlg.list_match for callid parameter (reported from Ilie Soltanici)

(cherry picked from commit 360e012d9d93c80b62b6e75bfac6e3340407ee98)

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

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

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

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

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

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

19 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

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

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

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

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

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

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

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

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

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

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

19 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

19 months agopv: use the corresponding functions for parsing names of xavu and xavi
Daniel-Constantin Mierla [Tue, 29 Sep 2020 05:25:46 +0000 (07:25 +0200)]
pv: use the corresponding functions for parsing names of xavu and xavi

(cherry picked from commit aa8589ba66f984e93438a91a7fe8b26bd9d5b62e)

19 months agousrloc: set last keepalive value to current time on new records
Daniel-Constantin Mierla [Fri, 25 Sep 2020 07:38:39 +0000 (09:38 +0200)]
usrloc: set last keepalive value to current time on new records

- do not rely on last modified value, can be loaded from db and be too
old

(cherry picked from commit 60f04b6d6f51b55294d22722df3f351a76cbfb9b)

20 months agousrloc: do keepalive mode checks before expire processing
Daniel-Constantin Mierla [Wed, 23 Sep 2020 15:31:04 +0000 (17:31 +0200)]
usrloc: do keepalive mode checks before expire processing

(cherry picked from commit e67b588434a08c828548c79b6cc5f4c2a7240dc9)

20 months agousrloc: do keepalive-based contact expire on internal callback
Daniel-Constantin Mierla [Wed, 23 Sep 2020 15:00:29 +0000 (17:00 +0200)]
usrloc: do keepalive-based contact expire on internal callback

- the one used by nathelper is not triggered automatically

(cherry picked from commit 5c1e07dc2efc46fe078263c76ce0388f09949539)

20 months agoimc: jump over printing error log messages when list commands are ok
Daniel-Constantin Mierla [Tue, 22 Sep 2020 17:00:25 +0000 (19:00 +0200)]
imc: jump over printing error log messages when list commands are ok

- reported by GH #2481

(cherry picked from commit 92cfb5e8d291706889c926892397e663e2d93b05)

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

20 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Tue, 22 Sep 2020 17:46:21 +0000 (19:46 +0200)]
modules: readme files regenerated - modules ... [skip ci]

20 months agousrloc: docs for ka_timeout module parameter
Daniel-Constantin Mierla [Fri, 11 Sep 2020 20:06:45 +0000 (22:06 +0200)]
usrloc: docs for ka_timeout module parameter

(cherry picked from commit 2e9d4e2dc45bf5baab1bff9c13fc841b66793cb4)

20 months agousrloc: export modparam to set keepalive timeout
Daniel-Constantin Mierla [Fri, 11 Sep 2020 20:00:38 +0000 (22:00 +0200)]
usrloc: export modparam to set keepalive timeout

- variable was not exported by the module for internal keepalive
mechanism

(cherry picked from commit 9331044bf517be120dea59414402415090b63007)

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

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

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

20 months agocore: more comments about data lump structure fields and options
Daniel-Constantin Mierla [Wed, 9 Sep 2020 13:32:33 +0000 (15:32 +0200)]
core: more comments about data lump structure fields and options

(cherry picked from commit b13431b6fc7eec20096c5be46c8ce2e43931c45f)

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

20 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

20 months agocore: events - return once SREV_SIP_REPLY_OUT callbacks are executed
Daniel-Constantin Mierla [Tue, 8 Sep 2020 11:08:01 +0000 (13:08 +0200)]
core: events - return once SREV_SIP_REPLY_OUT callbacks are executed

(cherry picked from commit 1910432ce3af56af1e6d4c4c124c2af2925c5b9a)

20 months agouac: restore first display name then uri with dialog callback
Daniel-Constantin Mierla [Mon, 7 Sep 2020 17:35:04 +0000 (19:35 +0200)]
uac: restore first display name then uri with dialog callback

- same as for rr callback, otherwise the new header can be malformed:
the case of initial INVITE with From URI having no angle brackets and goes
out with display name and angle brackets, the ACK for 200ok results with
From broken when forwarded

(cherry picked from commit efa6c6a9bf13c430d5be5146168d1ded4c39dba7)

20 months agopv_headers: fix $x_hdr index on get
Victor Seva [Fri, 4 Sep 2020 09:19:33 +0000 (11:19 +0200)]
pv_headers: fix $x_hdr index on get

* previously we where not supporting pseudo-variables as index

(cherry picked from commit 492c99e8065baa510f55154593122e33d3a61d73)

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

20 months agoRevert "tls: support compilation without deprecated OpenSSL APIs"
Victor Seva [Wed, 2 Sep 2020 11:12:25 +0000 (13:12 +0200)]
Revert "tls: support compilation without deprecated OpenSSL APIs"

This reverts commit 10af8efa9061c2f52ee1db51c4cf665073c20dcc.

20 months agoRevert "tls: added define condition on version functions"
Victor Seva [Wed, 2 Sep 2020 11:12:06 +0000 (13:12 +0200)]
Revert "tls: added define condition on version functions"

This reverts commit 67979e07b63b574687b1924c38fabd724d0ad876.

20 months agoRevert "tls: proper ifdef on libssl version for tls_init_locks()"
Victor Seva [Wed, 2 Sep 2020 11:11:51 +0000 (13:11 +0200)]
Revert "tls: proper ifdef on libssl version for tls_init_locks()"

This reverts commit e9baba91c6c7e3d1817e8a07bbabbce3a8efbe79.

20 months agokamctl: regenerated dbtext version table records
Daniel-Constantin Mierla [Wed, 2 Sep 2020 11:11:40 +0000 (13:11 +0200)]
kamctl: regenerated dbtext version table records

- GH #2463

(cherry picked from commit 65f5d0ed0fb88f5312ac53f2faaa66a2098ce0d8)

20 months agodoc/stylesheets: set 0 for id column in dbtext version table records
Daniel-Constantin Mierla [Wed, 2 Sep 2020 11:11:18 +0000 (13:11 +0200)]
doc/stylesheets: set 0 for id column in dbtext version table records

(cherry picked from commit fcd3f257c12d2e17fa92007f9d149e4ee27ec994)

20 months agoChangeLog: content updated for v5.4.1 5.4.1
Daniel-Constantin Mierla [Tue, 1 Sep 2020 07:57:57 +0000 (09:57 +0200)]
ChangeLog: content updated for v5.4.1

20 months agoMakefile.defs: version set to 5.4.1
Daniel-Constantin Mierla [Tue, 1 Sep 2020 07:37:28 +0000 (09:37 +0200)]
Makefile.defs: version set to 5.4.1

20 months agopkg: version set to 5.4.1 for rpm and alpine specs
Daniel-Constantin Mierla [Tue, 1 Sep 2020 07:35:50 +0000 (09:35 +0200)]
pkg: version set to 5.4.1 for rpm and alpine specs

20 months agopkg/kamailio/deb: version set 5.4.1
Victor Seva [Tue, 1 Sep 2020 07:12:28 +0000 (09:12 +0200)]
pkg/kamailio/deb: version set 5.4.1

20 months agokeepalive: removed function name from log messages
Daniel-Constantin Mierla [Mon, 31 Aug 2020 10:15:00 +0000 (12:15 +0200)]
keepalive: removed function name from log messages

(cherry picked from commit 17d6a88090e2a67f5c0b06e6aae76d629595b37e)

20 months agotls: proper ifdef on libssl version for tls_init_locks()
Daniel-Constantin Mierla [Sun, 30 Aug 2020 16:04:04 +0000 (18:04 +0200)]
tls: proper ifdef on libssl version for tls_init_locks()

- avoid compile warning on unused label

(cherry picked from commit 60bd3aa284a5d9eb117a9763aa590aecf276ba16)

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

20 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Wed, 26 Aug 2020 21:16:45 +0000 (23:16 +0200)]
modules: readme files regenerated - modules ... [skip ci]

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

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

20 months agokeepalive: docs - documented owner parameter for add/delete functions
Daniel-Constantin Mierla [Mon, 24 Aug 2020 07:34:33 +0000 (09:34 +0200)]
keepalive: docs - documented owner parameter for add/delete functions

- related to GH #2438

(cherry picked from commit 7284a61125bb0cacd1adc2289af616061df03258)

20 months agocore: kemi - exported core route function
Daniel-Constantin Mierla [Thu, 20 Aug 2020 14:16:56 +0000 (16:16 +0200)]
core: kemi - exported core route function

(cherry picked from commit d9dd2abeb82be8b992ddf534864b6d84594b7a47)

20 months agocfgutils: exported route check functions to kemi
Daniel-Constantin Mierla [Thu, 20 Aug 2020 13:57:57 +0000 (15:57 +0200)]
cfgutils: exported route check functions to kemi

(cherry picked from commit ecba550f5d35435adfa9c692cec8cee6cae8a77b)

20 months agouac: added uac_event_callback for kemi
Yufei Tao [Thu, 13 Aug 2020 15:18:49 +0000 (16:18 +0100)]
uac: added uac_event_callback for kemi

(cherry picked from commit 767d3ca88a4e4fa093a6a81a36d95d116251b578)

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

20 months agotls: added define condition on version functions
Daniel-Constantin Mierla [Thu, 13 Aug 2020 05:19:28 +0000 (07:19 +0200)]
tls: added define condition on version functions

- libssl 1.1 variants are not in 1.0
- following the changes by 234b02236b3ad13cdaf5624d11c727ad7d804747

(cherry picked from commit 99c6a68dea60ca745dfdfa33085bb6acbcee846a)

20 months agotls: support compilation without deprecated OpenSSL APIs
Rosen Penev [Wed, 12 Aug 2020 14:37:13 +0000 (16:37 +0200)]
tls: support compilation without deprecated OpenSSL APIs

- GH #2428

(cherry picked from commit 234b02236b3ad13cdaf5624d11c727ad7d804747)

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

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

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

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

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

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

20 months agoapp_lua: docs - note about availability of 'sr' Lua module
Daniel-Constantin Mierla [Thu, 30 Jul 2020 18:32:02 +0000 (20:32 +0200)]
app_lua: docs - note about availability of 'sr' Lua module

- use KSR in the examples

(cherry picked from commit 34efa83569bedb1f36c3661ee063ff6334633e4a)

20 months agoevapi: export async_unicast() to kemi
Daniel-Constantin Mierla [Thu, 30 Jul 2020 08:36:01 +0000 (10:36 +0200)]
evapi: export async_unicast() to kemi

- PR #2415

(cherry picked from commit 7116c04c61cf789a371568fb593c109e195a1574)

21 months agodmq_usrloc: do not replicate socket if the field is not set:
Daniel-Constantin Mierla [Mon, 24 Aug 2020 10:28:07 +0000 (12:28 +0200)]
dmq_usrloc: do not replicate socket if the field is not set:

- GH #2451

(cherry picked from commit 8891b656f5d3650b83e4f877ca43068d5d6f7ff7)

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

21 months agoasync: fix async_ms_route and export it to kemi
Federico Cabiddu [Thu, 20 Aug 2020 09:06:56 +0000 (11:06 +0200)]
async: fix async_ms_route and export it to kemi

(cherry picked from commit b787627819fc93dcc8c68a4950c9760d298ce555)

21 months agousrloc: print Route header name in keepalive when Path is present
Daniel-Constantin Mierla [Tue, 18 Aug 2020 15:48:21 +0000 (17:48 +0200)]
usrloc: print Route header name in keepalive when Path is present

- related to GH #2446

(cherry picked from commit d49d6b89ceb311598a89cfd789d180412b46a4af)

21 months agousrloc: export the ka_logmsg parameter
Daniel-Constantin Mierla [Mon, 17 Aug 2020 09:44:09 +0000 (11:44 +0200)]
usrloc: export the ka_logmsg parameter

- GH #2440

(cherry picked from commit d74ab3652eadb34b708755522048468ca8f0b2e8)

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

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

21 months agoevapi: use port in getaddrinfo() otherwise it does not bind as expected
Daniel-Constantin Mierla [Tue, 4 Aug 2020 13:19:39 +0000 (15:19 +0200)]
evapi: use port in getaddrinfo() otherwise it does not bind as expected

- regression added by cc098ecdfb556bf5efaab72fa767c773000f9fb6

(cherry picked from commit 301302531c630803222e7f14a1c113b1a400f7a1)

21 months agopkg/kamailio/deb: add focal support #2338
Victor Seva [Tue, 4 Aug 2020 13:01:17 +0000 (15:01 +0200)]
pkg/kamailio/deb: add focal support #2338

21 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 e4aed5c272c8144dd1ddf58163c3ba501bb46a5b)

21 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 91d9441a242da4746171bfa532fa2378328e8d73)

21 months agopua_bla: clang-format
Victor Seva [Wed, 29 Jul 2020 11:28:39 +0000 (13:28 +0200)]
pua_bla: clang-format

* use STR_NULL

(cherry picked from commit e542b779b29bda2d0a953a4e55921edc466a3936)

21 months agopua_bla: convert to PKG/SHM memory logging helper functions
Victor Seva [Wed, 29 Jul 2020 11:15:25 +0000 (13:15 +0200)]
pua_bla: convert to PKG/SHM memory logging helper functions

* remove trailing spaces
* remove history notes and $Id

(cherry picked from commit e4895abf5a533b96bf5e7112488a0facaabfc1a7)

21 months agopua_usrloc: convert to PKG/SHM memory logging helper functions
Victor Seva [Wed, 29 Jul 2020 11:10:04 +0000 (13:10 +0200)]
pua_usrloc: convert to PKG/SHM memory logging helper functions

(cherry picked from commit be07ed5dd927448ffad3bd77f976249a888cfb2e)

21 months agopua: convert to PKG/SHM memory logging helper functions
Victor Seva [Wed, 29 Jul 2020 08:53:48 +0000 (10:53 +0200)]
pua: convert to PKG/SHM memory logging helper functions

* remove trailing spaces

(cherry picked from commit c91e852d203017b571ae15e48c289f73f4824136)

21 months agopua_dialoginfo: convert to PKG/SHM memory logging helper functions
Victor Seva [Wed, 29 Jul 2020 08:32:05 +0000 (10:32 +0200)]
pua_dialoginfo: convert to PKG/SHM memory logging helper functions

(cherry picked from commit 7e5cc3aa21a243ef19ec092fec10043b1178cae7)