Unimrcp Azure SR Plugin error while returning the speech recognition result

97 views
Skip to first unread message

Shreelaxmi Khatagalli

unread,
Feb 10, 2022, 9:23:55 AM2/10/22
to UniMRCP
Hi,

I am using Unimrcp Azure SR plugin on trial license. 

I followed the Azure SR plugin installation manual. While performing the steps in last section ( Section 7.2 Launching client), I launched the sample UniMRCP client application umc by ./umc command.
Then to test a typical speech recognition scenario I issued the command run bsr1

I am getting the below response with error : tport_udp_error: Connection refused (111) [icmp type=3 code=3]

Complete response dump :

root@unimrcp-azure:/opt/unimrcp/bin# ./umc
2022-02-10 04:02:44:559038 [INFO]   Start Task [Framework Agent]
>2022-02-10 04:02:44:559413 [NOTICE] UniMRCP Client [1.7.0]
2022-02-10 04:02:44:559513 [INFO]   APR [1.5.2]
2022-02-10 04:02:44:559633 [NOTICE] Create MRCP Client
2022-02-10 04:02:44:559753 [NOTICE] Open Config File [/opt/unimrcp/conf/unimrcpclient.xml]
2022-02-10 04:02:44:560034 [INFO]   Set Property ip:10.120.0.4
2022-02-10 04:02:44:560115 [INFO]   Register Codec [PCMU]
2022-02-10 04:02:44:560174 [INFO]   Register Codec [PCMA]
2022-02-10 04:02:44:560229 [INFO]   Register Codec [L16]
2022-02-10 04:02:44:560291 [NOTICE] Register Resource [speechsynth]
2022-02-10 04:02:44:560350 [NOTICE] Register Resource [speechrecog]
2022-02-10 04:02:44:560406 [NOTICE] Register Resource [recorder]
2022-02-10 04:02:44:560462 [NOTICE] Register Resource [speakverify]
2022-02-10 04:02:44:560549 [INFO]   Register Resource Factory
2022-02-10 04:02:44:560630 [NOTICE] Create SofiaSIP Agent [SIP-Agent-1] [1.12.11-239-g54ef3e2] sip:10.120.0.4:8062;transport=udp
2022-02-10 04:02:44:560692 [INFO]   Register Signaling Agent [SIP-Agent-1]
2022-02-10 04:02:44:560750 [NOTICE] Create RTSP Client [RTSP-Agent-1] [100]
2022-02-10 04:02:44:560834 [INFO]   Register Signaling Agent [RTSP-Agent-1]
2022-02-10 04:02:44:560906 [NOTICE] Create MRCPv2 Agent [MRCPv2-Agent-1] [100]
2022-02-10 04:02:44:560984 [INFO]   Register Connection Agent [MRCPv2-Agent-1]
2022-02-10 04:02:44:561050 [NOTICE] Create Media Engine [Media-Engine-1]
2022-02-10 04:02:44:561110 [INFO]   Register Media Engine [Media-Engine-1]
2022-02-10 04:02:44:561170 [NOTICE] Create RTP Termination Factory 10.120.0.4:[4000,5000]
2022-02-10 04:02:44:561227 [INFO]   Register RTP Termination Factory [RTP-Factory-1]
2022-02-10 04:02:44:561292 [INFO]   Register RTP Settings [RTP-Settings-1]
2022-02-10 04:02:44:561350 [INFO]   Enter Directory [/opt/unimrcp/conf/client-profiles]
2022-02-10 04:02:44:561656 [NOTICE] Open Config File [/opt/unimrcp/conf/client-profiles/speechpro.xml]
2022-02-10 04:02:44:562042 [INFO]   Create RTSP Settings 10.120.0.4:8000
2022-02-10 04:02:44:562120 [INFO]   Register Signaling Settings [SpeechPro-RTSP-Settings]
2022-02-10 04:02:44:562183 [NOTICE] Create MRCPv1 Profile [sp1]
2022-02-10 04:02:44:562244 [INFO]   Register Profile [sp1]
2022-02-10 04:02:44:562303 [NOTICE] Open Config File [/opt/unimrcp/conf/client-profiles/lumenvox.xml]
2022-02-10 04:02:44:562697 [INFO]   Create SIP Settings 10.120.0.4:5060
2022-02-10 04:02:44:562826 [INFO]   Register Signaling Settings [LumenVox-SIP-Settings]
2022-02-10 04:02:44:562892 [INFO]   Create RTSP Settings 10.120.0.4:554
2022-02-10 04:02:44:562951 [INFO]   Register Signaling Settings [LumenVox-RTSP-Settings]
2022-02-10 04:02:44:563011 [NOTICE] Create MRCPv2 Profile [lv2]
2022-02-10 04:02:44:563070 [INFO]   Register Profile [lv2]
2022-02-10 04:02:44:563129 [NOTICE] Create MRCPv1 Profile [lv1]
2022-02-10 04:02:44:563187 [INFO]   Register Profile [lv1]
2022-02-10 04:02:44:563246 [NOTICE] Open Config File [/opt/unimrcp/conf/client-profiles/unimrcp.xml]
2022-02-10 04:02:44:563644 [INFO]   Create SIP Settings 10.120.0.4:8060
2022-02-10 04:02:44:563721 [INFO]   Register Signaling Settings [UniMRCP-SIP-Settings]
2022-02-10 04:02:44:563781 [INFO]   Create RTSP Settings 10.120.0.4:1554
2022-02-10 04:02:44:563836 [INFO]   Register Signaling Settings [UniMRCP-RTSP-Settings]
2022-02-10 04:02:44:563904 [NOTICE] Create MRCPv2 Profile [uni2]
2022-02-10 04:02:44:563958 [INFO]   Register Profile [uni2]
2022-02-10 04:02:44:564013 [NOTICE] Create MRCPv1 Profile [uni1]
2022-02-10 04:02:44:564066 [INFO]   Register Profile [uni1]
2022-02-10 04:02:44:564119 [NOTICE] Open Config File [/opt/unimrcp/conf/client-profiles/nuance.xml]
2022-02-10 04:02:44:564493 [INFO]   Create SIP Settings 10.120.0.4:5060
2022-02-10 04:02:44:564569 [INFO]   Register Signaling Settings [Nuance-SIP-Settings]
2022-02-10 04:02:44:564628 [INFO]   Create RTSP Settings 10.120.0.4:4900
2022-02-10 04:02:44:564684 [INFO]   Register Signaling Settings [Nuance-RTSP-Settings]
2022-02-10 04:02:44:564744 [INFO]   Register RTP Settings [Nuance-RTP-Settings]
2022-02-10 04:02:44:564804 [NOTICE] Create MRCPv2 Profile [nss2]
2022-02-10 04:02:44:564869 [INFO]   Register Profile [nss2]
2022-02-10 04:02:44:564924 [NOTICE] Create MRCPv1 Profile [nss1]
2022-02-10 04:02:44:564976 [INFO]   Register Profile [nss1]
2022-02-10 04:02:44:565038 [INFO]   Leave Directory [/opt/unimrcp/conf]
2022-02-10 04:02:44:565094 [NOTICE] Create Application
2022-02-10 04:02:44:565147 [INFO]   Register Application [UMC]
2022-02-10 04:02:44:565201 [INFO]   Start Task [MRCP Client]
2022-02-10 04:02:44:565368 [INFO]   Start Task [SIP-Agent-1]
2022-02-10 04:02:44:565489 [INFO]   Start Task [RTSP-Agent-1]
2022-02-10 04:02:44:565585 [INFO]   Start Task [MRCPv2-Agent-1]
2022-02-10 04:02:44:565681 [INFO]   Start Task [Media-Engine-1]
2022-02-10 04:02:44:566465 [NOTICE] MRCP Client Started
2022-02-10 04:02:44:566553 [INFO]   Enter Directory [/opt/unimrcp/conf/umc-scenarios]
2022-02-10 04:02:44:567142 [INFO]   Load Scenario Name [recog] Class [Recognizer]
2022-02-10 04:02:44:567763 [INFO]   Load Scenario Name [j1] Class [Recognizer]
2022-02-10 04:02:44:568355 [INFO]   Load Scenario Name [rec] Class [Recorder]
2022-02-10 04:02:44:568784 [INFO]   Load Scenario Name [tsr1] Class [Recognizer]
2022-02-10 04:02:44:569416 [INFO]   Load Scenario Name [params] Class [Params]
2022-02-10 04:02:44:569836 [INFO]   Load Scenario Name [ps1] Class [Recognizer]
2022-02-10 04:02:44:570593 [INFO]   Load Scenario Name [bss3] Class [Synthesizer]
2022-02-10 04:02:44:571263 [INFO]   Load Scenario Name [gv3] Class [Recognizer]
2022-02-10 04:02:44:571919 [INFO]   Load Scenario Name [gv1] Class [Recognizer]
2022-02-10 04:02:44:572533 [INFO]   Load Scenario Name [bss2] Class [Synthesizer]
2022-02-10 04:02:44:572944 [INFO]   Load Scenario Name [dtmf] Class [DtmfRecognizer]
2022-02-10 04:02:44:573436 [INFO]   Load Scenario Name [verify] Class [Verifier]
2022-02-10 04:02:44:573814 [INFO]   Load Scenario Name [bsr2] Class [DtmfRecognizer]
2022-02-10 04:02:44:574252 [INFO]   Load Scenario Name [gsr3] Class [DtmfRecognizer]
2022-02-10 04:02:44:574719 [INFO]   Load Scenario Name [gv4] Class [Recognizer]
2022-02-10 04:02:44:575475 [INFO]   Load Scenario Name [gsr1] Class [Recognizer]
2022-02-10 04:02:44:575994 [INFO]   Load Scenario Name [ps2] Class [Recognizer]
2022-02-10 04:02:44:576437 [INFO]   Load Scenario Name [synth] Class [Synthesizer]
2022-02-10 04:02:44:577007 [INFO]   Load Scenario Name [j2] Class [Recognizer]
2022-02-10 04:02:44:577410 [INFO]   Load Scenario Name [lex1] Class [Recognizer]
2022-02-10 04:02:44:577861 [INFO]   Load Scenario Name [gsr2] Class [Recognizer]
2022-02-10 04:02:44:578570 [INFO]   Load Scenario Name [gdf1] Class [Recognizer]
2022-02-10 04:02:44:579074 [INFO]   Load Scenario Name [bss1] Class [Synthesizer]
2022-02-10 04:02:44:579633 [INFO]   Load Scenario Name [gv2] Class [Recognizer]
2022-02-10 04:02:44:580338 [INFO]   Load Scenario Name [bsr1] Class [Recognizer]
run bsr1
>[1]
2022-02-10 04:03:20:872857 [NOTICE] Create MRCP Handle 0x7f8fe8033f30 [uni2]
2022-02-10 04:03:20:872896 [INFO]   Create Channel umc-1 <new>
2022-02-10 04:03:20:872919 [INFO]   Receive App Request umc-1 <new> [2]
2022-02-10 04:03:20:873008 [INFO]   Add MRCP Handle umc-1 <new>
2022-02-10 04:03:20:873179 [NOTICE] Add Control Channel umc-1 <new@speechrecog>
2022-02-10 04:03:20:876008 [INFO]   Send Offer umc-1 <new> [c:1 a:1 v:0] to 10.120.0.4:8060
2022-02-10 04:03:20:876049 [INFO]   Local SDP umc-1 <new>
v=0
o=UniMRCPClient 0 0 IN IP4 10.120.0.4
s=-
c=IN IP4 10.120.0.4
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:new
a=resource:speechrecog
a=cmid:1
m=audio 4000 RTP/AVP 97 98 99 102
a=rtpmap:97 PCMU/16000
a=rtpmap:98 PCMA/16000
a=rtpmap:99 L16/16000
a=rtpmap:102 telephone-event/16000
a=fmtp:102 0-15
a=sendonly
a=ptime:20
a=mid:1

tport_udp_error: Connection refused (111) [icmp type=3 code=3]
2022-02-10 04:03:20:877039 [INFO]   Receive SIP Event [nua_i_state] Status 0 INVITE sent [SIP-Agent-1]
2022-02-10 04:03:20:877138 [NOTICE] SIP Call State umc-1 [calling]
        reported by [10.120.0.4]:0
nta: INVITE (963363642): Connection refused (111) with udp/[10.120.0.4]:8060
2022-02-10 04:03:20:877535 [INFO]   Receive SIP Event [nua_r_invite] Status 503 Service Unavailable [SIP-Agent-1]
2022-02-10 04:03:20:877558 [INFO]   Receive SIP Event [nua_i_state] Status 503 Service Unavailable [SIP-Agent-1]
2022-02-10 04:03:20:877568 [NOTICE] SIP Call State umc-1 [terminated]
2022-02-10 04:03:20:877598 [INFO]   Receive Answer umc-1 <new> [c:0 a:0 v:0] Status 503
2022-02-10 04:03:20:877609 [INFO]   Raise App Response umc-1 <new> [2] FAILURE [2]
2022-02-10 04:03:20:877631 [INFO]   Receive App Request umc-1 <new> [1]
2022-02-10 04:03:20:877639 [INFO]   Terminate Session umc-1 <new>
2022-02-10 04:03:20:877659 [INFO]   Session Terminated umc-1 <new>
2022-02-10 04:03:20:877766 [INFO]   Remove MRCP Handle umc-1 <new>
2022-02-10 04:03:20:877785 [INFO]   Raise App Response umc-1 <new> [1] SUCCESS [0]
2022-02-10 04:03:20:877805 [NOTICE] Destroy MRCP Handle umc-1

Kindly let me know how to resolve this issue.

I am running both server and client on the same machine with ubuntu.

TIA.

Best,
Shree

Daniel Ng

unread,
Feb 11, 2022, 6:20:53 AM2/11/22
to UniMRCP
Hi Shree,
Are you running the Unimrcp Server SIP transport as TCP only? I've only come across that error when I had to set (within the Unimrcpserver.xml configuration file) <sip-transport>tcp</sip-transport>,  the default is usually <sip-transport>udp,tcp</sip-transport> I think.

Anyway, the UMC application appears to send the initial SIP invite to the Unimrcp Server via UDP only.  If your sip transport configuration is already correct/default, then alternatively check your firewall on your Ubuntu server to make sure that those ports are open.   This all assumes that you have your Unimrcp Server up and running too?

All the best Shree.
Kind regards,
Daniel

Shreelaxmi Khatagalli

unread,
Feb 11, 2022, 9:36:23 AM2/11/22
to UniMRCP
Hello Daniel,

Thank you for the response. The configuration for  sip-transport is default ( that is,  <sip-transport>udp,tcp</sip-transport>). I have the unimrcp server running. I verified it with the verification steps provided in the installation manual. 

Firewall settings appear to be correct. Could there be any other reason?

Best,
Shreelaxmi

Daniel Ng

unread,
Feb 11, 2022, 10:18:05 AM2/11/22
to UniMRCP
Hi Shree,
Sorry from my own experience, those were the only reasons (i.e. that the IP/Server and port were not in use i.e. service not running or service not running on that port and IP address or it is blocked by firewall) that I've experienced where the umc reported connection refused.

What do you get if you run "netstat -tulpn | grep LISTEN | grep 8060" (you probably either need to run it as su or via sudo)?  If you post that output of that netstat command, along with the Unimrcp server log, perhaps some of the Unimrcp guys on this group can help you.

All the best,
Daniel

Arsen Chaloyan

unread,
Mar 14, 2022, 2:27:16 PM3/14/22
to UniMRCP
Hi Shree,

> nta: INVITE (963363642): Connection refused (111) with udp/[10.120.0.4]:8060

The above statement suggests that there was no service listening on 10.120.04:8060.

The server logs may help. Also, use netstat

netstat -nap | grep 8060



--
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/00279b20-2faf-470e-a37f-633593e757e0n%40googlegroups.com.


--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org
Reply all
Reply to author
Forward
0 new messages