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
e252a72278
I don't know why I'm saying fix. Defaults!!
12 years ago
Victor Seva
97e9453a69
Added copyright in all lua. Removed unused script.
12 years ago
Victor Seva
e6439d5a18
Fixing default prefs.
...
default dict has only peer, dom and usr keys.
You should check for a default on real level always. It is always
created even if you load only dom prefs.
12 years ago
Victor Seva
0abf856f7d
Remove creation of avps. Fix default creation.
12 years ago
Victor Seva
9a3a80834a
Added __tostring() properly to ngcp, xavp and prefs
13 years ago
Victor Seva
4acb0d5131
Initializate dummy vars just in the creation.
...
On clear... create them.
13 years ago
Victor Seva
bed951c459
Return empty table instead of nil in peer load with empty paramater
13 years ago
Victor Seva
4101e6ada0
Test empty parameters on load.
13 years ago
Victor Seva
a3908d5456
No index
13 years ago
Victor Seva
8c747edaec
Call NGCPXAvp:new from load even if result is empty
13 years ago
Victor Seva
95f48ec09c
Fix copy&paste error
13 years ago
Victor Seva
746e5bbe2f
Fix clean. Test it.
13 years ago
Victor Seva
2d24a0700c
Added real prefs.
13 years ago
Victor Seva
52e55ef7a0
Use new API.
...
Fix tests.
13 years ago
Victor Seva
d10eb3a14b
Fixed load preferences from DDBB.
...
Added logging.
Fixed test
13 years ago
Victor Seva
86ff015f82
using xavps.
...
using lemock the right way
13 years ago
Victor Seva
4f4f571709
- Added lemock library ( Debian package needed )
...
- Added Mock for kamailio sr module
- Added NGCP, NGCPPrefs, NGCPConfig, NGCPPeerPrefs and NGCPDomainPref classes.
This is just a playground to figure out how can we organize the code. WIP
13 years ago