This post has NOT been accepted by the mailing list yet.
I'm using adhearsion (1.2) with unimrcp (1.0) and an ASR engine and for the most part everything works fine (my asterisk version is 1.6.2).
My problem is with using ReadFile to assign an asterisk variable in one command and then to access it in the next, code snippet is below
In the first line I'm reading contents of the grammar file (its actually a list of grammar locations) into the URI_LIST variable and in the second I'm attempting to use this variable as a parameter to the my MRCPRecog command, unfortunately the variable is always blank.
I have tried reading the file contents into a var on the ahn side and passing it to the MRCPRecog cammon like my other vars (options[:timeout] etc.) but this doesn't work as there are newline characters in the file contents which result in the rest of the params not being passed at all.
I've tried this exact sequence of commands in my dialplan and they work fine.
Any help much appreciated