Ensure the api object is set for is_local.

This commit is contained in:
Mark Crane 2014-10-25 00:25:08 +00:00
parent 46ebdd2fce
commit 14fa909cd2
1 changed files with 3 additions and 0 deletions

View File

@ -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));