[call_center] Use agent_name or agent_id (#6520)

When logging into call center from phone, index.lua
only supports identity with agent_id.  We allow passing
agent_name as well to assist with BLF configuration.
This commit is contained in:
yois615
2022-12-31 11:44:37 -07:00
committed by GitHub
parent 2a0616b050
commit 967445ab34
2 changed files with 9 additions and 3 deletions
@@ -7,6 +7,7 @@
</condition>
<condition field="destination_number" expression="^(?:agent\+|\*22)(.+)$">
<action application="set" data="agent_id=$1" enabled="true"/>
<action application="set" data="agent_name=$1" enabled="false"/>
<action application="set" data="agent_authorized=true" enabled="false"/>
<action application="lua" data="app.lua agent_status" enabled="true"/>
</condition>