sip-router
19 months agoapp_python: use -fno-strict-aliasing for gcc
Daniel-Constantin Mierla [Mon, 27 Apr 2020 08:25:28 +0000 (10:25 +0200)]
app_python: use -fno-strict-aliasing for gcc

- python2 is known for not confirming strict aliasing
- it is EoL and likely not going to be fixed
- GH #2298

19 months agoMakefile.defs: expose CC_NAME variable
Daniel-Constantin Mierla [Mon, 27 Apr 2020 08:25:06 +0000 (10:25 +0200)]
Makefile.defs: expose CC_NAME variable

19 months agoredis: init variables to get rid of compile warnings
Daniel-Constantin Mierla [Mon, 27 Apr 2020 07:36:36 +0000 (09:36 +0200)]
redis: init variables to get rid of compile warnings

- GH #2298

19 months agodb2_local: replace timelocal() with mktime()
Daniel-Constantin Mierla [Mon, 27 Apr 2020 07:00:21 +0000 (09:00 +0200)]
db2_local: replace timelocal() with mktime()

- timelocal() is nonstandard GNU extension, not recommended to be used
and mktime() should be equivalent:
  * https://linux.die.net/man/3/timegm
- GH #2298

19 months agocore: error.{c,h} - coherent use of camel case in error and reason texts
Daniel-Constantin Mierla [Sun, 26 Apr 2020 08:34:52 +0000 (10:34 +0200)]
core: error.{c,h} - coherent use of camel case in error and reason texts

- indentation and whitespacing

19 months agopresence: consider watchers in active status when in no-db mode
Daniel-Constantin Mierla [Sat, 25 Apr 2020 10:27:39 +0000 (12:27 +0200)]
presence: consider watchers in active status when in no-db mode

- there is no persistent storage for watchers, status is lost on restart
anyhow (similar to force active)

19 months agodmq: test of if reply code and reason are set to send the response
Daniel-Constantin Mierla [Fri, 24 Apr 2020 19:14:24 +0000 (21:14 +0200)]
dmq: test of if reply code and reason are set to send the response

19 months agodmq: set 202 response for empty_peer_callback() handling
Daniel-Constantin Mierla [Fri, 24 Apr 2020 19:09:26 +0000 (21:09 +0200)]
dmq: set 202 response for empty_peer_callback() handling

19 months agodispatcher: handle the case of maxload 0 for call load distribution
Daniel-Constantin Mierla [Thu, 23 Apr 2020 17:04:58 +0000 (19:04 +0200)]
dispatcher: handle the case of maxload 0 for call load distribution

- GH #2297

19 months agoims_usrloc_pcscf: fix value array size and compile warnings
Daniel-Constantin Mierla [Thu, 23 Apr 2020 08:21:22 +0000 (10:21 +0200)]
ims_usrloc_pcscf: fix value array size and compile warnings

19 months agodb_redis: var initialization and safety check to avoid compiler warnings
Daniel-Constantin Mierla [Thu, 23 Apr 2020 07:57:05 +0000 (09:57 +0200)]
db_redis: var initialization and safety check to avoid compiler warnings

19 months agopresence: implemented more functions to work with in-memory presentity records
Daniel-Constantin Mierla [Wed, 22 Apr 2020 19:01:38 +0000 (21:01 +0200)]
presence: implemented more functions to work with in-memory presentity records

19 months agoauth: log correct variable name in nonce-count error message
Henning Westerholt [Wed, 22 Apr 2020 16:14:54 +0000 (16:14 +0000)]
auth: log correct variable name in nonce-count error message

19 months agopresence: function to search presentity items for in memory subscriptions
Daniel-Constantin Mierla [Wed, 22 Apr 2020 14:57:24 +0000 (16:57 +0200)]
presence: function to search presentity items for in memory subscriptions

19 months agomodules: readme files regenerated - nathelper ... [skip ci]
Kamailio Dev [Wed, 22 Apr 2020 13:01:12 +0000 (15:01 +0200)]
modules: readme files regenerated - nathelper ... [skip ci]

19 months agonathelper: update flag documenation
Henning Westerholt [Wed, 22 Apr 2020 12:52:12 +0000 (12:52 +0000)]
nathelper: update flag documenation

19 months agoMerge pull request #2295 from kamailio/grumvalski/siptrace_memleak_fix
Federico Cabiddu [Wed, 22 Apr 2020 12:05:26 +0000 (14:05 +0200)]
Merge pull request #2295 from kamailio/grumvalski/siptrace_memleak_fix

siptrace: siptrace: fix memory leak in fake replies tracing

19 months agosiptrace: free parsed from in case of errors 2295/head
Federico Cabiddu [Wed, 22 Apr 2020 09:40:58 +0000 (11:40 +0200)]
siptrace: free parsed from in case of errors

19 months agosiptrace: siptrace: fix memory leak in fake replies tracing
Federico Cabiddu [Wed, 22 Apr 2020 07:34:20 +0000 (09:34 +0200)]
siptrace: siptrace: fix memory leak in fake replies tracing

19 months agopresence: safety checks in timer callbacks to cope with storage modes
Daniel-Constantin Mierla [Wed, 22 Apr 2020 06:42:48 +0000 (08:42 +0200)]
presence: safety checks in timer callbacks to cope with storage modes

19 months agopresence: use separate structure to match presentity to replace or update
Daniel-Constantin Mierla [Wed, 22 Apr 2020 06:11:36 +0000 (08:11 +0200)]
presence: use separate structure to match presentity to replace or update

19 months agopresence: init pres and subs hash tables for non db-only mode and memory index
Daniel-Constantin Mierla [Tue, 21 Apr 2020 20:42:12 +0000 (22:42 +0200)]
presence: init pres and subs hash tables for non db-only mode and memory index

19 months agopresence: delete expired in-memory presentity records
Daniel-Constantin Mierla [Tue, 21 Apr 2020 17:45:01 +0000 (19:45 +0200)]
presence: delete expired in-memory presentity records

19 months agopresence: user core macro for hash slot index
Daniel-Constantin Mierla [Tue, 21 Apr 2020 15:31:44 +0000 (17:31 +0200)]
presence: user core macro for hash slot index

19 months agocore: hashes - small helper macro to compute hash slot index
Daniel-Constantin Mierla [Tue, 21 Apr 2020 15:30:37 +0000 (17:30 +0200)]
core: hashes - small helper macro to compute hash slot index

19 months agopresence: rpc presence.presentity_list is returning an array
Daniel-Constantin Mierla [Tue, 21 Apr 2020 13:25:25 +0000 (15:25 +0200)]
presence: rpc presence.presentity_list is returning an array

19 months agopresence: use unsigned int for presentity hash id
Daniel-Constantin Mierla [Tue, 21 Apr 2020 13:08:39 +0000 (15:08 +0200)]
presence: use unsigned int for presentity hash id

19 months agopv: fixes for KEMI pvx.xavp_getd
Victor Seva [Tue, 21 Apr 2020 11:03:16 +0000 (13:03 +0200)]
pv: fixes for KEMI pvx.xavp_getd

19 months agopresence: compute presentity table slot index using correct structure
Daniel-Constantin Mierla [Tue, 21 Apr 2020 10:55:17 +0000 (12:55 +0200)]
presence: compute presentity table slot index using correct structure

19 months agoMerge pull request #2246 from alexyosifov/ims_registrar_scscf_notify_fix
ng-voice GmbH [Tue, 21 Apr 2020 09:52:27 +0000 (11:52 +0200)]
Merge pull request #2246 from alexyosifov/ims_registrar_scscf_notify_fix

ims_registrar_scscf: fix multiple contacts in NOTIFY

19 months agoims_registrar_scscf: fix multiple contacts in NOTIFY 2246/head
Aleksandar Yosifov [Wed, 11 Mar 2020 15:56:09 +0000 (17:56 +0200)]
ims_registrar_scscf: fix multiple contacts in NOTIFY

- Prevent multiple contacts for NOTIFY message in
  Message body <registration> tag after
  RE-REGISTRATION procedure.

19 months agomodules: readme files regenerated - presence ... [skip ci]
Kamailio Dev [Tue, 21 Apr 2020 08:16:25 +0000 (10:16 +0200)]
modules: readme files regenerated - presence ... [skip ci]

19 months agopresence: docs for rpc command presence.presentity_list
Daniel-Constantin Mierla [Tue, 21 Apr 2020 08:04:49 +0000 (10:04 +0200)]
presence: docs for rpc command presence.presentity_list

19 months agopresence: implemented rpc command to list presententy records in memory
Daniel-Constantin Mierla [Tue, 21 Apr 2020 07:57:30 +0000 (09:57 +0200)]
presence: implemented rpc command to list presententy records in memory

- presence.presentity_list [mode] - mode is optional and can be 'full'
to print all attributes of the presentity record

19 months agopresence: increased the array size for rpc cleanup doc
Daniel-Constantin Mierla [Tue, 21 Apr 2020 07:15:48 +0000 (09:15 +0200)]
presence: increased the array size for rpc cleanup doc

- reformatted the static structure for coherence

19 months agopresence: correct value for PS_PCACHE_RECORD
Daniel-Constantin Mierla [Mon, 20 Apr 2020 15:59:26 +0000 (17:59 +0200)]
presence: correct value for PS_PCACHE_RECORD

19 months agomodules: readme files regenerated - presence ... [skip ci]
Kamailio Dev [Mon, 20 Apr 2020 15:31:14 +0000 (17:31 +0200)]
modules: readme files regenerated - presence ... [skip ci]

19 months agopresence: do not init db connection when everything is stored in memory
Daniel-Constantin Mierla [Mon, 20 Apr 2020 13:50:52 +0000 (15:50 +0200)]
presence: do not init db connection when everything is stored in memory

19 months agopresence: updated docs for publ_cache parameter
Daniel-Constantin Mierla [Mon, 20 Apr 2020 13:35:24 +0000 (15:35 +0200)]
presence: updated docs for publ_cache parameter

19 months agopresence: handle publish with full records stored in cache
Daniel-Constantin Mierla [Mon, 20 Apr 2020 13:26:39 +0000 (15:26 +0200)]
presence: handle publish with full records stored in cache

19 months agotls: add sel for tls verified cert chain (requires OpenSSL 1.1+) (#2289)
Armen Babikyan [Mon, 20 Apr 2020 07:51:26 +0000 (00:51 -0700)]
tls: add sel for tls verified cert chain (requires OpenSSL 1.1+) (#2289)

* tls: add sel for tls verified cert chain (requires OpenSSL 1.1+)

* remove extra tcpconn_put() call

Co-authored-by: Armen Babikyan <armen@firespotter.com>
19 months agopresence: init and destroy full presentity caching table
Daniel-Constantin Mierla [Sun, 19 Apr 2020 17:01:22 +0000 (19:01 +0200)]
presence: init and destroy full presentity caching table

19 months agopresence: define modes for publ_cache parameter
Daniel-Constantin Mierla [Sun, 19 Apr 2020 07:02:09 +0000 (09:02 +0200)]
presence: define modes for publ_cache parameter

19 months agopresence: in-memory presentity update function
Daniel-Constantin Mierla [Sat, 18 Apr 2020 12:38:08 +0000 (14:38 +0200)]
presence: in-memory presentity update function

- more functions exposed in the header file

19 months agotls: fix raw vs urlencoded behavior in sel_ssl_cert()
Armen Babikyan [Sat, 18 Apr 2020 21:18:40 +0000 (14:18 -0700)]
tls: fix raw vs urlencoded behavior in sel_ssl_cert()

19 months agohttp_async_client: do not set global avp lists from t on async callback
Daniel-Constantin Mierla [Fri, 17 Apr 2020 17:04:16 +0000 (19:04 +0200)]
http_async_client: do not set global avp lists from t on async callback

- they are done by fake_env() used inside t_continue()
- they were set without reset, living in the process context, resulting
in invalid access when async callback was executed with faked_msg
- related to #2286

19 months agopresence: functions to keep presentity records in memory
Daniel-Constantin Mierla [Fri, 17 Apr 2020 16:44:06 +0000 (18:44 +0200)]
presence: functions to keep presentity records in memory

- work in progress to have in-memory only records, without database
storage

19 months agotls: renamed tls hooks callbacks to highlight their purpose
Daniel-Constantin Mierla [Fri, 17 Apr 2020 10:57:26 +0000 (12:57 +0200)]
tls: renamed tls hooks callbacks to highlight their purpose

19 months agomodules: readme files regenerated - corex ... [skip ci]
Kamailio Dev [Thu, 16 Apr 2020 15:01:20 +0000 (17:01 +0200)]
modules: readme files regenerated - corex ... [skip ci]

19 months agocorex: docs for is_faked_msg() function
Daniel-Constantin Mierla [Thu, 16 Apr 2020 14:52:30 +0000 (16:52 +0200)]
corex: docs for is_faked_msg() function

19 months agocorex: new function is_faked_msg()
Daniel-Constantin Mierla [Thu, 16 Apr 2020 14:44:17 +0000 (16:44 +0200)]
corex: new function is_faked_msg()

- return 1 (native cfg true) if the message under processing is faked (a
static sip message structure used internally by kamailio)
- return -1 (native cfg false) if it is a received sip message
- useful for checking in event routes or async route blocks when can be
both types of messages

19 months agopv: format new xavp functions declaration lines to be matched by kemi docs tool
Daniel-Constantin Mierla [Thu, 16 Apr 2020 14:32:54 +0000 (16:32 +0200)]
pv: format new xavp functions declaration lines to be matched by kemi docs tool

19 months agotm: do not return if kemi callback execution fails for t_continue() 2287/head
Daniel-Constantin Mierla [Thu, 16 Apr 2020 10:38:20 +0000 (12:38 +0200)]
tm: do not return if kemi callback execution fails for t_continue()

- have same behaviour as with route blocks

19 months agomodules: readme files regenerated - nathelper ... [skip ci]
Kamailio Dev [Thu, 16 Apr 2020 10:01:17 +0000 (12:01 +0200)]
modules: readme files regenerated - nathelper ... [skip ci]

19 months agonathelper: docs - fix ending tags issues introduced with previous commit
Daniel-Constantin Mierla [Thu, 16 Apr 2020 09:58:23 +0000 (11:58 +0200)]
nathelper: docs - fix ending tags issues introduced with previous commit

19 months agomodules: readme files regenerated - nathelper ... [skip ci]
Kamailio Dev [Thu, 16 Apr 2020 08:01:22 +0000 (10:01 +0200)]
modules: readme files regenerated - nathelper ... [skip ci]

19 months agonathelper: docs for nat_addr_mode parameter
Daniel-Constantin Mierla [Thu, 16 Apr 2020 07:54:48 +0000 (09:54 +0200)]
nathelper: docs for nat_addr_mode parameter

19 months agonathelper: new parameter nat_addr_mode
Daniel-Constantin Mierla [Thu, 16 Apr 2020 07:40:42 +0000 (09:40 +0200)]
nathelper: new parameter nat_addr_mode

- if set to 0, default private net addresses are checked by
nat_uac_test()
- if set to 1, other reserved net addresses are checked by
nat_uac_test()
- default 1 (reserved addresses are considered not routable)
- related at GH #2277

19 months agonathelper: moved cfg file to examples folder
Daniel-Constantin Mierla [Thu, 16 Apr 2020 07:25:05 +0000 (09:25 +0200)]
nathelper: moved cfg file to examples folder

19 months agomodules: readme files regenerated - tm ... [skip ci]
Kamailio Dev [Wed, 15 Apr 2020 14:16:13 +0000 (16:16 +0200)]
modules: readme files regenerated - tm ... [skip ci]

19 months agotm: docs for exec_time_check parameter
Daniel-Constantin Mierla [Wed, 15 Apr 2020 13:59:52 +0000 (15:59 +0200)]
tm: docs for exec_time_check parameter

19 months agotm: new parameter exec_time_check for safety checks on lenghtly callbacks
Daniel-Constantin Mierla [Wed, 15 Apr 2020 13:52:17 +0000 (15:52 +0200)]
tm: new parameter exec_time_check for safety checks on lenghtly callbacks

- try to detect when failure callbacks execution take too long and do
safety check of the transaction
- default value is 5000 (milliseconds)
- set to 0 to disable this check

19 months agocore: receive - removed unnecessary time zone parameter for time difference
Daniel-Constantin Mierla [Wed, 15 Apr 2020 12:20:48 +0000 (14:20 +0200)]
core: receive - removed unnecessary time zone parameter for time difference

19 months agocore: data lump - updated comments and param names reflect better the purpose
Daniel-Constantin Mierla [Wed, 15 Apr 2020 11:33:07 +0000 (13:33 +0200)]
core: data lump - updated comments and param names reflect better the purpose

- coherent whitespacing

19 months agoapp_python: fix SR_KEMIP_DICT case in return_xval
Victor Seva [Wed, 15 Apr 2020 10:02:27 +0000 (12:02 +0200)]
app_python: fix SR_KEMIP_DICT case in return_xval

introduced at 82279ebd3a634911277e48523a56f93473baca2c

19 months agoapp_ruby: for now return NULL for array and map kemi results
Daniel-Constantin Mierla [Wed, 15 Apr 2020 09:53:17 +0000 (11:53 +0200)]
app_ruby: for now return NULL for array and map kemi results

- free result structure

19 months agoapp_sqlang: for now return NULL for array and map kemi results
Daniel-Constantin Mierla [Wed, 15 Apr 2020 09:50:58 +0000 (11:50 +0200)]
app_sqlang: for now return NULL for array and map kemi results

- free result structure

19 months agoapp_jsdt: for now return NULL for array and map kemi results
Daniel-Constantin Mierla [Wed, 15 Apr 2020 09:48:29 +0000 (11:48 +0200)]
app_jsdt: for now return NULL for array and map kemi results

- free result structure

19 months agoapp_python3: for now return none for array and map kemi results
Daniel-Constantin Mierla [Wed, 15 Apr 2020 09:45:50 +0000 (11:45 +0200)]
app_python3: for now return none for array and map kemi results

- free result structure

19 months agoapp_python: for now return none for array and map kemi results
Daniel-Constantin Mierla [Wed, 15 Apr 2020 09:44:44 +0000 (11:44 +0200)]
app_python: for now return none for array and map kemi results

- free result structure

19 months agopv: add KEMI functions pvx.xavp_get_keys and pvx.xavp_getd
Victor Seva [Mon, 13 Apr 2020 15:10:51 +0000 (17:10 +0200)]
pv: add KEMI functions pvx.xavp_get_keys and pvx.xavp_getd

19 months agoapp_lua: add support for ARRAY and DICT types
Victor Seva [Mon, 13 Apr 2020 15:10:01 +0000 (17:10 +0200)]
app_lua: add support for ARRAY and DICT types

19 months agocore: KEMI suport for ARRAY and DICT
Victor Seva [Mon, 13 Apr 2020 15:08:50 +0000 (17:08 +0200)]
core: KEMI suport for ARRAY and DICT

19 months agopresence_xml: use common prefix for global variables
Daniel-Constantin Mierla [Wed, 15 Apr 2020 07:19:56 +0000 (09:19 +0200)]
presence_xml: use common prefix for global variables

19 months agopresence_xml: use presence api via structure instead of declaring local function...
Daniel-Constantin Mierla [Tue, 14 Apr 2020 16:27:25 +0000 (18:27 +0200)]
presence_xml: use presence api via structure instead of declaring local function variables

- simpler overall and clearer when function is local in module or imported via
api, given that same prefix was used

19 months agortpengine: add `flags` field for every command
Richard Fuchs [Tue, 14 Apr 2020 17:15:21 +0000 (13:15 -0400)]
rtpengine: add `flags` field for every command

19 months agomodules: readme files regenerated - presence ... [skip ci]
Kamailio Dev [Tue, 14 Apr 2020 13:31:11 +0000 (15:31 +0200)]
modules: readme files regenerated - presence ... [skip ci]

19 months agopresence: docs for timer_mode parameter
Daniel-Constantin Mierla [Tue, 14 Apr 2020 13:25:14 +0000 (15:25 +0200)]
presence: docs for timer_mode parameter

19 months agopresence: timer_mode - new parameter to control what timer process to use
Daniel-Constantin Mierla [Tue, 14 Apr 2020 13:20:24 +0000 (15:20 +0200)]
presence: timer_mode - new parameter to control what timer process to use

- if set to 0, use the core main timer
- if set to 1, use the core secondary timer
- default 1 (timer tasks are for cleanup)

19 months agopresence_xml: pass pres uri as pointer for pres_update_watchers()
Daniel-Constantin Mierla [Tue, 14 Apr 2020 10:14:55 +0000 (12:14 +0200)]
presence_xml: pass pres uri as pointer for pres_update_watchers()

19 months agopresence: pass str parameters via pointer to couple of functions
Daniel-Constantin Mierla [Tue, 14 Apr 2020 10:12:08 +0000 (12:12 +0200)]
presence: pass str parameters via pointer to couple of functions

19 months agomodules: readme files regenerated - presence ... [skip ci]
Kamailio Dev [Tue, 14 Apr 2020 09:31:26 +0000 (11:31 +0200)]
modules: readme files regenerated - presence ... [skip ci]

19 months agopresence: docs - removed to_tag_pref parameter
Daniel-Constantin Mierla [Tue, 14 Apr 2020 09:23:59 +0000 (11:23 +0200)]
presence: docs - removed to_tag_pref parameter

19 months agopresence: removed unused module parameter to_tag_pref
Daniel-Constantin Mierla [Tue, 14 Apr 2020 09:22:59 +0000 (11:22 +0200)]
presence: removed unused module parameter to_tag_pref

- no longer used to set prefix for to-tag value

19 months agopresence: renamed global vars to add common module prefix
Daniel-Constantin Mierla [Tue, 14 Apr 2020 09:10:55 +0000 (11:10 +0200)]
presence: renamed global vars to add common module prefix

- better protection against name conflicts, as this module is used by
other modules and can run in library mode

19 months agopresence: removed unused global var log_buf
Daniel-Constantin Mierla [Tue, 14 Apr 2020 07:19:44 +0000 (09:19 +0200)]
presence: removed unused global var log_buf

19 months agomodules: readme files regenerated - tls ... [skip ci]
Kamailio Dev [Mon, 13 Apr 2020 18:01:08 +0000 (20:01 +0200)]
modules: readme files regenerated - tls ... [skip ci]

19 months agoMerge pull request #2283 from fredposner/master
Daniel-Constantin Mierla [Mon, 13 Apr 2020 17:49:46 +0000 (19:49 +0200)]
Merge pull request #2283 from fredposner/master

tls: fix typo in documentation

19 months agotls: fix typo in documentation 2283/head
fredposner [Mon, 13 Apr 2020 15:49:06 +0000 (11:49 -0400)]
tls: fix typo in documentation

- params.xml: replace "private" with "private_key"

19 months agomodules: readme files regenerated - secsipid ... [skip ci]
Kamailio Dev [Mon, 13 Apr 2020 15:46:11 +0000 (17:46 +0200)]
modules: readme files regenerated - secsipid ... [skip ci]

19 months agosecsipid: docs - removed extra parentheses in example
Daniel-Constantin Mierla [Mon, 13 Apr 2020 15:33:10 +0000 (17:33 +0200)]
secsipid: docs - removed extra parentheses in example

19 months agomodules: readme files regenerated - secsipid ... [skip ci]
Kamailio Dev [Mon, 13 Apr 2020 15:31:14 +0000 (17:31 +0200)]
modules: readme files regenerated - secsipid ... [skip ci]

19 months agosecsipid: reformatted long lines in examples to fit properly in README
Daniel-Constantin Mierla [Mon, 13 Apr 2020 15:29:33 +0000 (17:29 +0200)]
secsipid: reformatted long lines in examples to fit properly in README

19 months agosecsipid: added missing module file
Daniel-Constantin Mierla [Mon, 13 Apr 2020 15:26:52 +0000 (17:26 +0200)]
secsipid: added missing module file

19 months agopkg/kamailio: fixed python3 deps for RHEL 6
Sergey Safarov [Sun, 12 Apr 2020 16:03:52 +0000 (19:03 +0300)]
pkg/kamailio: fixed python3 deps for RHEL 6

19 months agomisc/examples/kemi: make reply code integer everywhere
Daniel-Constantin Mierla [Mon, 13 Apr 2020 10:14:52 +0000 (12:14 +0200)]
misc/examples/kemi: make reply code integer everywhere

19 months agoapp_python3: Makefile - suppress warning if --embed is not supported by python3-config
Daniel-Constantin Mierla [Sun, 12 Apr 2020 10:06:52 +0000 (12:06 +0200)]
app_python3: Makefile - suppress warning if --embed is not supported by python3-config

19 months agoMerge pull request #2282 from micmac1/py3-detect
Daniel-Constantin Mierla [Sun, 12 Apr 2020 09:56:40 +0000 (11:56 +0200)]
Merge pull request #2282 from micmac1/py3-detect

app_python3: update Python3 detection mechanism

19 months agoapp_python3: update Python3 detection mechanism 2282/head
Sebastian Kemper [Sun, 12 Apr 2020 07:37:48 +0000 (09:37 +0200)]
app_python3: update Python3 detection mechanism

This commit

  - removes the python calls whose output is never actually used.

  - changes the include discovery to use python3(.x)-config. This is
    preferable because it also works for cross-compiling. Calling
    python3(.x) directly will always provide host flags, which for
    cross-compiling is not feasible.

  - updates LDFLAGS discovery to also work with >= Python 3.8. To
    achieve this python3(.x)-config is first run with the argument
    "--embed". If this does not succeed (exit status 1)
    python3(.x)-config is run again without "--embed". This is the
    method suggested by Python upstream to provide backwards
    compatibility. See [1] for more details.

[1] https://docs.python.org/3/whatsnew/3.8.html

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
19 months agomodules: readme files regenerated - app_sqlang ... [skip ci]
Kamailio Dev [Sat, 11 Apr 2020 16:46:09 +0000 (18:46 +0200)]
modules: readme files regenerated - app_sqlang ... [skip ci]