⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tlwl.xml

📁 这是我们公司用于企业管理的通讯专用语言.可用于电话呼叫.比如呼叫.挂机.响应.代接.是VXML语言.语音XML.
💻 XML
📖 第 1 页 / 共 5 页
字号:
              remark="对不起,收发传真失败。"
              dtmfruleid="1"
              playruleid="1"
              filename="demovoc/faxfail.vox"
              next="m444448"/>

    <catch id="m444448" remark="判断放音收码结果">
      <onevent event="OnHangon" goto="m9"/>
      <onevent event="OnPlayEnd" goto="m100"/>
      <onevent event="OnRecvDTMF" goto="m100"/>
      <onevent event="OnPlayError" goto="m9"/>
      <onevent event="OnErrDTMF" goto="m9"/>
    </catch>
<!-- ======================================== 四号键子菜单,货单货物查询 ========================================== -->
   
<callsubformex id="m4000" remark="调用查件模块子流程" subformid="SubForm02" next="m4001"/>
    <switch id="m4001" remark="判断输入">
      <case cond="var_flag=1" goto="m30004"/>
      <case cond="var_flag=2" goto="m100"/>
      <default goto="m9"/>
    </switch>		

<!--===========================五号键子菜单,下单,(1)自动转到第四组(2)自动受理子流程==============================-->
	    <playfile id="m5000"
              remark="人工下单请按0.自动下单请按1.返回主菜单请按#键."
              dtmfruleid="2"
              playruleid="2"
              filename="wl/voice/zdxd.voc"
              returndtmfs="dtmf5"
              next="m5001"/>  
		
    <catch id="m5001" remark="判断放音收码结果">
      <onevent event="OnHangon" goto="m9"/>
      <onevent event="OnPlayEnd" goto="m5000"/>
      <onevent event="OnRecvDTMF" goto="m5002"/>
      <onevent event="OnPlayError" goto="m9"/>
      <onevent event="OnErrDTMF" goto="m5000"/>
    </catch> 		
		
    <switch id="m5002" remark="判断输入">
      <case cond="dtmf5=0" goto="m30005"/>
      <case cond="dtmf5=1" goto="m5003"/>
      <case cond="dtmf5='#'" goto="m100"/>
      <default goto="m5000"/>
    </switch>		
		
		<!-- 自动下单子流程 -->
		
		<!--帐号密码认证-->
    <playfile id="m5003"
        remark="请您输入帐号并以#结束."
        dtmfruleid="3"
        playruleid="2"
        filename="wl/voice/zhrz.voc"
        returndtmfs="wlkhbh"
        next="m5004"/>
		
	  <catch id="m5004" remark="判断放音收码结果">
      <onevent event="OnHangon" goto="m9"/>
      <onevent event="OnPlayEnd" goto="m5005"/>
      <onevent event="OnRecvDTMF" goto="m5005"/>
      <onevent event="OnPlayError" goto="m5005"/>
      <onevent event="OnErrDTMF" goto="m5005"/>
    </catch>
    
    <playfile id="m5005"
        remark="请您输入密码并以#结束."
        dtmfruleid="3"
        playruleid="2"
        filename="wl/voice/mmrz.voc"
        returndtmfs="mm"
        next="m5006"/>
        
   <catch id="m5006" remark="判断放音收码结果">
      <onevent event="OnHangon" goto="m9"/>
      <onevent event="OnPlayEnd" goto="m5007"/>
      <onevent event="OnRecvDTMF" goto="m5007"/>
      <onevent event="OnPlayError" goto="m5007"/>
      <onevent event="OnErrDTMF" goto="m5007"/>
    </catch> 
		
    <dbquery id="m5007"
         remark="查询帐号和密码"
         sqls="select * from wl_Customer where wl_KHBH=wlkhbh and wl_MM='mm'"
         returnrecords="wlkhbhnum"
         next="m5008"/>
		
		<catch id="m5008" remark="判断数据库操作结果">
       <onevent event="OnHangon" goto="m9"/>
       <onevent event="OnDBSuccess" goto="m5009"/>
       <onevent event="OnDBFail" goto="m9"/>
    </catch>

    <switch id="m5009" remark="判断查询的记录数">
       <case cond="wlkhbhnum=1" goto="m5010"/>
       <default goto="m50090"/>
    </switch>
    
    <playfile id="m50090"
              remark="对不起,你输入的帐号与密码不符,请重新输入!"
              dtmfruleid="1"
              playruleid="1"
              returndtmfs="wlxdsb"
              filename="wl/voice/zhmmcw.voc"
              next="m50091"/>
    
    <catch id="m50091" remark="判断放音收码结果">
      <onevent event="OnHangon" goto="m9"/>
      <onevent event="OnPlayEnd" goto="m5003"/>
      <onevent event="OnRecvDTMF" goto="m5003"/>
      <onevent event="OnPlayError" goto="m5003"/>
      <onevent event="OnErrDTMF" goto="m5003"/>
    </catch>
  
  <!-- 下单失败处理 -->
    <playfile id="m5011"
              remark="下单失败,转人工下单请按0!返回主菜单请按#键!"
              dtmfruleid="2"
              playruleid="2"
              returndtmfs="wlxdsb"
              filename="wl/voice/xdsbcl.voc"
              next="m5012"/>
    
    <catch id="m5012" remark="判断放音收码结果">
      <onevent event="OnHangon" goto="m9"/>
      <onevent event="OnPlayEnd" goto="m5013"/>
      <onevent event="OnRecvDTMF" goto="m5013"/>
      <onevent event="OnPlayError" goto="m5013"/>
      <onevent event="OnErrDTMF" goto="m9"/>
    </catch>
    
    <switch id="m5013" remark="判断按键">
       <case cond="wlxdsb=0" goto="m30005"/>
       <case cond="wlxdsb='#'" goto="m100"/>
       <default goto="m5011"/>
    </switch>    
		
	<!-- 有此帐号的下单处理 -->
    <playfile id="m5010"
        remark="请留下您的联系电话以#结束."
        dtmfruleid="3"
        playruleid="2"
        filename="wl/voice/srdh.voc"
        returndtmfs="pr0"
        next="m50100"/>
		
	  <catch id="m50100" remark="判断放音收码结果">
      <onevent event="OnHangon" goto="m9"/>
      <onevent event="OnPlayEnd" goto="m50101"/>
      <onevent event="OnRecvDTMF" goto="m50101"/>
      <onevent event="OnPlayError" goto="m50101"/>
      <onevent event="OnErrDTMF" goto="m50101"/>
    </catch>

    <playfile id="m50101"
        remark="请留下您预计发货的时间,如7月20日10点,输入072010"
        dtmfruleid="4"
        playruleid="2"
        filename="wl/voice/srsj.voc"
        returndtmfs="pr1"
        next="m50102"/>
		
	  <catch id="m50102" remark="判断放音收码结果">
      <onevent event="OnHangon" goto="m9"/>
      <onevent event="OnPlayEnd" goto="m5005"/>
      <onevent event="OnRecvDTMF" goto="m5005"/>
      <onevent event="OnPlayError" goto="m5005"/>
      <onevent event="OnErrDTMF" goto="m5005"/>
    </catch>
    <assign id="m50103" name="pr0" expr="'电话自动下单 联系电话:'+pr0+'预计发货时间:'+pr1" next="m50104"/>

    <dbinsert id="m50104"
             remark="插入下单记录"
             sqls="insert into wl_Accept (wl_SerialNo,wl_ZJHM,wl_ZXH,wl_HWYGH,wl_KHBH,wl_SLLX,wl_HJSJ,wl_SLSJ,wl_SLNR,wl_CLQK) values ('myserialno','$S_CallerNo','0','0','wlkhbh','2-下单','$S_DateTime','$S_DateTime','pr0','1-未处理')"
             next="m5014"/> 
  
		<catch id="m5014" remark="判断数据库操作结果">
       <onevent event="OnDBSuccess" goto="m5015"/>
       <onevent event="OnDBFail" goto="m5011"/>
    </catch>
	
    <playfile id="m5015"
              remark="下单成功,我们尽快会与您联系,请挂机!"
              dtmfruleid="1"
              playruleid="1"
              filename="wl/voice/xdcg.voc"
              next="m5016"/>	
    <catch id="m5016" remark="判断放音收码结果">
      <onevent event="OnHangon" goto="m9"/>
      <onevent event="OnPlayEnd" goto="m9"/>
      <onevent event="OnRecvDTMF" goto="m9"/>
      <onevent event="OnPlayError" goto="m9"/>
      <onevent event="OnErrDTMF" goto="m9"/>
    </catch>
		
		<!-- =================================六号键子菜单,传真服务.===================================== -->
		
		<!-- 相对于用户来说是接收传真,相对于来电者说是发送传真 -->
    
    <playfile id="m6000"
              remark="请输入要传真的分机号码,按#键结束,给本公司传真请直接按#键。"
              dtmfruleid="3"
              playruleid="2"
              asrruleid="1"
              filename="wl/voice/czfw.voc"
              returndtmfs="myseatno"
              next="m6001"/>

    <catch id="m6001">
      <onevent event="OnHangon" goto="m9"/>
      <onevent event="OnPlayEnd" goto="m6002"/>
      <onevent event="OnRecvDTMF" goto="m6002"/>
      <onevent event="OnPlayError" goto="m9"/>
      <onevent event="OnErrDTMF" goto="m6002"/>
    </catch>
    
    <switch id="m6002" remark="判断输入">
      <case cond="myseatno='#'" goto="m6003"/>
      <default goto="m6004"/>
    </switch>
    
    <assign id="m6003" name="myseatno" expr="0000" next="m6005"/>
		<assign id="m6004" name="wlczwj" expr="'wl/fax/fax_'+$S_CallerNo+$S_DateTime+'.fax'" next="m6005"/>
    
    <recvfax id="m6005"
             remark="接收传真"
             filename="wlczwj"
             next="m6006"/>
    
    <catch id="m6006">
      <onevent event="OnHangon" goto="m9"/>
      <onevent event="OnrFaxend" goto="m6007"/>
      <onevent event="OnrFaxFail" goto="m6008"/>
    </catch>
    
    <playfile id="m6007"
              remark="发送传真成功。"
              dtmfruleid="1"
              playruleid="1"
              filename="wl/voice/czcg.voc"
              next="m6009"/>

    <playfile id="m6008"
              remark="对不起,发送传真失败。"
              dtmfruleid="1"
              playruleid="1"
              filename="wl/voice/czsb.voc"
              next="m99"/>

    <catch id="m6009" remark="判断放音收码结果">
      <onevent event="OnHangon" goto="m94"/>
      <onevent event="OnPlayEnd" goto="m94"/>
      <onevent event="OnRecvDTMF" goto="m94"/>
      <onevent event="OnPlayError" goto="m94"/>
      <onevent event="OnErrDTMF" goto="m94"/>
    </catch>

    
    <!--====================== 七号键子菜单,留言信箱 =========================-->
    
    <assign id="m7000" 
            remark="留言文件名"
            name="myrecdfile2" expr="'wl/recodfile/'+$S_CallerNo+'_'+$S_Month+_+$S_Day+_+$S_Hour+_+$S_Minute+_+$S_Second+'.voc'"
            next="m7001"/>

    <playfile id="m7001"
              remark="请您在“滴”的一声后留言,请留下您的联系电话以便我们尽快回复您,留言截止请按#!"
              dtmfruleid="1"
              playruleid="1"
              filename="wl/voice/lyxxwel.voc"
              next="m7002"/>

    <catch id="m7002" remark="判断放音收码结果">
      <onevent event="OnHangon" goto="m9"/>
      <onevent event="OnPlayEnd" goto="m7003"/>
      <onevent event="OnRecvDTMF" goto="m7003"/>
      <onevent event="OnPlayError" goto="m9"/>
      <onevent event="OnErrDTMF" goto="m7003"/>
    </catch>

    <recordfile id="m7003"
                remark="留言录音"
                filename="myrecdfile2"
                maxtime="60"
                termchar="#"
                format="pcma"
                writemode="0"
                next="m7004"/>

    <catch id="m7004" remark="判断录音结果">
      <onevent event="OnHangon" goto="m7010"/>
      <onevent event="OnRecordEnd" goto="m7005"/>
      <onevent event="OnRecordError" goto="m9"/>
    </catch>
    
    <playfiles id="m7005"
              remark="您的留言如下:xxxxx"
              dtmfruleid="1"
              playruleid="1"
              filename1="wl/voice/lyrx.voc"
              filename2="myrecdfile2"
              next="m7006"/>

    <catch id="m7006" remark="判断放音收码结果">
      <onevent event="OnHangon" goto="m7010"/>
      <onevent event="OnPlayEnd" goto="m7007"/>
      <onevent event="OnRecvDTMF" goto="m7007"/>
      <onevent event="OnPlayError" goto="m9"/>
      <onevent event="OnErrDTMF" goto="m7007"/>
    </catch>

    <playfile id="m7007"
              remark="重听请按1,重新录制请按2,确认请按3,取消并返回主菜单请按4"
              dtmfruleid="2"
              playruleid="2"
              filename="wl/voice/lyxz.voc"
              returndtmfs="dtmf"
              next="m7008"/>

    <catch id="m7008" remark="判断放音收码结果">
      <onevent event="OnHangon" goto="m7010"/>
      <onevent event="OnPlayEnd" goto="m9"/>
      <onevent event="OnRecvDTMF" goto="m7009"/>
      <onevent event="OnPlayError" goto="m9"/>
      <onevent event="OnErrDTMF" goto="m7009"/>
    </catch>
    
    <switch id="m7009">
      <case cond="dtmf=1" goto="m7005"/>
      <case cond="dtmf=2" goto="m7001"/>
      <case cond="dtmf=3" goto="m7020"/>
      <case cond="dtmf=4" goto="m7010"/>
      <default goto="m9"/>
    </switch>

    <!-- 删除留言 -->
    
    <deletefile id="m7010" filename="myrecdfile" next="m7011"/>
    
    <catch id="m7011">
      <onevent event="OnHangon" goto="m9"/>
      <onevent event="OnSuccess" goto="m100"/>
      <onevent event="OnFail" goto="m100"/>
    </catch>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -