提交 7f5d78c1 authored 作者: System Administrator's avatar System Administrator

Add group_confirm to my FIFO login/logout example

上级 530b865f
...@@ -8,9 +8,11 @@ ...@@ -8,9 +8,11 @@
These are "on hook" agents, i.e. the phone rings when a call comes in; agents don't sit and wait on the phone. These are "on hook" agents, i.e. the phone rings when a call comes in; agents don't sit and wait on the phone.
Dial 6* plus the FIFO number to log in. Example: 61* to log into "FIFO1" Dial 6* plus the FIFO number to log in. Example: 61* to log into "FIFO1"
Dial 6# plus the FIFO number to log out. Example: 61# to log out of "FIFO1" Dial 6# plus the FIFO number to log out. Example: 61# to log out of "FIFO1"
NOTE: I added 6** as an alternative to logging out b/c some phone dialplans don't like 6#... NOTE: I added 6** as an alternative to logging out b/c some phone dialplans don't like 6#...
By default there are ten slots. You can mix, match, add, etc. as you see fit. By default there are ten slots. You can mix, match, add, etc. as you see fit.
NOTE: There isn't any error checking, so the the system will say that the user is logged in or out no matter what! NOTE: There isn't any error checking, so the the system will say that the user is logged in or out no matter what!
NOTE: I have added an option to use group_confirm so that your agents have to press 1 to accept. This is useful in the case where an agent is a cell phone or other phone that has voicemail.
Send a caller to the queue by transferring to 610[0-9]; 6101 corresponds to FIFO1, 6102 to FIFO2, etc. Send a caller to the queue by transferring to 610[0-9]; 6101 corresponds to FIFO1, 6102 to FIFO2, etc.
...@@ -24,6 +26,10 @@ ...@@ -24,6 +26,10 @@
<condition field="destination_number" expression="^6\*(\d)"> <condition field="destination_number" expression="^6\*(\d)">
<action application="answer"/> <action application="answer"/>
<action application="set" data="result=${fifo_member(add FIFO$1 {fifo_member_wait=nowait}user/${user_name} )"/> <action application="set" data="result=${fifo_member(add FIFO$1 {fifo_member_wait=nowait}user/${user_name} )"/>
<!-- use the following line instead if you want to have group_confirm for the agent
<action application="set" data="result=${fifo_member(add FIFO$1 {fifo_member_wait=nowait,group_confirm_file=ivr/ivr-accept_reject_voicemail.wav,group_confirm_key=1}user/${user_name} )"/>
-->
<action application="log" data="INFO Add FIFO agent result: ${result}"/> <action application="log" data="INFO Add FIFO agent result: ${result}"/>
<action application="log" data="INFO User Login: FIFO$1 User: ${user_name}"/> <action application="log" data="INFO User Login: FIFO$1 User: ${user_name}"/>
<!-- No error checking, just assuming login went well... --> <!-- No error checking, just assuming login went well... -->
...@@ -36,6 +42,10 @@ ...@@ -36,6 +42,10 @@
<condition field="destination_number" expression="^6#|6\*\*(\d)"> <condition field="destination_number" expression="^6#|6\*\*(\d)">
<action application="answer"/> <action application="answer"/>
<action application="set" data="result=${fifo_member(del FIFO$1 {fifo_member_wait=nowait}user/${user_name})}"/> <action application="set" data="result=${fifo_member(del FIFO$1 {fifo_member_wait=nowait}user/${user_name})}"/>
<!-- Use this line instead if you are using group_group confirm
<action application="set" data="result=${fifo_member(del FIFO$1 {fifo_member_wait=nowait,group_confirm_file=ivr/ivr-accept_reject_voicemail.wav,group_confirm_key=1}user/${user_name} )"/>
-->
<action application="log" data="INFO Del FIFO agent result: ${result}"/> <action application="log" data="INFO Del FIFO agent result: ${result}"/>
<action application="log" data="INFO User Logout: FIFO$1 User: ${user_name}"/> <action application="log" data="INFO User Logout: FIFO$1 User: ${user_name}"/>
<!-- No error checking, just assuming logout went well... --> <!-- No error checking, just assuming logout went well... -->
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论