Andrew Pogrebennyk
ebeb5d4ca0
TT#34600 Fix warnings about redis counters in Call Forwarding scenarios
...
Change-Id: Ie01b24406ceca92b8eb378aac10a560b5eb28816
8 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
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
7a52fc6ad5
MT#12025 clean luacheck error
...
Change-Id: I247be4018189e393c1a8d7ee9fa7b455cc38f1a7
10 years ago
Victor Seva
c2cb6e6896
MT#10521 dlgcnt: add exists function
...
Change-Id: Ibac4bacbe4af66b44901eeb2cd8b74211a719ff4
11 years ago
Victor Seva
d41435695a
MT#10749 dlgcnt: add check_pair_dup option and is_in_set()
...
if true it will check for duplication of keys at the list of counters used
when calling set(). Added is_in_set() to check if a key is already there
Change-Id: Ib1da91dd3cdb13c537577d8e36c1a22920112ce0
11 years ago
Victor Seva
b59bf13125
MT#10601 dlgcnt: remove central counters when it reaches to 0
...
Change-Id: I67c4339b90fe5862b41b01ca4b3d5352a11e39b4
11 years ago
Victor Seva
1ff1867560
MT#8243 add tostring() to sr.log on possible nil results
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