app_mrcprecog.c:294 speech_on_channel_add: (ASR-4) Channel error status=1, response code=0!

86 views
Skip to first unread message

Arvind mecala

unread,
Feb 13, 2020, 2:11:59 AM2/13/20
to UniMRCP
Hi Arsen,


I have a setup with asterisk 16 and unimrcp 1.52. I tested the unimrcp client to server setup using commands run synth and run recog which works fine without any issues. However, when trying to test using IVR(MRCPSyth or MRCPRecog) not able to connect to the mrcp server. Is asterisk 16 supports mrcp modules?. I am not using any speech server as of now

 As I am new to this Area, Is it mandatory to have a speech server to test MRCP or else we can test it with MRCP server itself?

Below is the error in Asterisk cli logs

 WARNING[2760]: src/mrcp_client_session.c:1263 : Failed to Create Session ASR-0 [2]
 NOTICE[2760]: src/mrcp_client_session.c:531 : Raise App Response ASR-0 [2] FAILURE [1]
 ERROR[2760]: app_mrcprecog.c:294 speech_on_channel_add: (ASR-0) Channel error status=1, response code=0!

Arvind mecala

unread,
Feb 13, 2020, 5:52:24 AM2/13/20
to UniMRCP
Hi Arsen,

Somehow I solved the above issue by restarting asterisk. However, now i stuck with the new problem as below.

[Feb 13 15:17:06] NOTICE[79252]: src/mrcp_sofiasip_client_agent.c:609  Receive SIP Event [nua_i_state] Status 0 INVITE sent [uni2]
[Feb 13 15:17:06] NOTICE[79252]: src/mrcp_sofiasip_client_agent.c:547  SIP Call State TTS-0 [calling]
[Feb 13 15:17:06] NOTICE[79386]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'INVITE' from '<sip:192.168.1.218>' failed for '192.168.1.218:5093' (callid: a341038e-c8e8-1238-c38e-86f8c263b07b) - No matching endpoint found
[Feb 13 15:17:06] NOTICE[79252]: src/mrcp_sofiasip_client_agent.c:609  Receive SIP Event [nua_r_invite] Status 401 Unauthorized [uni2]

Arsen Chaloyan

unread,
Feb 13, 2020, 6:27:10 PM2/13/20
to UniMRCP
Hi Arvind,

Check where SIP INVITE was sent to. This information is logged a few statements above to what you provided. I would guess you are sending SIP/MRCPv2 INVITE to Asterisk but not MRCP server. If my assumption is correct, then this is a configuration problem in the MRCP profile of Asterisk.

--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/004425ad-1d9f-45c3-9c41-9fb79b3c8da8%40googlegroups.com.


--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org

Arvind mecala

unread,
Feb 14, 2020, 7:08:59 AM2/14/20
to UniMRCP
Thanks Arsen, yeah its a port issue, I configured a wrong client sip port in mrcp2 profile which got corrected now. I have a few more basic doubts about unimrcp kindly answer them patience as I am new to this area.

1. Is unimrcp server acts as ASR /TTS as well? if not then while testing how it responding with speech for a text?

2. Is my understanding correct about the call flow as below. 

Asterisk(dialplan) ---->unimrcp server-------->speech server(ASR)

3. If I use a TTS like amazon polly, Is it mandatory to install the polly plugin on mrcp server? if yes, Is there any free plugins available for testing purpose(I saw those as commercial ones)

Rajnish Kumar

unread,
Feb 14, 2020, 9:17:37 AM2/14/20
to UniMRCP
Hi ,

Unimrcp server is act as speech server  amazon lex(ASR)  and amazon polly (TTS) you need to install and configured via unimrcp plugin (unimrcp-lex and unimrcp-polly)

Thanks
Rajnish

"CONFIDENTIALITY NOTICE: This email communication may contain private, confidential, or legally privileged information intended for the sole use of the designated and/or duly authorized recipient(s). If you are not the intended recipient or have received this email in error, please notify the sender immediately by email and permanently delete all copies of this email including all attachments without reading them. If you are the intended recipient, secure the contents in a manner that conforms to all applicable state and/or federal requirements related to privacy and confidentiality of such information."

Rajnish Kumar

unread,
Feb 14, 2020, 9:17:38 AM2/14/20
to uni...@googlegroups.com
Hi ALL,

I am facing problem while integration test connection with Unimrcp server + amazon lex.  After setting of proxy still i am getting end point failure

Please find pcap file and log for unimrcp

 

2020-02-14 13:55:31:429259 [INFO]   Start No-Input Timer [5000 ms] <1d8eb7cab39349b2>

2020-02-14 13:55:31:429268 [INFO]   Open Waveform File for Writing /opt/unimrcp/var/umslex-1d8eb7cab39349b2-1.wav, sampling-rate [8000]

2020-02-14 13:55:31:429408 [INFO]   Process RECOGNIZE Response <1d8eb7cab39349b2@speechrecog> [1]

2020-02-14 13:55:31:429415 [INFO]   State Transition IDLE -> RECOGNIZING <1d8eb7cab39349b2@speechrecog>

2020-02-14 13:55:31:429474 [INFO]   Send MRCPv2 Data 172.16.8.90:1544 <-> 172.16.8.90:34640 [83 bytes]

MRCP/2.0 83 1 200 IN-PROGRESS^M

Channel-Identifier: 1d8eb7cab39349b2@speechrecog^M

^M

 

2020-02-14 13:55:32:117871 [INFO]   Speech Detector State Transition NO-INPUT -> IN-PROGRESS [690 ms] <1d8eb7cab39349b2>

2020-02-14 13:55:32:117912 [INFO]   Start Input Timer [10000 ms] <1d8eb7cab39349b2>

2020-02-14 13:55:32:118107 [INFO]   Process START-OF-INPUT Event <1d8eb7cab39349b2@speechrecog> [1]

2020-02-14 13:55:32:118162 [INFO]   Send MRCPv2 Data 172.16.8.90:1544 <-> 172.16.8.90:34640 [115 bytes]

MRCP/2.0 115 START-OF-INPUT 1 IN-PROGRESS^M

Channel-Identifier: 1d8eb7cab39349b2@speechrecog^M

Input-Type: speech^M

^M

 

2020-02-14 13:55:33:677877 [INFO]   Speech Detector State Transition IN-PROGRESS -> COMPLETE [1560 ms] <1d8eb7cab39349b2>

2020-02-14 13:55:33:677917 [INFO]   Detector Stats: leading-silence=300 ms, input=860 ms, trailing-silence=210 ms <1d8eb7cab39349b2>

2020-02-14 13:55:33:678003 [INFO]   Input Complete [success] size=21920 bytes, dur=1370 ms <1d8eb7cab39349b2@lex>

2020-02-14 13:55:33:678110 [INFO]   PostContentAsync: bot-name [WebUiOrderFlowers] alias [Dev] user-id [1d8eb7cab39349b2] content-type [audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; is-big-endian=false] accept [text/plain; charset=utf-8] request-attribs [{}] credentials-profile [] <1d8eb7cab39349b2@lex>

2020-02-14 13:55:59:349957 [WARN]   Failed to Post Content: error [] exception [Unable to connect to endpoint with address : 192.168.119.43] <1d8eb7cab39349b2@lex>

2020-02-14 13:55:59:350066 [INFO]   Process RECOGNITION-COMPLETE Event <1d8eb7cab39349b2@speechrecog> [1]

2020-02-14 13:55:59:350090 [INFO]   State Transition RECOGNIZING -> RECOGNIZED <1d8eb7cab39349b2@speechrecog>

2020-02-14 13:55:59:350172 [INFO]   Send MRCPv2 Data 172.16.8.90:1544 <-> 172.16.8.90:34640 [238 bytes]

MRCP/2.0 238 RECOGNITION-COMPLETE 1 COMPLETE^M

Channel-Identifier: 1d8eb7cab39349b2@speechrecog^M

Completion-Cause: 006 recognizer-error^M

Waveform-Uri: <http://localhost/utterances/umslex-1d8eb7cab39349b2-1.wav>;size=21920;duration=1370^M

^M

 

2020-02-14 13:55:59:350750 [INFO]   TCP/MRCPv2 Peer Disconnected 172.16.8.90:1544 <-> 172.16.8.90:34640

2020-02-14 13:55:59:350930 [INFO]   Receive SIP Event [nua_i_bye] Status 200 Session Terminated [SIP-Agent-1]

2020-02-14 13:55:59:350948 [INFO]   Receive SIP Event [nua_i_state] Status 200 Session Terminated [SIP-Agent-1]

2020-02-14 13:55:59:350955 [NOTICE] SIP Call State 0x7f21bc001b68 [terminated]

2020-02-14 13:55:59:350965 [INFO]   Receive SIP Event [nua_i_terminated] Status 200 Session Terminated [SIP-Agent-1]

2020-02-14 13:55:59:350976 [INFO]   Deactivate Session 0x7f21bc001b68 <1d8eb7cab39349b2>

2020-02-14 13:55:59:350982 [INFO]   Terminate Session 0x7f21bc001b68 <1d8eb7cab39349b2>

2020-02-14 13:55:59:351015 [INFO]   Close <1d8eb7cab39349b2@lex>

2020-02-14 13:55:59:351028 [NOTICE] Lex Usage: 0/1/2

2020-02-14 13:55:59:351096 [INFO]   Remove Control Channel <1d8eb7cab39349b2@speechrecog> [0]

2020-02-14 13:55:59:357863 [INFO]   Close RTP Receiver 172.16.8.90:5000 <- 172.16.8.90:4000 [r:69 l:0 j:65 p:50 d:0 i:0]

2020-02-14 13:55:59:357884 [INFO]   Remove RTP Session 172.16.8.90:5000

2020-02-14 13:55:59:357910 [NOTICE] Destroy TCP/MRCPv2 Connection 172.16.8.90:1544 <-> 172.16.8.90:34640

2020-02-14 13:55:59:357939 [NOTICE] Remove Session <1d8eb7cab39349b2>

2020-02-14 13:55:59:357946 [INFO]   Session Terminated 0x7f21bc001b68 <1d8eb7cab39349b2>

2020-02-14 13:55:59:357963 [NOTICE] Destroy Session <1d8eb7cab39349b2>

 




Regards

Rajnish Kumar

Consultant

medium-logo.jpg

M: +91 8860966872




--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+u...@googlegroups.com.

Arvind mecala

unread,
Feb 14, 2020, 9:42:31 AM2/14/20
to UniMRCP
Hi Rajnish,

Thanks for your answer. Can you elaborate a bit more please. What do you mean by speech server?
Reply all
Reply to author
Forward
0 new messages