Victor Seva
aea1c657ca
mock sr: xavp seconf key is a stack.
12 years ago
Victor Seva
c760b36d32
utils: add get/set methods. Can be called with [].
12 years ago
Victor Seva
6543b279a1
Copy all values not only the first one
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
Victor Seva
281c8e460e
fix ngcp test
12 years ago
Victor Seva
2399ca3e57
fix ngcp test
12 years ago
Victor Seva
0ba8d41f45
Add test case for test the value of force_outbound_calls_to_peer pref and caller_force_outbound_calls_to_peer
12 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
)
12 years ago
Victor Seva
bf5eb95c2d
Add no_nat_sipping used on the registrar
12 years ago
Victor Seva
9a3a80834a
Added __tostring() properly to ngcp, xavp and prefs
12 years ago
Victor Seva
73ed362e73
Added ngcp.log_var function
12 years ago
Victor Seva
6e76b4c466
Added avp.log function
12 years ago
Victor Seva
d3c665078a
Added ngcp.log_pref helper function
12 years ago
Victor Seva
ce2de78890
Refresh new app_lua xavp api
12 years ago
Victor Seva
3fb2dfda7a
callee_usr_load old vars.
12 years ago
Victor Seva
6d226d7d2d
caller_usr_load with old vars.
12 years ago
Victor Seva
cc2c08d527
callee_peer_load with old vars
12 years ago
Victor Seva
7a23bb3296
Added some pseudovariables to pv Mock. This is just the base part.
12 years ago
Victor Seva
dd89f9aa88
Added hdr mock
12 years ago
Victor Seva
f8b0d04c3e
Added test to check clean vars on caller_peer_clean
12 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.
12 years ago
Victor Seva
b81560a634
Move ?Fetch classes to tests_v files
12 years ago
Victor Seva
6e34e31655
Added helper function to set avp from xavp.
...
Added tests
12 years ago
Victor Seva
83deca8eff
Don't load any peer pref to real.
12 years ago
Victor Seva
4acb0d5131
Initializate dummy vars just in the creation.
...
On clear... create them.
12 years ago
Victor Seva
1a1d09fea9
Change load API.
...
Use {caller|callee}_{usr|peer}_load().
peer_load just copies peer prefs to real prefs.
12 years ago
Victor Seva
28e18d4eb1
Added group param for clean.
12 years ago
Victor Seva
ceae8b80f2
Added tests for call loders with empty values
12 years ago
Victor Seva
0cb72f63e7
Return empty table instead of error if load is called with empty params
12 years ago
Victor Seva
4101e6ada0
Test empty parameters on load.
12 years ago
Victor Seva
a3908d5456
No index
12 years ago
Victor Seva
0b671fa994
Fix clean. Test it.
12 years ago
Victor Seva
95f48ec09c
Fix copy&paste error
12 years ago
Victor Seva
422e50afeb
Fix clean. Test it.
12 years ago
Victor Seva
746e5bbe2f
Fix clean. Test it.
12 years ago
Victor Seva
c735d1692e
Fix clean. Test it.
12 years ago
Victor Seva
8557e523e2
Fix creation of dummy vars.
...
Do not delete dummy vars on clean.
12 years ago
Victor Seva
a84fc65879
Fix get unset without index/keys
12 years ago
Victor Seva
203374de7a
Fixed is_xavp index with no key. Added test to check it.
...
Distinguish between not existing and deleted on index.
12 years ago
Victor Seva
2d24a0700c
Added real prefs.
12 years ago
Victor Seva
d93e7d2a04
return keys when in load functions.
...
Don't use internal key for xavp
12 years ago
Victor Seva
877a7d0583
Fix behaviour on unset. Tested on real kamailio.
12 years ago
Victor Seva
db2d4a6aad
Added keys field to insert the keys used
12 years ago
Victor Seva
f4b5526d2c
Added table.add for insert non duplicate elements in a list
12 years ago
Victor Seva
06e87977fe
xavp can be access without key.
...
xavp inside xavps are _not_ inplemented. We don't need right now.
12 years ago
Victor Seva
c54272cca2
Remove unussed files
12 years ago
Victor Seva
78e6c3ad1f
Fix avp
12 years ago