Hello Everyone,

I am trying to create an IVR with menu and sub menus, but getting following error when I make the call,
2012-07-17 11:05:37.755034 [ERR] switch_ivr_menu.c:870 Unable to build xml menu
2012-07-17 11:05:37.755034 [ERR] switch_ivr_menu.c:870 Unable to build xml menu
2012-07-17 11:05:37.755034 [ERR] mod_dptools.c:1774 Unable to create menu

I am new to this, so there might be little or a big error.

My XML contents in ...conf/ivr_menus is

<include>
        <menu na me="ps"
                greet-long="phrase:ps_main"
                greet-short="phrase:ps_short"
                exit-sound="ivr/good_bye.wav"
                invalid-sound="ivr/ivr-not_available.wav"
                tts-engine="flite"
                tts-voice="rms"
                timeout="3000"
                max-failures="2"
      ;           phrase_lang="en"
                digit-len="1">

                <entry action="menu-sub" digits="1" param="ps1"/>
                <entry action="menu-top" digits="9"/>
        </menu>
        <menu name="ps1"
                greet-long="phrase:ps1_main"
                greet-short="phrase:ps1_short"
                exit-sound="ivr/good_bye.wav"
  ;               invalid-sound="ivr/ivr-not_available.wav"
                timeout="3000"
                max-failure="3">

                <entry action="menu-top" digit="*"/>
        </menu>
</include>

and in .../en/demo is

<include>
  <macro name="ps_main" pause="100">
    <input pattern="(.*)">
      <match>
        <action function="play-file" data="ivr/1_welcome_to_SGRH.wav"/>
        <ac tion function="play-file" data="silence_stream://500"/>
        <action function="play-file" data="ivr/2_Press1_for_Eng_Hindi_k_liye_2_Dabayen.wav"/>
      </match>
    </input>
  </macro>

  <macro name="ps_short" pause="100">
    <input pattern="(.*)">
        <match>
                <action function="play-file" data="silence_stream://1000"/>
                <action function="play-file" data="ivr/no_input_recd_try_again.wav"/>
        </match>
    </input>
  </macro>

  <macro name="ps1_main" pause="100">
&n bsp;   <input pattern="(.*)">
      <match>
        <action function="play-file" data="ivr/3_for_Appointment_1_for_Admission_2_for_Lab_reports_3.wav"/>
        <action function="play-file" data="ivr/4_Press_1_Lab_reports_2_for_Histopatho.wav"/>
      </match>
    </input>
  </macro>

  <macro name="ps1_short" pause="100">
    <input pattern="(.*)">
        <match>
                <action function="play-file" data="silence_stream://1000"/>
                <action function="play-file" data="ivr/eng_no_input_try_again.wav"/> ;
        </match>
    </input>
  </macro>
</include>

Thanks everyone, thanks for this support forum !!!

--
Regards,
Piyush Sharma.