如何更正具有IVR XML脚本的代码。

时间:2014-03-20 11:10:49

标签: xml ivr

我想为我办公室的ippbx制作一个ivr,包括菜单和子菜单以及呼叫路由。请有人帮我纠正这段代码。我很困惑,无法理解如何纠正它。

<include>
<configuration name="ivr.conf" description="IVR menus">
<menus>
  <menu name="TestingIVR"
     greet-long="say: Welcome to Coral Telecom Limited. We are a leading company in            Telecommunication Services and IP Phone Service Providers"
      greet-short="say: Connecting with us means connecting with world. Hope you enjoyed the   services provided by us."
      invalid-sound="say: The choice you have made is invalid. Please make a right choice and try again."
      exit-sound="say: Thanks for calling us. Hope you will find satisfactory solution from our experts. Good Bye"
      confirm-macro=""
      confirm-key=""
      tts-engine="cepstral"
      tts-voice="david"
      confirm-attempts="3"
      timeout="10000"
      inter-digit-timeout="2000"
      max-failures="3"
      max-timeouts="3"
      digit-len="4">

 <entry action="menu-exec-app" digits="1" param="execute_extension limit:'hash ivr  in',set:acc_code=cucu,playback:say: Thank you for calling in my office and do not call ever in after hours,system:/home/george/alex/test.sh,bridge:sofia/$${domain}/101@192.168.1.240,hangup inline"/>

      <entry action="menu-exec-app" digits="1" param="bridge sofia/$${domain}/830@192.168.1.240"/>

      <entry action="menu-sub" digits="2" param="demo_ivr_submenu"/>  <!-- demo sub menu -->
      <entry action="menu-top" digits="3"/>    <!-- Repeat this menu -->
      </menu>


      <menu name="demo_ivr_submenu"
      greet-long="say: Welcome to Coral Telecom Limited. We are a leading company in    Telecommunication Services and IP Phone Service Providers"
      greet-short="say: Connecting with us means connecting with world. Hope you enjoyed the services provided by us."
      invalid-sound="say: The choice you have made is invalid. Please make a right choice and try again."
      exit-sound="say: Thanks for calling us. Hope you will find satisfactory solution from our experts. Good Bye"
      timeout="15000"
      max-failures="3">
      <entry action="menu-top" digits="*"/>
      </menu>
  </menus>
      </configuration>
      </include>

1 个答案:

答案 0 :(得分:0)

您还需要</menus>来声明<menus> 把它放在你的最后</menu>之后,文件应该像这样结束:

</menu>
</menus>
</configuration>
</include>