Error using uniMRCP with Nuance

622 views
Skip to first unread message

wockster

unread,
Jun 17, 2010, 9:50:36 AM6/17/10
to UniMRCP
Hi,

I ave get an error when using uniMRCP that I'd like someone's help
with please.

I setup Asterisk Asterisk 1.6.2.7 , Nuance Recongizer 9.0.13/Speech
Server 5.1.1, uni-ast-package 0.20 on Centos 5.4 following the
instructions on:

http://www.davidthomas.net.au/2010/03/voice-recognition-unimrcp-asterisk-nuance-on-centos-5-4-64bit-part-2/

Two differences to the installation instructions above:
1. Speech Server is running on port 5770, not 5060.
2. extensions.conf config is below, using 6683 under internal context,
not default:

[internal]
exten => 6683,1,Ringing
exten => 6683,2,Wait(2)
exten => 6683,3,Answer()
exten => 6683,4,Wait(1)
exten => 6683,5,SpeechCreate()
exten => 6683,6,SpeechLoadGrammar(digit,/etc/asterisk/grammar.xml)
exten => 6683,7,SpeechActivateGrammar(digit)
exten => 6683,8,SpeechBackground(demo-enterkeywords,20)
exten => 6683,9,Verbose(1,The recognized input is ${SPEECH_TEXT(0)})
exten => 6683,10,Verbose(1,The score is ${SPEECH_SCORE(0)})
exten => 6683,11,Verbose(1,The matched grammar is $
{SPEECH_GRAMMAR(0)})
exten => 6683,12,SpeechDeactivateGrammar(digit)
exten => 6683,13,SpeechUnloadGrammar(digit)
exten => 6683,14,SpeechDestroy()
exten => 6683,15,Hangup()


Problem
-----------

When I ring 6683 from a softphone (ext 3001) I get the following CLI
console output and errors:

== Using SIP RTP CoS mark 5
-- Executing [6683@internal:1] Ringing("SIP/3001-0000000d", "") in
new stack
-- Executing [6683@internal:2] Wait("SIP/3001-0000000d", "2") in
new stack
-- Executing [6683@internal:3] Answer("SIP/3001-0000000d", "") in
new stack
-- Executing [6683@internal:4] Wait("SIP/3001-0000000d", "1") in
new stack
-- Executing [6683@internal:5] SpeechCreate("SIP/3001-0000000d",
"") in new stack
[Jun 17 22:37:07] NOTICE[31535]: app_unimrcp.c:4097 unimrcp_log:
Create MRCP Handle 0x9c9e770 [nss2]
[Jun 17 22:37:07] NOTICE[28741]: app_unimrcp.c:4097 unimrcp_log: Add
Control Channel 0x9c9e770 <new@speechrecog>
[Jun 17 22:37:07] NOTICE[28742]: app_unimrcp.c:4097 unimrcp_log: SIP
Call State 0x9c9e770 [calling]
== Using SIP RTP CoS mark 5
[Jun 17 22:37:07] WARNING[28749]: chan_sip.c:8288 process_sdp:
Unsupported SDP media type in offer: application 9 TCP/MRCPv2 1
[Jun 17 22:37:07] NOTICE[28749]: chan_sip.c:20063
handle_request_invite: Call from '' to extension '172.30.0.118:5060'
rejected because extension not found.
[Jun 17 22:37:07] NOTICE[28742]: app_unimrcp.c:4097 unimrcp_log: SIP
Call State 0x9c9e770 [terminated]
[Jun 17 22:37:07] WARNING[31535]: res_speech_unimrcp.c:180
uni_recog_create: Failed to add channel
[Jun 17 22:37:07] NOTICE[31535]: app_unimrcp.c:4097 unimrcp_log:
Destroy MRCP Handle 0x9c9e770
-- Executing [6683@internal:6] SpeechLoadGrammar("SIP/
3001-0000000d", "digit,/etc/asterisk/grammar.xml") in new stack
== Spawn extension (internal, 6683, 6) exited non-zero on 'SIP/
3001-0000000d'


Any ideas?

Any help is greatly appreciated.

Regards,
Simon.

Christopher Rienzo

unread,
Jun 17, 2010, 11:49:27 AM6/17/10
to uni...@googlegroups.com
Did you set <server-port>5770</server-port> in unimrcpclient.xml?



--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To post to this group, send email to uni...@googlegroups.com.
To unsubscribe from this group, send email to unimrcp+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/unimrcp?hl=en.


Arsen Chaloyan

unread,
Jun 17, 2010, 1:40:11 PM6/17/10
to uni...@googlegroups.com
Hi Simon,

Chris is definitely right here, you should specify the port. Though you may need to set in nuance.xml which is located in /usr/local/unimrcp/conf/client-profiles directory. Also, I assume you have already set
unimrcp-profile = nss2     ; Nuance MRCPv2 Server

from /etc/asterisk/res-speech-unimrcp.conf

Regards,
--
Arsen Chaloyan
The author of UniMRCP
http://www.unimrcp.org

Arsen Chaloyan

unread,
Jun 18, 2010, 12:27:35 PM6/18/10
to uni...@googlegroups.com
Hi Simon,

It seems instead of posting to the group you sent the message directly to me by accident. So, I'm answering here.

Make sure the MRCP server is up and running and you have all the licenses properly installed for it. Enable the debug output (/etc/asterisk/logger/conf) and provide the logs.

Regards,

On Fri, Jun 18, 2010 at 9:32 AM, wockster <wock...@gmail.com> wrote:
Hi Chris, Arsen,

Thank you for your quick replies. I solved the original problem in
this post but now a new one is happening...

First, I solved by:

1. In /etc/asterisk/unimrcpclient.
xml added:
   <server-ip>172.30.0.118</server-ip>
   <server-port>5770</server-port>
2. In /usr/local/unimrcp/conf/client-profiles/nuance.xml changed:
   <server-port>5060</server-port>
to
   <server-port>5770</server-port>
3. In /etc/asterisk/res-speech-unimrcp.conf:
 unimrcp-profile = nss2 ; ... was already configured

The error I now get is:


 == Using SIP RTP CoS mark 5
   -- Executing [6683@internal:1] Ringing("SIP/3001-00000003", "") in
new stack
   -- Executing [6683@internal:2] Wait("SIP/3001-00000003", "2") in
new stack
   -- Executing [6683@internal:3] Answer("SIP/3001-00000003", "") in
new stack
   -- Executing [6683@internal:4] Wait("SIP/3001-00000003", "1") in
new stack
   -- Executing [6683@internal:5] SpeechCreate("SIP/3001-00000003",
"") in new stack
[Jun 18 13:28:39] NOTICE[24345]: app_unimrcp.c:4097 unimrcp_log:
Create MRCP Handle 0x8fb5f98 [nss2]
[Jun 18 13:28:39] NOTICE[23940]: app_unimrcp.c:4097 unimrcp_log: Add
Control Channel 0x8fb5f98 <new@speechrecog>
[Jun 18 13:28:39] NOTICE[23941]: app_unimrcp.c:4097 unimrcp_log: SIP
Call State 0x8fb5f98 [calling]
[Jun 18 13:28:39] NOTICE[23941]: app_unimrcp.c:4097 unimrcp_log: SIP
Call State 0x8fb5f98 [ready]
[Jun 18 13:28:39] NOTICE[23943]: app_unimrcp.c:4097 unimrcp_log:
Established TCP/MRCPv2 Connection 172.30.0.118:61153 <->
172.30.0.118:6075
[Jun 18 13:28:39] NOTICE[24345]: res_speech_unimrcp.c:203
uni_recog_create: Created speech instance '4'
[Jun 18 13:28:39] WARNING[24345]: res_speech_unimrcp.c:846
uni_recog_properties_set: Received failure response

   -- Executing [6683@internal:6] SpeechLoadGrammar("SIP/
3001-00000003", "digit,/etc/asterisk/grammar.xml") in new stack
[Jun 18 13:28:39] NOTICE[24345]: res_speech_unimrcp.c:334
uni_recog_load_grammar: Load grammar name:digit type:application/srgs
+xml path:/etc/asterisk/grammar.xml '4'
[Jun 18 13:28:39] WARNING[24345]: res_speech_unimrcp.c:357
uni_recog_load_grammar: Received failure response

 == Spawn extension (internal, 6683, 6) exited non-zero on 'SIP/
3001-00000003'
[Jun 18 13:28:39] NOTICE[24345]: res_speech_unimrcp.c:216
uni_recog_destroy: Destroy speech instance '4'
[Jun 18 13:28:39] NOTICE[23941]: app_unimrcp.c:4097 unimrcp_log: SIP
Call State 0x8fb5f98 [terminated]
[Jun 18 13:28:39] NOTICE[23940]: app_unimrcp.c:4097 unimrcp_log:
Destroy TCP/MRCPv2 Connection 172.30.0.118:61153 <-> 172.30.0.118:6075
[Jun 18 13:28:39] NOTICE[24345]: app_unimrcp.c:4097 unimrcp_log:
Destroy MRCP Handle 0x8fb5f98

The received failure response error seems to be happening at this
stage of the dialing process in extensions.conf:
exten => 6683,5,SpeechCreate()

Any ideas?

Thanks in advance.

Regards,
Simon.

Botik

unread,
Jun 18, 2010, 12:46:13 PM6/18/10
to UniMRCP
Hi,

My name is David -- team mate of Simon, working on the same project.

After doing the modifications on the related config files, I tested
again and have the following CLI output:

== Using SIP RTP CoS mark 5
-- Executing [6683@internal:1] Ringing("SIP/3004-0000001f", "") in
new stack
-- Executing [6683@internal:2] Wait("SIP/3004-0000001f", "2") in
new stack
-- Executing [6683@internal:3] Answer("SIP/3004-0000001f", "") in
new stack
-- Executing [6683@internal:4] Wait("SIP/3004-0000001f", "1") in
new stack
-- Executing [6683@internal:5] SpeechCreate("SIP/3004-0000001f",
"") in new stack
[Jun 19 01:33:22] NOTICE[12136]: app_unimrcp.c:4097 unimrcp_log:
Create MRCP Handle 0x8faf570 [nss2]
[Jun 19 01:33:22] NOTICE[23940]: app_unimrcp.c:4097 unimrcp_log: Add
Control Channel 0x8faf570 <new@speechrecog>
[Jun 19 01:33:22] NOTICE[23941]: app_unimrcp.c:4097 unimrcp_log: SIP
Call State 0x8faf570 [calling]
[Jun 19 01:33:22] NOTICE[23941]: app_unimrcp.c:4097 unimrcp_log: SIP
Call State 0x8faf570 [ready]
[Jun 19 01:33:22] NOTICE[23943]: app_unimrcp.c:4097 unimrcp_log:
Established TCP/MRCPv2 Connection 172.30.0.118:49331 <->
172.30.0.118:6075
[Jun 19 01:33:22] NOTICE[12136]: res_speech_unimrcp.c:203
uni_recog_create: Created speech instance '26'
[Jun 19 01:33:22] WARNING[12136]: res_speech_unimrcp.c:846
uni_recog_properties_set: Received failure response
-- Executing [6683@internal:6] SpeechLoadGrammar("SIP/
3004-0000001f", "digit,/etc/asterisk/grammar.xml") in new stack
[Jun 19 01:33:22] NOTICE[12136]: res_speech_unimrcp.c:334
uni_recog_load_grammar: Load grammar name:digit type:application/srgs
+xml path:/etc/asterisk/grammar.xml '26'
[Jun 19 01:33:22] WARNING[12136]: res_speech_unimrcp.c:357
uni_recog_load_grammar: Received failure response
== Spawn extension (internal, 6683, 6) exited non-zero on 'SIP/
3004-0000001f'
[Jun 19 01:33:22] NOTICE[12136]: res_speech_unimrcp.c:216
uni_recog_destroy: Destroy speech instance '26'
[Jun 19 01:33:22] NOTICE[23941]: app_unimrcp.c:4097 unimrcp_log: SIP
Call State 0x8faf570 [terminated]
[Jun 19 01:33:22] NOTICE[23940]: app_unimrcp.c:4097 unimrcp_log:
Destroy TCP/MRCPv2 Connection 172.30.0.118:49331 <-> 172.30.0.118:6075
[Jun 19 01:33:22] NOTICE[12136]: app_unimrcp.c:4097 unimrcp_log:
Destroy MRCP Handle 0x8faf570
star1098*CLI>

Please notice that we got the following WARNING from
uni_recog_load_grammar::
[Jun 19 01:33:22] WARNING[12136]: res_speech_unimrcp.c:846
uni_recog_properties_set: Received failure response

and in /usr/local/Nuance/Speech_Server/server/logs/nss.log, we have
the following

0090619014216610| 97827728| 0| d2d36cdb-d6c9-122c-57b5-000c298e6403|
MyApp| ** ERROR => SVC AFFECT **| 4060| SWI_PARSER_XERCES_ERROR| XML
syntax error| STRING_GRAMMAR | In XML grammar at line 4 char 10:
Expected an attribute name
20090619014216613| 97827728| 0| d2d36cdb-d6c9-122c-57b5-000c298e6403|
MyApp| RecognizerErrorUnwind|| SWI error INVALID_DATA(8) detected in
gen_xerces.cpp:268
20090619014216613| 97827728| 0| d2d36cdb-d6c9-122c-57b5-000c298e6403|
MyApp| RecognizerErrorUnwind|| SWI error INVALID_DATA(8) detected in
gen_xerces.cpp:140
20090619014216613| 97827728| 0| d2d36cdb-d6c9-122c-57b5-000c298e6403|
MyApp| RecognizerErrorUnwind|| SWI error INVALID_DATA(8) detected in
gen_parser.c:246
20090619014216613| 97827728| 0| d2d36cdb-d6c9-122c-57b5-000c298e6403|
MyApp| RecognizerErrorUnwind|| SWI error INVALID_DATA(8) detected in
parser/SWIparserAPI.c:685
20090619014216613| 97827728| 0| d2d36cdb-d6c9-122c-57b5-000c298e6403|
MyApp| RecognizerErrorUnwind|| SWI error INVALID_DATA(8) detected in
SWIgrAPI.c:1738
20090619014216613| 97827728| 0| d2d36cdb-d6c9-122c-57b5-000c298e6403|
MyApp| RecognizerErrorUnwind|| SWI error INVALID_DATA(8) detected in
SWIgrAPI.c:1196
20090619014216614| 97827728| 0| d2d36cdb-d6c9-122c-57b5-000c298e6403|
MyApp| ** WARNING **| 27100| SWIREC| SWIrec API| SWIrecGrammarLoad |
Invalid data supplied to API call.

Thank you in advance for your help,

David


On 18 Haziran, 19:27, Arsen Chaloyan <achalo...@gmail.com> wrote:
> Hi Simon,
>
> It seems instead of posting to the group you sent the message directly to me
> by accident. So, I'm answering here.
>
> Make sure the MRCP server is up and running and you have all the licenses
> properly installed for it. Enable the debug output
> (/etc/asterisk/logger/conf) and provide the logs.
>
> Regards,
>
> On Thu, Jun 17, 2010 at 10:40 PM, Arsen Chaloyan <achalo...@gmail.com>wrote:
>
>
>
> > Hi Simon,
>
> > Chris is definitely right here, you should specify the port. Though you may
> > need to set in nuance.xml which is located in
> > /usr/local/unimrcp/conf/client-profiles directory. Also, I assume you have
> > already set
> > unimrcp-profile = nss2     ; Nuance MRCPv2 Server
>
> > from /etc/asterisk/res-speech-unimrcp.conf
>
> > Regards,
>
> > On Thu, Jun 17, 2010 at 8:49 PM, Christopher Rienzo <cmrie...@gmail.com>wrote:
>
> >> Did you set <server-port>5770</server-port> in unimrcpclient.xml?
>
> >> On Thu, Jun 17, 2010 at 9:50 AM, wockster <wocks...@gmail.com> wrote:
>
> >>> Hi,
>
> >>> I ave get an error when using uniMRCP that I'd like someone's help
> >>> with please.
>
> >>> I setup Asterisk Asterisk 1.6.2.7 , Nuance Recongizer 9.0.13/Speech
> >>> Server 5.1.1, uni-ast-package 0.20 on Centos 5.4 following the
> >>> instructions on:
>
> >>>http://www.davidthomas.net.au/2010/03/voice-recognition-unimrcp-aster...
> >>> unimrcp+u...@googlegroups.com<unimrcp%2Bunsu...@googlegroups.com>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/unimrcp?hl=en.
>
> >>  --
> >> You received this message because you are subscribed to the Google Groups
> >> "UniMRCP" group.
> >> To post to this group, send email to uni...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> unimrcp+u...@googlegroups.com<unimrcp%2Bunsu...@googlegroups.com>
> >> .

Arsen Chaloyan

unread,
Jun 18, 2010, 2:08:30 PM6/18/10
to uni...@googlegroups.com
Hi David,

I wonder what the content of /etc/asterisk/grammar.xml is. It seems the grammar you supply is not supported by Nuance.
I've already suggested to provide debug level logs...

To unsubscribe from this group, send email to unimrcp+u...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/unimrcp?hl=en.

Reply all
Reply to author
Forward
0 new messages