| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?xml version="1.0" encoding="utf-8"?>
- <ivr>
- <flow Name="IvrSias" Type="normal" MatchedNum="." MatchedLine="|-1|" Concurrency="1">
- <cell Name="CELL_START" Pos="1" Next="2" Note="开始节点" />
- <cell Name="CELL_SQL" Pos="2" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=hykjCallcenter;Data Source=."
- SqlStr="INSERT INTO T_Call_CallRecords(CallId,CallNumber,CallType,CallState,DealType,BeginTime,IvrStartTime,IvrEndTime,EndTime,LongTime,IsDeal,OperateType,MYD) VALUES('%[CallID]','%[CallerID]',0,0,0,GETDATE(),GETDATE(),GETDATE(),GETDATE(),0,0,0,1)"
- IsSaved="no" SuccessPos="3" FailPos="3" Note="插入通话记录" />
- <cell Name="CELL_DEFINEVAR" Pos="3" Next="4" Note="定义变量节点">
- <DefVar VarType="1" VarName="AgentNo" VarVal="0" />
- <DefVar VarType="1" VarName="AgentExtNo" VarVal="0" />
- <DefVar VarType="1" VarName="KeyGroup" VarVal="0" /><!--坐席组按键值-->
- <DefVar VarType="1" VarName="GroupID" VarVal="0" /><!--通过坐席组按键值 获取相应的坐席组ID-->
- <DefVar VarType="1" VarName="Key" VarVal="0" />
- <DefVar VarType="1" VarName="BlackListVerify" VarVal="0" />
- <DefVar VarType="1" VarName="HolidayVerify" VarVal="0" />
- <DefVar VarType="1" VarName="times" VarVal="0" />
- </cell>
- <cell Name="CELL_SQL" Pos="4" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=hykjCallcenter;Data Source=."
- SqlStr="select COUNT(*) FROM T_Call_Blacklist where F_TelPhone='%[CallerID]'" IsSaved="yes" SuccessPos="5" FailPos="5" Note="读取黑名单" />
- <cell Name="CELL_RECORDSET" Pos="5" LPos="6" EPos="6" GPos="6" Note="取黑名单结果">
- <Map Var="BlackListVerify" />
- </cell>
- <cell Name="CELL_COMPARE" Pos="6" Data1Type="2" Data2Type="1" Data3Type="1" Data1="BlackListVerify" Data2="0" Data3="" VarType="1" CompareType="2" TruePos="7" FalsePos="8" Note="判断黑名单" />
- <cell Name="CELL_SQL" Pos="7" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=hykjCallcenter;Data Source=."
- SqlStr="update T_Call_CallRecords set CallState=1,DealType=1,IsDeal=1 where CallId='%[CallID]'" IsSaved="no" SuccessPos="24" FailPos="24" Note="黑名单通话记录" />
- <cell Name="CELL_SQL" Pos="8" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=hykjCallcenter;Data Source=."
- SqlStr="SELECT count(*) FROM T_Sys_WorkCalendar WHERE getdate() between F_DateId and DATEADD(dd,1,F_DateId) AND F_WorkingFlag=1 AND Convert(varchar(20),getdate(),108)>=Convert(varchar(20),'08:00',108) and Convert(varchar(20),getdate(),108)<=Convert(varchar(20),'20:00',108)"
- IsSaved="yes" SuccessPos="9" FailPos="12" Note="节假日查询" />
- <cell Name="CELL_RECORDSET" Pos="9" LPos="10" EPos="10" GPos="10" Note="取节假日结果">
- <Map Var="HolidayVerify" />
- </cell>
- <cell Name="CELL_COMPARE" Pos="10" Data1Type="2" Data2Type="1" Data3Type="1" Data1="HolidayVerify" Data2="0" Data3="" VarType="1" CompareType="2" TruePos="12" FalsePos="11" Note="判断节假日" />
- <cell Name="CELL_AUDIODTMF" Pos="11" PlayType="1" ContentType="1" Content="D:\midware\wav\_holiday.wav" TTSNumMode="1" TTSSpeed="50" TTSVolume="50"
- TTSEngine="0" StopWhenDtmf="1" MaxKeyCount="1" KeyPressInterval="3" FinishKey="#" KeyVar="keyw" SuccessPos="507" FailPos="24" HangupPos="25" Note="放节假日音" />
- <cell Name="CELL_AUDIODTMF" Pos="12" PlayType="2" ContentType="1" Content="D:\midware\wav\welcome.wav" TTSNumMode="1" TTSSpeed="50" TTSVolume="50"
- TTSEngine="0" StopWhenDtmf="1" MaxKeyCount="1" KeyPressInterval="3" FinishKey="#" KeyVar="" SuccessPos="603" FailPos="24" HangupPos="25" Note="放欢迎词" />
-
- <!--通过按键值 拨打相应的坐席组-->
- <cell Name="CELL_AUDIODTMF" Pos="601" PlayType="1" ContentType="1" Content="D:\midware\wav\group.wav" TTSNumMode="1"
- TTSSpeed="50" TTSVolume="50" TTSEngine="0" StopWhenDtmf="1" MaxKeyCount="1" KeyPressInterval="3" FinishKey="#" KeyVar="KeyGroup" SuccessPos="602" FailPos="24" HangupPos="25" Note="依据按键值拨打坐席组导航语音" />
-
- <cell Name="CELL_BRANCH" Pos="602" Var="KeyGroup" DefaultPos="601" Note="依据按键值拨打坐席组导航语音-比较按键值" >
- <Branch Pos="603" Value="1" /><!--1.物业组-->
- <Branch Pos="603" Value="2" /><!--2.网络组-->
- </cell>
- <cell Name="CELL_SQL" Pos="603" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=hykjCallcenter;Data Source=."
- SqlStr="SELECT top 1 F_DictionaryValueId FROM T_Sys_DictionaryValue where F_DictionaryFlag='ZXZ' and F_Sort='1'"
- IsSaved="yes" SuccessPos="604" FailPos="24" Note="获取坐席组ID" />
- <cell Name="CELL_RECORDSET" Pos="604" LPos="13" EPos="13" GPos="13" Note="获取坐席组ID结果">
- <Map Var="GroupID" />
- </cell>
-
- <cell Name="CELL_QUEUE" Pos="13" Strategy="1" VipLevelType="1" VipLevel="0" GroupType="2" Group="GroupID" AgentVar="AgentNo" ExtenVar="AgentExtNo"
- NoAgentPos="504" NoFreePos="504" SuccessPos="19" HangupPos="25" Note="排队节点" />
-
- <!--播报两次后,提示转微信报修,挂机-->
- <cell Name="CELL_CALCULATE" Pos="504" Data1Type="2" Data2Type="1" Data1="times" Data2="1" CalcuType="1" ResultType="1" ResultVar="times" Next="505" Note="计算播报几次" />
- <cell Name="CELL_COMPARE" Pos="505" Data1Type="2" Data2Type="1" Data3Type="1" Data1="times" Data2="3" Data3="" VarType="1" CompareType="3" TruePos="506" FalsePos="14" Note="比较播报几次" />
- <cell Name="CELL_AUDIODTMF" Pos="506" PlayType="1" ContentType="1" Content="D:\midware\wav\_turntowxly.wav" TTSNumMode="1" TTSSpeed="50" TTSVolume="50" TTSEngine="0" StopWhenDtmf="1" MaxKeyCount="1" KeyPressInterval="5" FinishKey="#" KeyVar="keyw" SuccessPos="507" FailPos="24" HangupPos="25" Note="播报次数达到,提示使用微信报修或*转留言" />
- <cell Name="CELL_BRANCH" Pos="507" Var="keyw" DefaultPos="506" Note="留言-分支节点">
- <Branch Value="*" Pos="20" />
- </cell>
- <!--播报两次后,提示转微信报修,挂机-->
- <cell Name="CELL_AUDIODTMF" Pos="14" PlayType="1" ContentType="1" Content="D:\midware\wav\BusyWait.wav" TTSNumMode="1" TTSSpeed="50" TTSVolume="50"
- TTSEngine="0" StopWhenDtmf="1" MaxKeyCount="1" KeyPressInterval="3" FinishKey="#" KeyVar="Key" SuccessPos="15" FailPos="24" HangupPos="25" Note="坐席全忙放音" />
- <cell Name="CELL_BRANCH" Pos="15" Var="Key" DefaultPos="504" Note="分支节点">
- <Branch Value="1" Pos="16" />
- <Branch Value="2" Pos="20" />
- </cell>
- <cell Name="CELL_CONTINUEQUEUE" Pos="16" Agent="AgentNo" Exten="AgentExtNo" Audio="D:\midware\wav\Queue.wav" Timeout="60" SuccessPos="19" HangupPos="25" TimeoutPos="504" Note="继续排队节点" />
- <cell Name="CELL_CANCELQUEUE" Pos="17" Reason="等烦了" Next="24" Note="放弃排队节点" />
- <cell Name="CELL_AUDIODTMF" Pos="18" PlayType="2" ContentType="2" Content=" `vs40 您好, `dig`vs30 %[AgentNo] `vs50 号话务员为您服务." TTSNumMode="1"
- TTSSpeed="50" TTSVolume="50" TTSEngine="0" StopWhenDtmf="1" MaxKeyCount="1" KeyPressInterval="2" FinishKey="#" KeyVar="" SuccessPos="19" FailPos="24" HangupPos="25" Note="播报工号" />
- <cell Name="CELL_TURNAGENT" Pos="19" Exten="AgentExtNo" SuccessPos="25" FailPos="17" HangupPos="17" Note="转座席节点">
- <BandData Var="CallID" />
- </cell>
- <cell Name="CELL_AUDIODTMF" Pos="20" PlayType="2" ContentType="1" Content="D:\midware\wav\BeginTape.wav" TTSNumMode="1" TTSSpeed="50" TTSVolume="50"
- TTSEngine="0" StopWhenDtmf="2" MaxKeyCount="1" KeyPressInterval="1" FinishKey="#" KeyVar="" SuccessPos="21" FailPos="24" HangupPos="25" Note="留言开始放音" />
- <cell Name="CELL_LEAVEWORD" Pos="21" Path="%[CallID]_%[CallerID]_%[StartTime].wav" FinishKey="#" Timeout="60" TimeoutPos="22" HangupPos="23" FinishPos="22" Note="留言节点" />
- <cell Name="CELL_AUDIODTMF" Pos="22" PlayType="2" ContentType="1" Content="D:\midware\wav\OverTape.wav" TTSNumMode="1" TTSSpeed="50" TTSVolume="50"
- TTSEngine="0" StopWhenDtmf="2" MaxKeyCount="1" KeyPressInterval="3" FinishKey="#" KeyVar="" SuccessPos="23" FailPos="23" HangupPos="23" Note="留言结束放音" />
- <cell Name="CELL_SQL" Pos="23" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=hykjCallcenter;Data Source=."
- SqlStr="INSERT INTO T_Call_LeaveRecord(F_Phone,F_LeaveTime,F_Status,F_RecFileUrl) VALUES('%[CallerID]',GETDATE(),0,'%[CallID]_%[CallerID]_%[StartTime].wav')" IsSaved="no"
- SuccessPos="24" FailPos="24" Note="留言入库" />
- <cell Name="CELL_HANGUP" Pos="24" Next="25" Note="挂机节点" />
- <cell Name="CELL_END" Pos="25" Note="结束节点" />
- </flow>
- </ivr>
|