Hi
I’m trying to write an IVR in ael for Asterisk. Below is the part of the code. The problem is when ${SPEECH_TEXT(0)} returns several words separated by spaces the ‘case’ do not catch it, while it works when ${SPEECH_TEXT(0)} returns only one word. I tried to include text in brackets like “” and ‘’ with no success. In the below code I tried to escape spaces, but it didn’t work. Does anybody have an idea on how correctly handle the spaces? Note that the text is unicode.
[code] switch (${SPEECH_TEXT(0)})
{
case օպերատոր:
Playback(asr_operator);
break;
case երեքը\ մեկում:
Playback(asr_ereqy_mekum);
break;;
case տեխնիկական\ աջակցում:
Playback(asr_texnikakan_ajakcum);
break;
default:
Playback(beep);
break;
}[/code]
Thanks,
Zaven.