Update index.lua

This commit is contained in:
FusionPBX 2018-03-31 13:05:21 -06:00 committed by GitHub
parent fb22628d73
commit 92d4e8e906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -86,6 +86,7 @@
dbh:query(sql, params, function(row)
--set the variables
agent_uuid = row.call_center_agent_uuid;
agent_name = row.agent_name;
agent_id = row.agent_id;
user_uuid = row.user_uuid;
@ -135,7 +136,7 @@
dbh:query(sql, params);
--send a login or logout to mod_callcenter
cmd = "callcenter_config agent set status "..agent_name.."@"..domain_name.." '"..status.."'";
cmd = "callcenter_config agent set status "..agent_uuid.." '"..status.."'";
freeswitch.consoleLog("notice", "[user status][login] "..cmd.."\n");
result = api:executeString(cmd);