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 name="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"/> <action 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"> <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.
hi, On Jul 17, 2012, at 7:39 AM, Piyush Sharma wrote:
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"
-------^^ This is strange: ";" is not a valid sign in xml for comments. All comments must be between "<!--" and "-->". Also, you cannot put a comment inside a tag. Try to remove it and test again. Best Regards, -vma .
Thanks for the response, I don't know how semicolon came in the email, but I have no semicolon in my XML, and please avoid visible smiles as well. <include> <menu na me="ps" greet-long="phrase s_main" greet-short="phrase s_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 s1_main" greet-short="phrase s1_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> ----- Original Message ----- From: "Vallimamod ABDULLAH" <vallimamod.abdullah@imtelecom.fr> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Tuesday, July 17, 2012 4:24:42 PM Subject: Re: [Freeswitch-users] Need help in IVR hi, On Jul 17, 2012, at 7:39 AM, Piyush Sharma wrote:
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"
-------^^ This is strange: ";" is not a valid sign in xml for comments. All comments must be between "<!--" and "-->". Also, you cannot put a comment inside a tag. Try to remove it and test again. Best Regards, -vma .
how about this line? <menu name="ps" On Tue, Jul 17, 2012 at 8:51 PM, Piyush Sharma <piyush.sharma@coraltele.com>wrote:
Thanks for the response, I don't know how semicolon came in the email, but I have no semicolon in my XML, and please avoid visible smiles as well.
<include> <menu na me="ps" greet-long="phrases_main" greet-short="phrases_short" exit-sound="ivr/good_bye.wav" invalid-sound="ivr/ivr-not_available.wav" t ts-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"< br> greet-long="phrases1_main" greet-short="phrases1_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>
------------------------------ *From: *"Vallimamod ABDULLAH" <vallimamod.abdullah@imtelecom.fr>
*To: *"FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> *Sent: *Tuesday, July 17, 2012 4:24:42 PM *Subject: *Re: [Freeswitch-users] Need help in IVR
hi,
On Jul 17, 2012, at 7:39 AM, Piyush Sharma wrote:
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"
-------^^ This is strange: ";" is not a valid sign in xml for comments. All comments must be between "<!--" and "-->". Also, you cannot put a comment inside a tag. Try to remove it and test again.
Best Regards, -vma .
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hello Nandy, I didn't get you completely, I named my main menu "ps" it is just a test case, I want to prepare a IVR, that may have sub menus upto some level, so I will name menus & sub menus with some logic so that it is easy to maintain, If it is possible, I want to generate it automatically via a script on the basis of some input. I am new to this so your little support can help me a lot. If you are not clear, tell me I will explain more about this. (I am sick of visibility, it is not clear again.) <menu name="ps" greet-long="phrase: ps_main" greet-short="phrase: ps_short" ............ digit_len = 1> ----- Original Message ----- From: "Nandy Dagondon" <gcd@i.ph> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Tuesday, July 17, 2012 6:48:28 PM Subject: Re: [Freeswitch-users] Need help in IVR how about this line? <menu name="ps" On Tue, Jul 17, 2012 at 8:51 PM, Piyush Sharma < piyush.sharma@coraltele.com > wrote: Thanks for the response, I don't know how semicolon came in the email, but I have no semicolon in my XML, and please avoid visible smiles as well. <include> <menu na me="ps" greet-long="phrase s_main" greet-short="phrase s_short" exit-sound="ivr/good_bye.wav" invalid-sound="ivr/ivr-not_available.wav" t ts-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"< br> greet-long="phrase s1_main" greet-short="phrase s1_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> From: "Vallimamod ABDULLAH" < vallimamod.abdullah@imtelecom.fr > To: "FreeSWITCH Users Help" < freeswitch-users@lists.freeswitch.org > Sent: Tuesday, July 17, 2012 4:24:42 PM Subject: Re: [Freeswitch-users] Need help in IVR hi, On Jul 17, 2012, at 7:39 AM, Piyush Sharma wrote:
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"
-------^^ This is strange: ";" is not a valid sign in xml for comments. All comments must be between "<!--" and "-->". Also, you cannot put a comment inside a tag. Try to remove it and test again. Best Regards, -vma . _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com Join Us At ClueCon - Aug 7-9, 2012 FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
hi, i thought there was a typo error in the parameter "na me". /nandy On Wed, Jul 18, 2012 at 1:18 PM, Piyush Sharma <piyush.sharma@coraltele.com>wrote:
Hello Nandy,
I didn't get you completely, I named my main menu "ps" it is just a test case, I want to prepare a IVR, that may have sub menus upto some level, so I will name menus & sub menus with some logic so that it is easy to maintain, If it is possible, I want to generate it automatically via a script on the basis of some input. I am new to this so your little support can help me a lot. If you are not clear, tell me I will explain more about this. (I am sick of visibility, it is not clear again.)
<menu name="ps"
greet-long="phrase: ps_main" greet-short="phrase: ps_short" ............ digit_len = 1>
------------------------------ *From: *"Nandy Dagondon" <gcd@i.ph>
*To: *"FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> *Sent: *Tuesday, July 17, 2012 6:48:28 PM
*Subject: *Re: [Freeswitch-users] Need help in IVR
how about this line? <menu name="ps"
On Tue, Jul 17, 2012 at 8:51 PM, Piyush Sharma < piyush.sharma@coraltele.com> wrote:
Thanks for the response, I don't know how semicolon came in the email, but I have no semicolon in my XML, and please avoid visible smiles as well.
<include> <menu na me="ps" greet-long="phrases_main" greet-short="phrases_short" exit-sound="ivr/good_bye.wav" invalid-sound="ivr/ivr-not_available.wav" t ts-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"< br> greet-long="phrases1_main" greet-short="phrases1_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>
------------------------------ *From: *"Vallimamod ABDULLAH" <vallimamod.abdullah@imtelecom.fr>
*To: *"FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> *Sent: *Tuesday, July 17, 2012 4:24:42 PM *Subject: *Re: [Freeswitch-users] Need help in IVR
hi,
On Jul 17, 2012, at 7:39 AM, Piyush Sharma wrote:
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"
-------^^ This is strange: ";" is not a valid sign in xml for comments. All comments must be between "<!--" and "-->". Also, you cannot put a comment inside a tag. Try to remove it and test again.
Best Regards, -vma .
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Ya it seems so, some contents were not properly displayed that seems like typo error. I don't know why I am getting error when I make call but menu-sub & menu-top is not working for me. ----- Original Message ----- From: "Nandy Dagondon" <nandy1925@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Wednesday, July 18, 2012 11:26:34 AM Subject: Re: [Freeswitch-users] Need help in IVR hi, i thought there was a typo error in the parameter "na me". /nandy On Wed, Jul 18, 2012 at 1:18 PM, Piyush Sharma < piyush.sharma@coraltele.com > wrote: Hello Nandy, I didn't get you completely, I named my main menu "ps" it is just a test case, I want to prepare a IVR, that may have sub menus upto some level, so I will name menus & sub menus with some logic so that it is easy to maintain, If it is possible, I want to generate it automatically via a script on the basis of some input. I am new to this so your little support can help me a lot. If you are not clear, tell me I will explain more about this. (I am sick of visibility, it is not clear again.) <menu name="ps" greet-long="phrase: ps_main" greet-short="phrase: ps_short" ............ digit_len = 1> From: "Nandy Dagondon" < gcd@i.ph > To: "FreeSWITCH Users Help" < freeswitch-users@lists.freeswitch.org > Sent: Tuesday, July 17, 2012 6:48:28 PM Subject: Re: [Freeswitch-users] Need help in IVR how about this line? <menu name="ps" On Tue, Jul 17, 2012 at 8:51 PM, Piyush Sharma < piyush.sharma@coraltele.com > wrote: <blockquote> Thanks for the response, I don't know how semicolon came in the email, but I have no semicolon in my XML, and please avoid visible smiles as well. <include> <menu na me="ps" greet-long="phrase s_main" greet-short="phrase s_short" exit-sound="ivr/good_bye.wav" invalid-sound="ivr/ivr-not_available.wav" t ts-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"< br> greet-long="phrase s1_main" greet-short="phrase s1_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> From: "Vallimamod ABDULLAH" < vallimamod.abdullah@imtelecom.fr > To: "FreeSWITCH Users Help" < freeswitch-users@lists.freeswitch.org > Sent: Tuesday, July 17, 2012 4:24:42 PM Subject: Re: [Freeswitch-users] Need help in IVR hi, On Jul 17, 2012, at 7:39 AM, Piyush Sharma wrote:
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"
-------^^ This is strange: ";" is not a valid sign in xml for comments. All comments must be between "<!--" and "-->". Also, you cannot put a comment inside a tag. Try to remove it and test again. Best Regards, -vma . _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com Join Us At ClueCon - Aug 7-9, 2012 FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com Join Us At ClueCon - Aug 7-9, 2012 FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org </blockquote>
It seems that issue is regarding menu-sub. If I comment that line(<entry action="menu-sub" digits="1" param="ps1"/>) from main menu, IVR starts but when I want to work with sub menu, I get these error messages 2012-07-18 16:25:07.623017 [ERR] switch_ivr_menu.c:870 Unable to build xml menu 2012-07-18 16:25:07.623017 [ERR] switch_ivr_menu.c:870 Unable to build xml menu 2012-07-18 16:25:07.623017 [ERR] mod_dptools.c:1774 Unable to create menu this is the code of sub menu in XML. <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" max-timeouts="3"> <entry action="menu-top" digit="*"/> </menu> is there anything wrong in this, well I have made the macros as same as in main menu ? ----- Original Message ----- From: "Nandy Dagondon" <nandy1925@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Wednesday, July 18, 2012 11:26:34 AM Subject: Re: [Freeswitch-users] Need help in IVR hi, i thought there was a typo error in the parameter "na me". /nandy On Wed, Jul 18, 2012 at 1:18 PM, Piyush Sharma < piyush.sharma@coraltele.com > wrote: Hello Nandy, I didn't get you completely, I named my main menu "ps" it is just a test case, I want to prepare a IVR, that may have sub menus upto some level, so I will name menus & sub menus with some logic so that it is easy to maintain, If it is possible, I want to generate it automatically via a script on the basis of some input. I am new to this so your little support can help me a lot. If you are not clear, tell me I will explain more about this. (I am sick of visibility, it is not clear again.) <menu name="ps" greet-long="phrase: ps_main" greet-short="phrase: ps_short" ............ digit_len = 1> From: "Nandy Dagondon" < gcd@i.ph > To: "FreeSWITCH Users Help" < freeswitch-users@lists.freeswitch.org > Sent: Tuesday, July 17, 2012 6:48:28 PM Subject: Re: [Freeswitch-users] Need help in IVR how about this line? <menu name="ps" On Tue, Jul 17, 2012 at 8:51 PM, Piyush Sharma < piyush.sharma@coraltele.com > wrote: <blockquote> Thanks for the response, I don't know how semicolon came in the email, but I have no semicolon in my XML, and please avoid visible smiles as well. <include> <menu na me="ps" greet-long="phrase s_main" greet-short="phrase s_short" exit-sound="ivr/good_bye.wav" invalid-sound="ivr/ivr-not_available.wav" t ts-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"< br> greet-long="phrase s1_main" greet-short="phrase s1_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> From: "Vallimamod ABDULLAH" < vallimamod.abdullah@imtelecom.fr > To: "FreeSWITCH Users Help" < freeswitch-users@lists.freeswitch.org > Sent: Tuesday, July 17, 2012 4:24:42 PM Subject: Re: [Freeswitch-users] Need help in IVR hi, On Jul 17, 2012, at 7:39 AM, Piyush Sharma wrote:
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"
-------^^ This is strange: ";" is not a valid sign in xml for comments. All comments must be between "<!--" and "-->". Also, you cannot put a comment inside a tag. Try to remove it and test again. Best Regards, -vma . _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com Join Us At ClueCon - Aug 7-9, 2012 FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com Join Us At ClueCon - Aug 7-9, 2012 FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org </blockquote>
There were no semicolon in my XML, but somehow they are visible here it might be my mistake, so please ignore them. ----- Original Message ----- From: "Piyush Sharma" <piyush.sharma@coraltele.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Tuesday, July 17, 2012 11:09:27 AM Subject: [Freeswitch-users] Need help in IVR 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.
participants (4)
-
Nandy Dagondon
-
Nandy Dagondon
-
Piyush Sharma
-
Vallimamod ABDULLAH