|
|
@ -19,7 +19,15 @@ function ngcp_test()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function ngcp_clean(vtype)
|
|
|
|
function ngcp_clean(vtype)
|
|
|
|
|
|
|
|
if #loaded_keys > 0 then
|
|
|
|
|
|
|
|
sr.log('loaded_keys has values\n')
|
|
|
|
|
|
|
|
end
|
|
|
|
ngcp:clean(vtype)
|
|
|
|
ngcp:clean(vtype)
|
|
|
|
|
|
|
|
local keys = loaded_keys["caller"]
|
|
|
|
|
|
|
|
sr.log("info", string.format("caller-> real: %s peer: %s", table.tostring(keys.real), table.tostring(keys.peer)))
|
|
|
|
|
|
|
|
keys = loaded_keys["callee"]
|
|
|
|
|
|
|
|
sr.log("info", string.format("callee-> real: %s peer: %s", table.tostring(keys.real), table.tostring(keys.peer)))
|
|
|
|
|
|
|
|
loaded_keys = {}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function print_loaded_prefs(vtype)
|
|
|
|
function print_loaded_prefs(vtype)
|
|
|
@ -34,6 +42,14 @@ function print_loaded_prefs(vtype)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function ngcp_load_caller_peer(peer)
|
|
|
|
|
|
|
|
ngcp_load_caller(nil, nil, peer)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function ngcp_load_callee_peer(peer)
|
|
|
|
|
|
|
|
ngcp_load_callee(nil, nil, peer)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function ngcp_load_caller(uuid, domain, peer)
|
|
|
|
function ngcp_load_caller(uuid, domain, peer)
|
|
|
|
loaded_keys["caller"] = ngcp:caller_load(uuid, domain, peer)
|
|
|
|
loaded_keys["caller"] = ngcp:caller_load(uuid, domain, peer)
|
|
|
|
local keys = loaded_keys["caller"]
|
|
|
|
local keys = loaded_keys["caller"]
|
|
|
|