Victor Seva
6543b279a1
Copy all values not only the first one
12 years ago
Victor Seva
12a5e3c6fb
replace uuid parameter for domain. This was confusing.
12 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
Andreas Granig
6888a74fcf
Migrated all AVPs to XAVPs.
12 years ago
Andreas Granig
859f8756e2
Migrate account_id to xavp.
12 years ago
Andrew Pogrebennyk
1c76d7d1a5
Drop avp prefs that have been replaced with xavp.
12 years ago
Victor Seva
cd09baef02
Fix forgotten caller_sound_set Thanks Andrew
13 years ago
Victor Seva
ef435a20a8
Fix log_var function.
...
Add _str_var and __tostring functions to be able to test the results.
(cherry picked from commit 1fdf196a30
)
13 years ago
Victor Seva
bf5eb95c2d
Add no_nat_sipping used on the registrar
13 years ago
Victor Seva
08f1c3d90d
set xavp log to dbg
13 years ago
Victor Seva
9a3a80834a
Added __tostring() properly to ngcp, xavp and prefs
13 years ago
Victor Seva
6ed63ee7c7
Fix loading lua-sql-mysql on lua5.1 on squeeze
13 years ago
Victor Seva
9e1f52f495
Fix load lua-sql-mysql driver on wheezy. See ( #677739 )
...
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677739
13 years ago
Victor Seva
73ed362e73
Added ngcp.log_var function
13 years ago
Victor Seva
6e76b4c466
Added avp.log function
13 years ago
Victor Seva
d3c665078a
Added ngcp.log_pref helper function
13 years ago
Victor Seva
ce2de78890
Refresh new app_lua xavp api
13 years ago
Victor Seva
f7fc117dfa
Fix indent
13 years ago
Victor Seva
8de567f413
Changes from master. PBX cloud
13 years ago
Victor Seva
3fb2dfda7a
callee_usr_load old vars.
13 years ago
Victor Seva
6d226d7d2d
caller_usr_load with old vars.
13 years ago
Victor Seva
cc2c08d527
callee_peer_load with old vars
13 years ago
Victor Seva
c76e9aa378
NGCPConfig: Added default
...
- use default to keep the vars/prefs defaults
NGCP: Added avp vars. Create the avp vars on load. Clean avp vars.
13 years ago
Victor Seva
6e34e31655
Added helper function to set avp from xavp.
...
Added tests
13 years ago
Victor Seva
83deca8eff
Don't load any peer pref to real.
13 years ago
Victor Seva
4acb0d5131
Initializate dummy vars just in the creation.
...
On clear... create them.
13 years ago
Victor Seva
1a1d09fea9
Change load API.
...
Use {caller|callee}_{usr|peer}_load().
peer_load just copies peer prefs to real prefs.
13 years ago
Victor Seva
28e18d4eb1
Added group param for clean.
13 years ago
Victor Seva
0cb72f63e7
Return empty table instead of error if load is called with empty params
13 years ago
Victor Seva
bed951c459
Return empty table instead of nil in peer load with empty paramater
13 years ago
Victor Seva
e50b421690
Fix Typo
13 years ago
Victor Seva
4101e6ada0
Test empty parameters on load.
13 years ago
Victor Seva
ae723023db
Test just test_kamailio.
...
Print info loaded.
13 years ago
Victor Seva
a3908d5456
No index
13 years ago
Victor Seva
0b671fa994
Fix clean. Test it.
13 years ago
Victor Seva
8c747edaec
Call NGCPXAvp:new from load even if result is empty
13 years ago
Victor Seva
50a37883b8
less dbg
13 years ago
Victor Seva
95f48ec09c
Fix copy&paste error
13 years ago
Victor Seva
422e50afeb
Fix clean. Test it.
13 years ago
Victor Seva
746e5bbe2f
Fix clean. Test it.
13 years ago
Victor Seva
c735d1692e
Fix clean. Test it.
13 years ago
Victor Seva
8557e523e2
Fix creation of dummy vars.
...
Do not delete dummy vars on clean.
13 years ago
Victor Seva
2d24a0700c
Added real prefs.
13 years ago
Victor Seva
0921da3182
Do not create dummy vars if they already exists
13 years ago
Victor Seva
d93e7d2a04
return keys when in load functions.
...
Don't use internal key for xavp
13 years ago
Victor Seva
f0e78c415e
Created init function.
...
Fix clean, just clean its level
13 years ago
Victor Seva
db2d4a6aad
Added keys field to insert the keys used
13 years ago
Victor Seva
f4b5526d2c
Added table.add for insert non duplicate elements in a list
13 years ago
Victor Seva
c54272cca2
Remove unussed files
13 years ago
Victor Seva
78e6c3ad1f
Fix avp
13 years ago
Victor Seva
4fb417a5f6
Use new API.
...
Fix test.
13 years ago
Victor Seva
52e55ef7a0
Use new API.
...
Fix tests.
13 years ago
Victor Seva
73f44636e9
Using new API.
...
Fix dp tests.
13 years ago
Victor Seva
a5f9d77b65
Mock sr reworked.
...
NGCPXAvp just for caller/callee
13 years ago
Victor Seva
d10eb3a14b
Fixed load preferences from DDBB.
...
Added logging.
Fixed test
13 years ago
Victor Seva
b99b5803c3
Fetch is wrong. WIP
13 years ago
Victor Seva
a93fc95c37
Added log for NGCPDomainPrefs, NGCP
...
Fix lemock use on test for NGCPDomainPrefs
13 years ago
Victor Seva
e493b3359f
Fix creation of dummy xavp key [0]
13 years ago
Victor Seva
0cde0e7e15
Added log for sr.pv
...
Fix set id with [*]
13 years ago
Victor Seva
8bdb517d84
Add __tostring to Stack
13 years ago
Victor Seva
7208736c32
Fixed getDBConnection. Added test.
13 years ago
Victor Seva
5daf6d3aeb
move utils to ngcp dir
13 years ago
Victor Seva
f05b29144e
Move vars to tests_v dir
...
fixed NGCPAvp
Updated vars require
13 years ago
Victor Seva
86ff015f82
using xavps.
...
using lemock the right way
13 years ago
Victor Seva
01f9289910
Added NGCPAvp class. WIP
13 years ago
Victor Seva
9b07ff8e33
- Added kam_utils test
...
- Updated kam_utils
- Added more tests to ngcp
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