Marco Capetta
324fc8d3e5
TT#68058 Improve ngcp-dlgcnt-check script in case of high traffic
...
The script collects all the callID from redis, then, one by one
it checks if callID exist in kamailo. At this time a call existing
in redis before may be destroyed in kamailio dlg.list. And so
script believe it's a stuck call.
Solution: collect CallID from REDIS and kamailio.dlg at the same
time, and compare afterwards.
Change-Id: I233a498e42bf5113b5b11ea688487e1840cd84a6
(cherry picked from commit 771ed33b07
)
6 years ago
Alexander Lutay
4e328d8779
TT#45377 Make 'lua-ngcp-kamailio-tap-test' happy (test_dlgcnt.py comment without space)
...
> message source/tests/test_dlgcnt.py:23:5: E265 block comment should start with '# '
> severity error
> code E265 block comment should start with '# '
> source #print(stdoutdata, file=sys.stdout)
> ^
> file source/tests/test_dlgcnt.py
Change-Id: I6cc40f6e8102cbf49995e22a18dfd905a1249480
(cherry picked from commit ce2d462b33
)
7 years ago
Juergen Fortin
6c9c45d123
TT#44453 fix 'ngcp-dlgcnt-check -r' problem when callID starting with minus(-)
...
Change-Id: I453c9bd1515ec24ae404f4b280a23a58cb23c296
(cherry picked from commit 2573825216
)
7 years ago
Guillem Jover
0c91fa268b
TT#36351 Use modern ngcp-check-active
...
Change-Id: If16bd7a2e393829c9a9b69d5fb1d4193fad608b2
8 years ago
Kirill Solomko
9489838a5f
TT#18850 add lua ngcp.api_client
...
* enables internal provisioning requests to the NGCP API
Change-Id: I84cff201d573d5a2ce65c56b4ceb8657aded4769
8 years ago
Victor Seva
751c1e7ef9
TT#16507 ngcp-dlgcnt-check: add missing host parameter
...
* on [CARRIER] ngcp-redis-helper default db is the central node
Change-Id: Ice8ab43a3a006798372a19ebf3dddbf313398374
8 years ago
Kirill Solomko
efab0961ea
TT#12593 add fax_prefs xavp load for caller callee
...
* xavp caller_fax_prefs and callee_fax_prefs is
added and automatically fetched as a part of
caller_usr_load and callee_usr_load
* fax_prefs are load all related subscriber's
NOT NULL fax preferences from
provisioning.voip_fax_preferences
Change-Id: I2dcedf30433b3d5b94efa9292437a4e7501588a3
9 years ago
Victor Seva
f6a1b5dcf5
TT#8678 dlglist: add unit tests
...
* fix is_in_set() thanks to them
Change-Id: I865a1fbd6892419a8eb3d1e071da28e98bca6a3e
9 years ago
Victor Seva
d80e64fd29
TT#7190 ngcp-dlgcnt-check
...
* fix default redis db when no config file
* fix call-id list from kamailio
* refesh Docker due to TT#5032
Change-Id: Ie8847b238e5a24b22baa48fc8c9b41e39397d84e
9 years ago
Victor Seva
a86f08672b
TT#7190 ngcp-dlgcnt-check
...
* wrap-and-sort -sat
* ngcp-dlg[cnt|list]-clean
both use /etc/kamailio/proxy/dlgcnt.lua.cfg
Change-Id: Ib89d75c389b9357c4754e59af4727ee3803009ce
9 years ago
Victor Seva
0162899f04
TT#6226 fix avp:all()
...
* on real environment sr.pv.get(t.id_all) returns a string not
a list
* add tests/use_cases.lua
Change-Id: I22e50faa3423f2069a8deb6be44e33af166cb72b
9 years ago
Victor Seva
b09db92994
TT#5034 fix avp:clean()
...
* fix pv mock to align kamailio behavior with pv_unset() for avps.
It removes only the first value not all, only when using '[*]'
pv_unset("$avp(name)") != pv_unset("$(avp(name)[*])")
pv_unset("$avp(name)") == pv_unset("$(avp(name)[0])")
pv_unset("$(avp(name)[1])") == pv_unset("$(avp(name)[0])")
Change-Id: I1aab2150d288da546b144388adb7b2f87ecfb069
9 years ago
Victor Seva
31dd6f2b81
TT#4657 avp: add del(value)
...
Change-Id: I41309ffff4f1a9335911f7d48f6295ea123c7d25
9 years ago
Victor Seva
bf995f354a
MT#21751 fix test fail introduced at 2d34ec796
...
> # Failure: Unexpected action call expire(table: 0x2247140,"431110001",7200), expected:
> call expire(table: 0x2247140,"9bcb88b6-541a-43da-8fdc-816f5557ff93",7200) => 1
> # Ran 3 tests in 0.001 seconds, 2 successes, 1 failures
* recentcalls rename set_by_uuid to set_by_key
Change-Id: I9bf3cc8f3174e0aafc7f243a5edf3134d0bc5afd
9 years ago
Kirill Solomko
2d34ec7969
MT#21751 recentcalls rename set_by_uuid to set_by_key
...
* rename set_by_uuid to set_by_key as key can be anything now
* save uuid as an additional parameter inside the key entry
Change-Id: Ic63e11855d96931b2676b991d012197c35d8ca2f
9 years ago
Kirill Solomko
c991cdd635
MT#18499 contract location select non 0.0.0.0/0 blocks first
...
Change-Id: I876fd3a1f9b32b74c3d6f553e76d4fae7748f9ed
10 years ago
Kirill Solomko
bdbe03b1b7
MT#18499 ngcp contract load by location ip (location_id)
...
Change-Id: I9554a687f6e4edfc06b746f85f19f7b708c8338c
10 years ago
Victor Seva
be4a312a52
MT#16079 NGCPLoop class
...
Support for detecting SIP loops for kamailio.
Count on redis the combination of $fu;$tu;$ru in a period
of time
Change-Id: I3a34e3086490a26bbd4a6db8e4efc86145bfb017
10 years ago
Victor Seva
34ad538775
MT#17841 ngcp/utils.lua: implement utils.string.explode_values()
...
utils.string.explode_values("123") => {'1','12','123'}
Change-Id: Ifa2260b6f53714d1fdae70485e3ccff3e0872a31
10 years ago
Andrew Pogrebennyk
da71d44227
MT#17709 remove only 1st occurrence of the key from the call-id list
...
The count argument influences the operation in the following ways:
* count > 0: Remove elements equal to value moving from head to tail.
* count < 0: Remove elements equal to value moving from tail to head.
* count = 0: Remove all elements equal to value.
Change-Id: Ia77b760fcada0027fe58a48f4b335d5c264e8917
10 years ago
Victor Seva
51a8be0b69
MT#12025 code refactoring with luacheck help
...
- don't leak globals, libs should return metatable
- fix requires
- remove unnecessary declarations of variables
- split mocks/sr
- remove unused tests
- fix tests
Change-Id: I2bda46410cf62c61c38ce1a9bf4b96f1a7a961bc
10 years ago
Victor Seva
b8832fd77a
MT#12937 fix tests after 9a28c0496c
...
Change-Id: Id5ca0f6c458bd2e3bd48fcea749977509a9a85fd
10 years ago
Victor Seva
15163bb6b3
MT#16773 dlgcnt: don't allow negative counters by default
...
- controled by allow_negative config
- add unit test for zero, and negative decr
Change-Id: I2396f1640759f1b9741f0e40ce9505306bd3d27d
10 years ago
Victor Seva
cf064365b6
MT#15389 $dlg_var support
...
Change-Id: I7408a639ee63e055c8030acdff9cf926c01fa2cb
10 years ago
Kirill Solomko
fd5d1e9c1d
MT#12707 - recentcalls: add source field
...
Change-Id: I061a292546e16974fde39e59f72e097be6bca2ee
10 years ago
Victor Seva
9a28c0496c
MT#12937 fix c1c423688e
order by id when selecting user preferences
...
sql result is inserted in a xavp so we need to do it
backwards in order to get the proper order
Change-Id: Ibd61b2fe723cbe2e6e889d8451544cb3d849f306
10 years ago
Kirill Solomko
2bfe436066
MT#12707 - add recentcalls lua (store in redis)
...
Change-Id: Ie1d900c491bbc27f8319d2b323d991d84c567862
10 years ago
Victor Seva
203896e16a
.luacheckrc files for known globals
...
Change-Id: I2a31f703a2dd8f25b42930b89e454e1bdc212d3d
10 years ago
Victor Seva
6b86ab977a
MT#12025 fix dlgcnt test
...
Change-Id: Ibfa6873c7fcd8d716925002238d5a0a139e0dc58
10 years ago
Victor Seva
9afb7095d7
MT#12025 move NGCPConfig to new config.lua file
...
Change-Id: I5ce296dd8cd77317b642e0b5988487bf8922d3b3
10 years ago
Victor Seva
c1c423688e
MT#12937 order by id when selecting user preferences
...
Change-Id: Id754cee5e208f570bd0f8f93ca485c6a6751b47d
10 years ago
Victor Seva
484aed28b0
fix xavp test
...
Change-Id: Ib6722a27423b091881e8199aad79c3e0eeeb5f60
10 years ago
Victor Seva
555326aa09
MT#10199 remove defaults from profile. Fix empty results on profile load
11 years ago
Victor Seva
78cb22c686
MT#10199 select tap output
11 years ago
Victor Seva
3cb2ea70a9
MT#10199 add prof_preferences
11 years ago
Victor Seva
6c341f966a
MT#10199 add table.merge function
11 years ago
Victor Seva
530a07f2af
MT#9067 fix tests
11 years ago
Victor Seva
e0d2b5b3b7
MT#9067 update tests
11 years ago
Victor Seva
6f8b67f4d5
MT#9067 use one MySQL connection only on NGCP
...
Don't close the connection, just the cursor.
We may need a ping function to test the connection.
https://github.com/keplerproject/luasql/pull/12
11 years ago
Victor Seva
3a60d1b574
MT#8243 add NGCPDlgCounters class.
...
TODO: tests doesn't play nice with redis mocks. Not activated.
11 years ago
Victor Seva
20222e73cc
MT#7679 fix table.shift()
11 years ago
Victor Seva
c4ab43e6b1
MT#7679 utils: add table.shift()
11 years ago
Victor Seva
2667ef50a6
MT#7679 Fix xavp:clean(key)
11 years ago
Victor Seva
abf574241d
MT#7679 fix mock, allow [*] at kindx
11 years ago
Victor Seva
60e271a3cc
MT#7679 xavp:get() function
11 years ago
Victor Seva
16cc950d5c
MT#7679 fix MockSR. default behaviour of sr.xavp.get is get all values.
11 years ago
Victor Seva
e607914109
MT#7679 xavp: allow clean only a key
11 years ago
Victor Seva
65dba89ade
MT#7679 avp: allow tables values in set. utils: add table.suffle() function.
11 years ago
Andreas Granig
173a85a512
MT#7471 Another test fix.
11 years ago
Andreas Granig
2aafd9de0f
MT#7471 Try to fix mysterious test.
11 years ago