AaronZhangL / unimrcp

Automatically exported from code.google.com/p/unimrcp
Apache License 2.0
0 stars 0 forks source link

ABNF problem using MRCPRecog #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product is patch made on?
Asterisk 1.4
RHEL 3.9 Update 9
LoquendoSS 7.0
uni-ast-package-0.2.0 (with new revision 1552)

Please use labels and text to provide additional information.
UniMRCP send "Content-Type: application/srgs+xml" with the ABNF gramars 
what cause the "gram-comp-failure" error.

The solution in "app_unimrcp.c" could be

    if ((text_starts_with( args.grammar, HTTP_ID)) || (text_starts_with
( args.grammar, HTTPS_ID)) || (text_starts_with( args.grammar, 
BUILTIN_ID))) {
        tmp_grammar = GRAMMAR_TYPE_URI;
    } else {
      if ((text_starts_with( args.grammar, ABNF_ID)) {
                      tmp_grammar = GRAMMAR_TYPE_SRGS;
                  } else {
               tmp_grammar = GRAMMAR_TYPE_SRGS_XML;
      }
    }

instead of 

    if ((text_starts_with( args.grammar, HTTP_ID)) || (text_starts_with
( args.grammar, HTTPS_ID)) || (text_starts_with( args.grammar, 
BUILTIN_ID))) {
        tmp_grammar = GRAMMAR_TYPE_URI;
    } else {
                tmp_grammar = GRAMMAR_TYPE_SRGS_XML;
    }

Assanta

Original issue reported on code.google.com by assantas...@gmail.com on 9 Mar 2010 at 4:09

GoogleCodeExporter commented 9 years ago
Thanks for the patch submission, Assanta.

Original comment by achalo...@gmail.com on 9 Mar 2010 at 6:16

GoogleCodeExporter commented 9 years ago
This has now been incorporated into the trunk. Please test and let me know if it
works as you expect.

Original comment by thirion...@gmail.com on 10 Mar 2010 at 8:11

GoogleCodeExporter commented 9 years ago
Hi

This error appears

[Mar 10 11:55:45] WARNING[25423]: loader.c:409 load_dynamic_module: Error 
loading 
module 'app_unimrcp.so': /usr/lib/asterisk/modules/app_unimrcp.so: undefined 
symbol: 
mrcp_client_connection_timeout_set
[Mar 10 11:55:45] WARNING[25423]: loader.c:721 load_resource: 
Module 'app_unimrcp.so' could not be loaded.

Regards
Asanta

Original comment by assantas...@gmail.com on 10 Mar 2010 at 11:18

GoogleCodeExporter commented 9 years ago
Please make sure you're linking and running against recent UniMRCP too. Most 
probably
you need to just 'make install' it again.

Original comment by achalo...@gmail.com on 10 Mar 2010 at 11:51

GoogleCodeExporter commented 9 years ago
yes, now runn ok with the unimrcp-0.10.0

thanks

Original comment by assantas...@gmail.com on 10 Mar 2010 at 5:42

GoogleCodeExporter commented 9 years ago

Original comment by thirion...@gmail.com on 13 Dec 2010 at 12:28