<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Courier New; font-size: 10pt; color: #000000'><br>It seems that issue is regarding menu-sub. If I comment that line(&lt;entry action="menu-sub" digits="1" param="ps1"/&gt;) from main menu, IVR starts but when I want to work with sub menu, I get these error messages<br><br>2012-07-18 16:25:07.623017 [ERR] switch_ivr_menu.c:870 Unable to build xml menu<br>2012-07-18 16:25:07.623017 [ERR] switch_ivr_menu.c:870 Unable to build xml menu<br>2012-07-18 16:25:07.623017 [ERR] mod_dptools.c:1774 Unable to create menu<br><br>this is the code of sub menu in XML.<br><br>&lt;menu name="ps1"<br>greet-long="phrase: ps1_main"<br>greet-short="phrase: ps1_short"<br>exit-sound="ivr/good_bye.wav"<br>invalid-sound="ivr/ivr-not_available.wav"<br>timeout="3000"<br>max-failure="3"<br>max-timeouts="3"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&lt;entry action="menu-top" digit="*"/&gt;<br><br>&lt;/menu&gt;<br><br>is there anything wrong in this, well I have made the macros as same as in main menu ?<br><br><hr id="zwchr"><b>From: </b>"Nandy Dagondon" &lt;nandy1925@gmail.com&gt;<br><b>To: </b>"FreeSWITCH Users Help" &lt;freeswitch-users@lists.freeswitch.org&gt;<br><b>Sent: </b>Wednesday, July 18, 2012 11:26:34 AM<br><b>Subject: </b>Re: [Freeswitch-users] Need help in IVR<br><br>
hi,<br><br>i thought there was a typo error in the parameter "na me".&nbsp;&nbsp; <br><br>/nandy<br><br><div class="gmail_quote">On Wed, Jul 18, 2012 at 1:18 PM, Piyush Sharma <span dir="ltr">&lt;<a href="mailto:piyush.sharma@coraltele.com" target="_blank">piyush.sharma@coraltele.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:Courier New"><br>Hello Nandy,<br><br>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 &amp; 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.)<br>
<br>&lt;menu name="ps"<div class="im"><br>greet-long="phrase: ps_main"<br>greet-short="phrase: ps_short"<br></div>............<br>digit_len = 1&gt;<br><br><hr><b>From: </b>"Nandy Dagondon" &lt;<a href="mailto:gcd@i.ph" target="_blank">gcd@i.ph</a>&gt;<div class="im">
<br><b>To: </b>"FreeSWITCH Users Help" &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br></div><b>Sent: </b>Tuesday, July 17, 2012 6:48:28 PM<div>
<div class="h5"><br><b>Subject: </b>Re: [Freeswitch-users] Need help in IVR<br><br>how about this line?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;menu name="ps"<br><br><div class="gmail_quote">On Tue, Jul 17, 2012 at 8:51 PM, Piyush Sharma <span dir="ltr">&lt;<a href="mailto:piyush.sharma@coraltele.com" target="_blank">piyush.sharma@coraltele.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:Courier New"><br>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.<br>

<span><div><br>&lt;include&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;menu na
 me="ps"<br></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; greet-long="phrase<span style="min-height:18;width:18;padding:9px 18px 9px 0;background:none no-repeat 0 50%" title=":P - tongue"></span>s_main"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; greet-short="phrase<span style="min-height:18;width:18;padding:9px 18px 9px 0;background:none no-repeat 0 50%" title=":P - tongue"></span>s_short"<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit-sound="ivr/good_bye.wav"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; invalid-sound="ivr/ivr-not_available.wav"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t
 ts-engine="flite"<div><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tts-voice="rms"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; timeout="3000"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; max-failures="2"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; phrase_lang="en"<br>
</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; digit-len="1"&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;entry action="menu-sub" digits="1" param="ps1"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;entry action="menu-top" digits="9"/&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/menu&gt;<br></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;menu name="ps1"&lt;
 br&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; greet-long="phrase<span style="min-height:18;width:18;padding:9px 18px 9px 0;background:none no-repeat 0 50%" title=":P - tongue"></span>s1_main"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; greet-short="phrase<span style="min-height:18;width:18;padding:9px 18px 9px 0;background:none no-repeat 0 50%" title=":P - tongue"></span>s1_short"<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit-sound="ivr/good_bye.wav"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; invalid-sound="ivr/ivr-not_available.wav"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; timeout
 ="3000"<div><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; max-failure="3"&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;entry action="menu-top" digit="*"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/menu&gt;<br>&lt;/include&gt;<br></div>
</span><br><br><hr><b>From: </b>"Vallimamod ABDULLAH" &lt;<a href="mailto:vallimamod.abdullah@imtelecom.fr" target="_blank">vallimamod.abdullah@imtelecom.fr</a>&gt;<div><br><b>To: </b>"FreeSWITCH Users Help" &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>

</div><b>Sent: </b>Tuesday, July 17, 2012 4:24:42 PM<br><b>Subject: </b>Re: [Freeswitch-users] Need help in IVR<div><div><br><br>hi,<br><br>On Jul 17, 2012, at 7:39 AM, Piyush Sharma wrote:<br><br>&gt; Hello Everyone,<br>

&gt; <br>&gt; I am trying to create an IVR with menu and sub menus, but getting following error when I make the call,<br>&gt; 2012-07-17 11:05:37.755034 [ERR] switch_ivr_menu.c:870 Unable to build xml menu<br>&gt; 2012-07-17 11:05:37.755034 [ERR
 ] switch_ivr_menu.c:870 Unable to build xml menu<br>&gt; 2012-07-17 11:05:37.755034 [ERR] mod_dptools.c:1774 Unable to create menu<br>&gt; <br>&gt; I am new to this, so there might be little or a big error.<br>&gt; <br>

&gt; My XML contents in ...conf/ivr_menus is<br>&gt; <br>&gt; &lt;include&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;menu na me="ps"<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; greet-long="phrase:ps_main"<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; greet-short="phrase:ps_short"<br>

&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit-sound="ivr/good_bye.wav"<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; invalid-sound="ivr/ivr-not_available.wav"<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tts-engine="flite"<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tts-voice="rms"<br>

&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timeout="3000"<br>&gt; 
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; max-failures="2"<br>&gt; &nbsp; &nbsp; &nbsp; ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; phrase_lang="en"<br><br>-------^^<br>This is strange: ";" is not a valid sign in xml for comments. All comments must be between "&lt;!--" and "--&gt;". Also, you cannot put a comment inside a tag.<br>

Try to remove it and test again.<br><br>Best Regards,<br>-vma<br>.<br><br><br><br></div></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
</div></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
</div></body></html>