Add a delay to the agent status.
This commit is contained in:
@@ -135,7 +135,7 @@
|
|||||||
end
|
end
|
||||||
|
|
||||||
--send a login or logout to mod_callcenter
|
--send a login or logout to mod_callcenter
|
||||||
cmd = "callcenter_config agent set status "..agent_uuid.." '"..status.."'";
|
cmd = "sched_api +5 none callcenter_config agent set status "..agent_uuid.." '"..status.."'";
|
||||||
freeswitch.consoleLog("notice", "[user status][login] "..cmd.."\n");
|
freeswitch.consoleLog("notice", "[user status][login] "..cmd.."\n");
|
||||||
result = api:executeString(cmd);
|
result = api:executeString(cmd);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user