[Freeswitch-users] Need help in IVR
Piyush Sharma
piyush.sharma at coraltele.com
Wed Jul 18 15:08:47 MSD 2012
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 at gmail.com>
To: "FreeSWITCH Users Help" <freeswitch-users at 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 at 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 at i.ph >
To: "FreeSWITCH Users Help" < freeswitch-users at 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 at 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 at imtelecom.fr >
To: "FreeSWITCH Users Help" < freeswitch-users at 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 at freeswitch.org
http://www.freeswitchsolutions.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 at 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 at freeswitch.org
http://www.freeswitchsolutions.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 at 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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120718/7afb0f33/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list