For grouped loading of preferences, add support of the levels:
- domain
- profile
- subscriber
This allows to be consistent with the existing caller/callee preferences
loading (of the subscriber level) which takes other levels of inheritance
into account.
Change-Id: Ic3be3d21ff3eb67b6ce9dc4ef79a3b9df446a2ba
(cherry picked from commit 640143483e)
Add support of loading based on the name
of the preferences group (e.g. "Media Codec Transcoding Options")
For that to work extend functionality on levels of:
- root of the framework (NGCP)
- peers prefrences handling (NGCPPrefs)
- real preferences handling (NGCPRealPrefs)
Then in the kamailio script use it like:
lua_run("ngcp_caller_usr_load_group",
"$avp(s:caller_uuid)",
"Media Codec Transcoding Options")
This is on the same manner as done previously here: 4661e5c30658b5ec
Change-Id: If1dba6e90fb76308f323779afb0499c96f3c6f38
(cherry picked from commit cf94e2c5bb)
- Add pyproject.toml and tox.ini with consistent black and pycodestyle
settings.
- Run black on Debian trixie for consistent coding style.
Change-Id: Ia746fd346dac3b1dcf7ae1c9ad6d2c2f64e05f07
We need the latest ngcp-archive-keyring version, addressing the SHA-1
situation with our repository key. To get that, we refreshed our base
image sipwise-trixie, but need to ensure that we refresh all the docker
images building on top of it.
While at it, update the ENV syntax to avoid the deprecation warning.
Change-Id: I1234fb7df683fc956523a76be0401d669ce70129
Add support of loading based on the name
of the preferences group (e.g. "Media Codec Transcoding Options")
For that to work extend functionality on levels of:
- root of the framework (NGCP)
- peers prefrences handling (NGCPPeerPrefs)
- real preferences handling (NGCPRealPrefs)
Then in the kamailio script use it like:
lua_run("ngcp_caller_peer_load_group",
"$avp(s:peer_id)",
"Media Codec Transcoding Options")
Change-Id: I3b4bca6fc0959550366fc18268f7e355571385cb
- Update copyright years.
- Update Standards-Version to 4.7.2.
- Remove «Rules-Requires-Root: no» field, which is now the default.
- Remove «Priority: optional» field, which is now the default.
- Move dh lua sequencer from CLI --with option to Build-Depends.
- Wrap and sort fields.
- Fix coding style for maintainer scripts.
- Add spaces around operators in make variables.
Change-Id: I158705c3abf034fad10f955b73d74bafee8bad91
The fuction has the scope to get the element of a redis list
and return them back in form of a string.
Change-Id: I721dfb67e537d8e42d21e0b564b2a7dc63bb9254
output was changed to json but the regex for filtering list: values
was not updated
* migrate fixtures to json
Change-Id: Ifa18e87ef935dae8e8fab75095591646101c06c1
ngcp.utils is used in ngcp-prosody-modules and that is used in Lua5.4
lua-logging doesn't work with lua5.4
Change-Id: Id5e2f2afb7ab780d38b4b2ccdd388b0b5c2c4a27
The script ngcp-redis-helper has been improved and now
it provides an output in json format.
Additionally the command to call is not 'dump' bu 'dumps'.
Change-Id: Idd296fc13bf918d67983b2676f2c1e6a08291ebf
Line KSR.dbg(msg:format(callid, key), callid) is wrong, callid is part of the arguments
used to feed msg:format anot not KSR.dbg
Change-Id: Ibd96b53ef1edf9aa8b6037cf6b72f3bfc9c9a998
New function del_pair() is a copy of del() but it does not delete call counters
on db central. Useful if we want to clean pair db without changing db central.
Change-Id: I936bbb99ce9d5698273d8f72e0f032358bd341cd
run_tests.sh: don't use arguments to define output filename
We are getting errors in the new version of lua-unit
> lua5.1: /usr/share/lua/5.1/luaunit.lua:2205: With Junit, an output filename must be supplied with --name!
Change-Id: I0ebd585907f00c3e02f3cf794239c328b0ab202d
The following scenario disclouse an issue with "ngcp_clean" lua
function in case of callee peer:
- A is a local subscriber with Peer_auth set and
force_outbound_call_to_peer set;
- B is a local subscriber with Peer_auth set and
force_outbound_call_to_peer set;
A calls B.
We clean and load callee preferences of B.
Call is detected as forced to PSTN.
We clean and load peer preferences.
When we set outbound peer_auth* values, the $xavp(callee_prefs)
still contains values from B (instead of peering preferences).
When we clean preferences for the callee peer, we only
clean "callee_peer_prefs" and not "callee_prefs".
"callee_prefs" are clean only in case of 'usr' or 'dom'
preferences.
This patch try to fix this problem in order to fix this
scenario with outbound user authentication.
Change-Id: I76dfa6f9e074b3d83ac67bd818e59233ca50492c