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
Added a new list element named "joined", which store a value
of 1 when the app register after the push in order to record
that the app has joined. Otherwise it contain a value of 0.
lua-redis >= 2.0.5~git20141117.880dda9-7~ is needed
Change-Id: Ie8121eaa5c1ce4a82b1c086b4b34c25213e8d4e8
We were using a mix of .new() and :new() and
that lead us to errors when calling new with parameters
Just be consistent and choose one
Change-Id: Icc2078efb377b80942b2fb518db52df339ecda6a
Unify redis interaction in a class
* allow passing partial config via new()
config will be merged using defined defaults so
missing keys will be appended using values from defaults
Change-Id: I486637e99e0e36fbe1f5a06c703c6b7d2fa77d77
The new function behaves like NGCPDlgCounters:is_in_set but
it uses a regex match to see if the key is contained in the list
Additionally added the helper function 'contains_regex' in the
utils.lua
* ignore vscode files
Change-Id: Iee89f5298ced10c2a9cdf7ebc19a4c0945b8cc9d