Hi Ramji,<div><br></div><div>The "Serious error has occured" message usually occurs when there are parse-time errors in your VXML program. Details about the error, including line and column where things went wrong, can by found in the dynlog. Often it's an openVXI error that you'll be looking at.</div>
<div><br></div><div>You may also want to crank the dynlog up to level 7, to see what is correctly being parsed. Details about dynlog, where it is, and how to set the levels are all in the Users Guide on the Voiceglue wiki (under the documentation tab on the main <a href="http://voiceglue.org">voiceglue.org</a> site).</div>
<div><br></div><div>Yes, Voiceglue works just fine with DTMF input, and we use it that way all the time. I don't know offhand about the <choice> element, Doug would know and perhaps he could chime in.<br><br><div class="gmail_quote">
2009/3/17 Ramji Nagariya <span dir="ltr"><<a href="mailto:ramji.nagariya@simmortel.com">ramji.nagariya@simmortel.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div>I have given a sample dtmf menu vxml program in earlier mail attached below.<br><br>The voiceglue replies (over phone) with message: "A Serious error has occured..... exiting"<br><br>
<br>What could be the cause of this message? Does it mean, there is problem with SRGSDTMF module?<br><br>The program is supposed to take a dtmf input (press 1 or 2), It don't take any input. And gives the error message. Voiceglue does not seem to handle <choice> element and <if> elements properly?<br>
<br>Does voiceglue support dtmf handling???<br><br><br><br><br> </div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><br>
<br>
Thanks a lot Robby. I am using Debain. Voiceglue 0.9. I compiled voiceglue<br>
the hard way mentioned in installation guide (using source).<br>
<br>
I solved problem by changing user "asterisk" to "root" in following files:<br>
<br>
Shell script:<br>
/etc/init.d/voiceglue<br>
Perl script:<br>
/usr/bin/voiceglue<br>
I will aslo try adding user asterisk.<br>
<br>
<br>
Now I can play tts (using flite) or audio file over phone using simple vxml<br>
program.<br>
But I am unable to use even simple DTMF Menu. It plays a tts over phone: "A<br>
serious error has occured. Exiting".<br>
<br>
*Program: dtmfmenu.vxml*<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<vxml version="2.0"><br>
<br>
<br>
<menu id="dayselection"><br>
<prompt><br>
Press 1 for Monday and 2 for Tuesday.<br>
</prompt><br>
<choice dtmf="1" next="#monday"/><br>
<choice dtmf="2" next="#tuesday"/><br>
</menu><br>
<br>
<form id="monday"><br>
<block><br>
Thanks, you selected Monday.<br>
</block><br>
</form><br>
<br>
<form id="tuesday"><br>
<block><br>
Thanks, you selected Tuesday.<br>
</block><br>
</form><br>
</vxml><br>
<br>
<br>
*This is output at asterisk CLI:*<br>
<br>
Starting simple switch on 'DAHDI/4-1'<br>
-- Executing [s@FOUR:1] Answer("DAHDI/4-1", "") in new stack<br>
-- Executing [s@FOUR:2] AGI("DAHDI/4-1", "agi://localhost") in new stack<br>
-- Playing<br>
'voiceglue/tts/A_serious_error_has_occured_Exiting-F77A1893DA898982'<br>
(escape_digits=) (sample_offset 0)<br>
-- AGI Script agi://localhost completed, returning 0<br>
-- Executing [s@FOUR:3] Hangup("DAHDI/4-1", "") in new stack<br>
== Spawn extension (FOUR, s, 3) exited non-zero on 'DAHDI/4-1'<br>
-- Hungup 'DAHDI/4-1'<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br><br>
><br>
> 1. Re: Problem in installing voiceglue (Robby Dermody)<br>
><br>
><br>
> ----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Sun, 15 Mar 2009 13:58:57 -0500 (GMT-05:00)<br>
> From: Robby Dermody <<a href="mailto:robbyd@u20.org" target="_blank">robbyd@u20.org</a>><br>
> Subject: Re: [Voiceglue] Problem in installing voiceglue<br>
> To: General discussion about voiceglue <<a href="mailto:voiceglue@voiceglue.org" target="_blank">voiceglue@voiceglue.org</a>><br>
> Message-ID: <26963926.461237143533881.JavaMail.robbyd@chl-lab-dev1><br>
> Content-Type: text/plain; charset=utf-8<br>
><br>
> Normally the user is created as part of installing the package. The best<br>
> practice is to run asterisk under the asterisk user, and never under the<br>
> root user.<br>
> If you compiled Asterisk from source you will probably need to create the<br>
> user yourself using the useradd command (see 'man useradd' for more info).<br>
><br>
> A few questions:<br>
><br>
> -What distribution are you running?<br>
> -Did you compile from source instead of using that distribution's build in<br>
> packages?<br>
><br>
> Robby<br>
> ----- Original Message -----<br>
> From: "Ramji Nagariya" <<a href="mailto:ramji.nagariya@simmortel.com" target="_blank">ramji.nagariya@simmortel.com</a>><br>
> To: <a href="mailto:voiceglue@voiceglue.org" target="_blank">voiceglue@voiceglue.org</a><br>
> Sent: Saturday, March 14, 2009 7:35:57 AM GMT -05:00 US/Canada Eastern<br>
> Subject: [Voiceglue] Problem in installing voiceglue<br>
><br>
><br>
> Hi,<br>
><br>
> I am getting problem in voiceglue installation.<br>
><br>
> I have almost completed the installation.<br>
><br>
> I do following to start voiceglue<br>
><br>
> Start Asterisk:<br>
> $ /usr/sbin/asterisk (this /usr/sbin/asterisk is a binary file. executing<br>
> this file starts asterisk)<br>
><br>
> Start Dynlog:<br>
> $ /etc/init.d/dynlog start (/etc/init.d/dynlog is a shell script. In this<br>
> file dynlog_user and dynlog_group are defined to be "dynlog")<br>
><br>
> Start phoneglue:<br>
> $ /etc/init.d/phoneglue start (/etc/init.d/phoneglue is also a shell script<br>
> with user and gropu to be definrd as "phoneglue")<br>
><br>
> Start voiceglue:<br>
><br>
> $/etc/init.d/voiceglue start (/etc/init.d/voiceglue is also a shell script<br>
> with user and group defined to be "asterisk")<br>
> Starting voiceglue: Starting Voiceglue daemon: voicegluevoiceglue: user<br>
> "asterisk" unknown<br>
> failed!<br>
><br>
> As shown in error message above, Voiceglue fails to start.<br>
><br>
> This is link to voiceglue installation guide.<br>
> Link:<br>
> <a href="http://voiceglue.org/wiki/doku.php?id=voiceglue_0.9_installation_instructions" target="_blank">http://voiceglue.org/wiki/doku.php?id=voiceglue_0.9_installation_instructions</a><br>
><br>
> ..............Start copied_note<br>
><br>
> The "asterisk" user<br>
><br>
><br>
><br>
> The ?asterisk? user must be present. This user is what the voiceglue<br>
> process runs as because it needs to share audio files with Asterisk. It is<br>
> legal, even with the easy way, to have Asterisk installed on a separate<br>
> machine from Voiceglue, but the ?asterisk? user must be present on the<br>
> voiceglue host, and should match the uid/gid of the ?asterisk? user on the<br>
> Asterisk host.<br>
> ..................End<br>
><br>
><br>
> Now my problem is how do I make asterisk user present. Asterisk is running<br>
> but no user named "asterisk" is present. Notably I start my asterisk by<br>
> using this binary: ($ /usr/sbin/asterisk). And I don't start asterisk using<br>
> some init.d shell script like ($ /etc/init.d/asterisk start). I have no<br>
> /etc/init.d/asterisk shell script.<br>
><br>
> All others (dynlog, phoneglue and voiceglue ) are started using shell<br>
> scripts in /etc/init.d<br>
><br>
> so now, how do I run voiceglue? how do I make user "asterisk" present.<br>
> Any help is very much appreciated.<br>
><br>
> Thanks!<br>
><br>
> Neo<br>
><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Voiceglue mailing list<br>
> <a href="mailto:Voiceglue@voiceglue.org" target="_blank">Voiceglue@voiceglue.org</a><br>
> <a href="http://www.voiceglue.org/mailman/listinfo/voiceglue" target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a><br>
><br>
><br>
> ------------------------------<br>
><br>
> _______________________________________________<br>
> Voiceglue mailing list<br>
> <a href="mailto:Voiceglue@voiceglue.org" target="_blank">Voiceglue@voiceglue.org</a><br>
> <a href="http://www.voiceglue.org/mailman/listinfo/voiceglue" target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a><br>
><br>
><br>
> End of Voiceglue Digest, Vol 20, Issue 5<br>
> ****************************************<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://www.voiceglue.org/pipermail/voiceglue/attachments/20090316/6b17699a/attachment.html" target="_blank">http://www.voiceglue.org/pipermail/voiceglue/attachments/20090316/6b17699a/attachment.html</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Voiceglue mailing list<br>
<a href="mailto:Voiceglue@voiceglue.org" target="_blank">Voiceglue@voiceglue.org</a><br>
<a href="http://www.voiceglue.org/mailman/listinfo/voiceglue" target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a><br>
<br>
<br>
End of Voiceglue Digest, Vol 20, Issue 6<br>
****************************************<br>
</blockquote></div><br>
<br>_______________________________________________<br>
Voiceglue mailing list<br>
<a href="mailto:Voiceglue@voiceglue.org">Voiceglue@voiceglue.org</a><br>
<a href="http://www.voiceglue.org/mailman/listinfo/voiceglue" target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a><br>
<br></blockquote></div><br></div>