Ensure the api object is set for is_local.
This commit is contained in:
parent
46ebdd2fce
commit
14fa909cd2
|
|
@ -32,6 +32,9 @@
|
|||
dofile(scripts_dir.."/resources/functions/database_handle.lua");
|
||||
dbh = database_handle('system');
|
||||
|
||||
--prepare the api object
|
||||
api = freeswitch.API();
|
||||
|
||||
--get the cache
|
||||
cache = trim(api:execute("memcache", "get app:dialplan:outbound:is_local:" .. destination_number .. "@" .. domain_name));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue