[Spce-user] *calls exceeded for*

Andrew Pogrebennyk apogrebennyk at sipwise.com
Wed Nov 5 07:55:08 EST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

On 10/31/2014 01:32 PM, Marc Storck wrote:
> I’m using mr3.5.1.
> 
> I have used ' ngcp-kamctl proxy fifo dlg_list’ to see the active
> calls. Yet in my case there was no active call for my test user and
> outgoing calls were still rejected with maximum calls exceeded. I
> will try to isolate the issue a bit further, but I would appreciate
> any hints where to look :-D

AFAIK the ngcp-kamctl proxy fifo dlg_list doesn't work because the
counters are now in Redis.

Try the following:
# redis-cli -n 3 keys\*
this will return the list of all keys (which is [total]account[out]
followed by the customer id or [total]user[out] followed by subscriber
uuid).

Then you check the counter value for a given key that should be zero
or nil if you have no active calls:
# redis-cli -n 3 get account:39
"0"
# redis-cli -n 3 get totalaccount:39
(nil)
# redis-cli -n 3 get accountout:39
(nil)
# redis-cli -n 3 get totalaccountout:39
(nil)

To dump all keys use may something like: this (perhaps there is is an
easier way)
# for i in $(redis-cli -n 3 --raw keys \*); do echo $i && redis-cli -n
3 --raw get $i; done

There is a separate DB where we store the data associated with the
call-id, useful if you are troubleshooting why the calls don't clear
properly (?). Here is an example:

redis-cli -n 4 KEYS "*"
1) "21367DF1 at adc375f5"

redis-cli -n 4 lrange "21367DF1 at adc375f5" 0 -1
1) "account:125"
2) "user:7f86a677-3755-4da5-bc2b-481da743d840"
3) "peer:1"
4) "total_172.17.64.144"
5) "total"

If you want to clear all data eventually you need to use something like:

/etc/init.d/redis-server stop
rm -rf /var/lib/redis/*
/etc/init.d/redis-server start


Hope this helps.

Andrew
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iF4EAREIAAYFAlRaHiYACgkQdegZtfziaKPJowD/WAD8zYKZGqudUlNxOS1jUqxa
f6BPS41OwIvML+nNkOwA/3HRbS8lORa/q0PlVlhuw12CelKp/4q3oCNrZFFyDoDk
=d1F9
-----END PGP SIGNATURE-----



More information about the Spce-user mailing list