[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user