Can't find profile, default
MrityunjoyS opened this issue · 2 comments
I've installed unimrcp, asterisk and for calling I'm using zoiper.
Extensions.conf file -->
[from-internal]
exten => 6112,1,Answer()
same => n,MRCPRecog(builtin:grammar/number,p=default&t=5000&b=1&ct=0.7&spl=en-US&f=hello-world)
same => n,Verbose(1, ${RECOGSTATUS}, ${RECOG_COMPLETION_CAUSE}, ${RECOG_RESULT})
same => n,Hangup()
mrcp.conf file -->
[general]
; Default ASR and TTS profiles.
default-asr-profile = speech-nuance5-mrcp2
default-tts-profile = speech-nuance5-mrcp2
; UniMRCP logging level to appear in Asterisk logs. Options are:
; EMERGENCY|ALERT|CRITICAL|ERROR|WARNING|NOTICE|INFO|DEBUG -->
log-level = DEBUG
max-connection-count = 100
offer-new-connection = 1
; rx-buffer-size = 1024
; tx-buffer-size = 1024
; request-timeout = 5000
; speech-channel-timeout = 30000
;
; Profile for Nuance Speech Server MRCPv1
;
[unimrcpv1]
; MRCP settings
version = 1
;
; RTSP settings
server-ip = 192.168.1.9
server-port = 1554
resource-location = media
speechsynth = speechsynthesizer
; RTP factory
rtp-ip = 192.168.1.9
rtp-port-min = 28000
rtp-port-max = 29000
;
; Jitter buffer settings
playout-delay = 50
max-playout-delay = 200
; RTP settings
ptime = 20
codecs = PCMU PCMA L16/96/8000 telephone-event/101/8000
; RTCP settings
rtcp = 0
; Profile for Nuance Speech Server MRCPv2
[unimrcpv2]
; MRCP settings
version = 2
;
; SIP settings
server-ip = 192.168.1.9
server-port = 8004
; SIP user agent
client-ip = 192.168.1.9
;client-port = 60820
client-port = 25097
sip-transport = udp
;
; RTP factory
rtp-ip = 192.168.1.9
rtp-port-min = 28000
rtp-port-max = 29000
;
; Jitter buffer settings
playout-delay = 50
max-playout-delay = 200
; RTP settings
ptime = 20
codecs = PCMU PCMA L16/96/8000 telephone-event/101/8000
; RTCP settings
rtcp = 0
When I'm dialing this connection, getting below error -->
-- Executing [6112@from-internal:2] MRCPRecog("PJSIP/6001-0000000f", "builtin:grammar/number,p=default&t=5000&b=1&ct=0.7&spl=en-US&f=hello-world") in new stack
[Sep 9 12:24:47] NOTICE[5746][C-00000010]: app_mrcprecog.c:1086 app_recog_exec: MRCPRecog() grammar: builtin:grammar/number
[Sep 9 12:24:47] NOTICE[5746][C-00000010]: app_mrcprecog.c:1107 app_recog_exec: MRCPRecog() options: p=default&t=5000&b=1&ct=0.7&spl=en-US&f=hello-world
> [Sep 9 12:24:47] ERROR[5746][C-00000010]: app_mrcprecog.c:1166 app_recog_exec: (ASR-14) Can't find profile, default
[Sep 9 12:24:47] NOTICE[5746][C-00000010]: app_mrcprecog.c:1047 mrcprecog_exit: MRCPRecog() exiting status: ERROR on PJSIP/6001-0000000f
== Spawn extension (from-internal, 6112, 2) exited non-zero on 'PJSIP/6001-0000000f'
Any suggestion in this issue. Thanks in advance.
mrcp.conf
default-asr-profile = speech-nuance5-mrcp2
But there are no profile in such name profile name exist is [unimrcpv2]
same => n,MRCPRecog(builtin:grammar/number,p=default&t=5000&b=1&ct=0.7&spl=en-US&f=hello-world)
Change to
same => n,MRCPRecog(builtin:grammar/number,p=unimrcpv2&t=5000&b=1&ct=0.7&spl=en-US&f=hello-world)
Thanks @bikramjitroy , I understood the mistake and made changes accordingly so above error is resolved.
So again when I tried dialing getting below output -->
[Sep 9 15:24:03] NOTICE[10930][C-00000002]: app_mrcprecog.c:1086 app_recog_exec: MRCPRecog() grammar: builtin:grammar/number
[Sep 9 15:24:03] NOTICE[10930][C-00000002]: app_mrcprecog.c:1107 app_recog_exec: MRCPRecog() options: p=speech-nuance5-mrcp2&t=5000&b=1&ct=0.7&spl=en-US&f=hello-world
[Sep 9 15:24:03] NOTICE[10930][C-00000002]: src/mrcp_application.c:117 Create MRCP Handle 0x7f6d58013388 [speech-nuance5-mrcp2]
[Sep 9 15:24:03] NOTICE[10930][C-00000002]: src/mrcp_client_session.c:131 Create Channel ASR-1 <new>
[Sep 9 15:24:03] NOTICE[10883]: src/mrcp_client_session.c:385 Receive App Request ASR-1 <new> [2]
[Sep 9 15:24:03] NOTICE[10883]: src/mrcp_client.c:697 Add MRCP Handle ASR-1 <new>
[Sep 9 15:24:03] NOTICE[10883]: src/mrcp_client_session.c:717 Add Control Channel ASR-1 <new@speechrecog>
[Sep 9 15:24:03] NOTICE[10883]: src/mrcp_client_session.c:409 Send Offer ASR-1 <new> [c:1 a:1 v:0] to 192.168.1.9:8060
[Sep 9 15:24:03] NOTICE[10883]: src/mrcp_sofiasip_client_agent.c:357 Local SDP ASR-1 <new>
v=0
o=Asterisk 0 0 IN IP4 192.168.1.9
s=-
c=IN IP4 192.168.1.9
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:new
a=resource:speechrecog
a=cmid:1
m=audio 28000 RTP/AVP 0 8 96 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 L16/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendonly
a=ptime:20
a=mid:1
[Sep 9 15:24:03] NOTICE[10887]: src/mrcp_sofiasip_client_agent.c:617 Receive SIP Event [nua_i_state] Status 0 INVITE sent [speech-nuance5-mrcp2]
[Sep 9 15:24:03] NOTICE[10887]: src/mrcp_sofiasip_client_agent.c:555 SIP Call State ASR-1 [calling]
[Sep 9 15:24:03] NOTICE[10887]: src/mrcp_sofiasip_client_agent.c:617 Receive SIP Event [nua_r_invite] Status 503 Service Unavailable [speech-nuance5-mrcp2]
[Sep 9 15:24:03] NOTICE[10887]: src/mrcp_sofiasip_client_agent.c:617 Receive SIP Event [nua_i_state] Status 503 Service Unavailable [speech-nuance5-mrcp2]
[Sep 9 15:24:03] NOTICE[10887]: src/mrcp_sofiasip_client_agent.c:555 SIP Call State ASR-1 [terminated]
[Sep 9 15:24:03] NOTICE[10883]: src/mrcp_client_session.c:149 Receive Answer ASR-1 <new> [c:0 a:0 v:0] Status 503
[Sep 9 15:24:03] NOTICE[10883]: src/mrcp_client_session.c:453 Raise App Response ASR-1 <new> [2] FAILURE [2]
_**[Sep 9 15:24:03] ERROR[10883]: app_mrcprecog.c:294 speech_on_channel_add: (ASR-1) Channel error status=2, response code=503!**_
[Sep 9 15:24:03] NOTICE[10883]: src/mrcp_client_session.c:385 Receive App Request ASR-1 <new> [1]
[Sep 9 15:24:03] NOTICE[10883]: src/mrcp_client_session.c:828 Terminate Session ASR-1 <new>
[Sep 9 15:24:03] NOTICE[10883]: src/mrcp_client_session.c:207 Session Terminated ASR-1 <new>
[Sep 9 15:24:03] NOTICE[10883]: src/mrcp_client.c:707 Remove MRCP Handle ASR-1 <new>
[Sep 9 15:24:03] NOTICE[10883]: src/mrcp_client_session.c:453 Raise App Response ASR-1 <new> [1] SUCCESS [0]
[Sep 9 15:24:03] NOTICE[10883]: src/mrcp_application.c:211 Destroy MRCP Handle ASR-1
[Sep 9 15:24:03] NOTICE[10930][C-00000002]: app_mrcprecog.c:1047 mrcprecog_exit: MRCPRecog() exiting status: ERROR on PJSIP/6001-00000001
== Spawn extension (from-internal, 6112, 2) exited non-zero on 'PJSIP/6001-00000001'
Getting this error