Answer the question
In order to leave comments, you need to log in
Asterisk. Failed to Create Session ASR or TTS. Unimrcp. Why can a session break be connected?
Hello, the problem is the following.
Installed aster and unimrcp on the server. Accordingly, you need to test the performance by calling from a sip background to 199333.
In the diaplan, the following:
exten => _199333,1,Macro(to_ast_test_two,99111,DEV,/Records/applications/full/63);calculator
[macro-to_ast_test]
exten => s ,1,Answer
exten => s,n,MRCPRecog( 10.201.2.2:8083/grammar//static/hello.grregexp,p=d...
exten => s,n,Verbose(Status is: ${RECOGSTATUS} and result is: ${RECOG_RESULT})
exten => s,n,Hangup
[macro-to_ast_test_two]
exten => s,1,Answer
exten => s,n,Playback(hello)
exten => s,n,MRCPSynth( Welcome to the company of Horns and Hooves!,p=default)
exten => s,n,Verbose(1,${SYNTHSTATUS})
exten => s,n,Hangup
[macro-to_ast_test_tree]
exten => s,1,Answer
exten => s,n,Wait(1)
exten = > s,n,MRCPSynth(Welcome to LumenVox)
exten => s,n,Verbose(1,${SYNTHSTATUS})
[macro-lumenvox_test]
exten => s,1,Answer
exten => s,n,Wait(1 )
exten => s,n,MRCPRecog(builtin:grammar/boolean,&f=beep)
exten => s,n,Verbose(1,Status is: ${RECOGSTATUS} and Result is: ${RECOG_RESULT})
Tried to play all four types of macros, crashes on a line with MRCPSynth or MRCPRecog with the error mrcp_client_session.c: Failed to Create Session ASR or
/mrcp_client_session.c: Failed to Create Session TTS;
I think this is due to the fact that the wrong settings in mrcp.conf
[general]
default-asr-profile = speech-nuance-asr-mrcp2
default-tts-profile = speech-nuance-asr-mrcp2
log-level = DEBUG
max- connection-count = 100
offer-new-connection = 1
[speech-nuance-asr-mrcp2]
; MRCP version.
version = 2
server-ip = *.*.*.* - here ip mrcp
; SIP port on the MRCP server.
server-port = 7060 - port here mrcp
force-destination = 1
client-ip = 127.0.0.1 - SofiaSIP from unimrcpclient.xml
client-port = 8062 SofiaSIP from unimrcpclient.xml
rtp-ip = 127.0.0.1
...I will omit the rest
in res-speech-unimrcp.conf
specified unimrcp-profile = nss2 ; Nuance MRCPv2 Server
Is this the right choice? In general, I tried to specify
unimrcp-profile = uni2 ; UniMRCP MRCPv2 Server, but the result is the same.
Am I specifying client-port and client-ip correctly?
Please advise on this issue.
General log when calling:
[2019-02-01 16:04:05] NOTICE[31577][C-0000001e] app_mrcpsynth.c: MRCPSynth() prompt: Welcome to the company of Horns and Hooves!
[2019-02-01 16:04:05] NOTICE[31577][C-0000001e] app_mrcpsynth.c: MRCPSynth() options: p=default
[2019-02-01 16:04:05] NOTICE[31577][ C-0000001e] src/mrcp_application.c: Create MRCP Handle 0x7f16540ae428 [speech-nuance5-mrcp2]
[2019-02-01 16:04:05] NOTICE[31577][C-0000001e] src/mrcp_client_session.c: Create Channel TTS-26
[2019-02-01 16:04:05] NOTICE[13922] src/ mrcp_client_session.c: Receive App Request TTS-26 [2]
[2019-02-01 16:04:05] WARNING[13922] src/mrcp_client_session.c: Failed to Create Session TTS-26 [2]
[2019-02- 01 16:04:05] NOTICE[13922] src/mrcp_client_session.c: Raise App Response TTS-26 [2] FAILURE [1]
[2019-02-01 16:04:05] ERROR[13922] app_mrcpsynth.c: (TTS-26) Channel error status=1, response code=0!
[2019-02-01 16:04:05] NOTICE[13922] src/mrcp_client_session.c: Receive App Request TTS-26 [1]
[2019-02-01 16:04:05] NOTICE[13922] src/mrcp_client_session .c: Raise App Response TTS-26 [1] SUCCESS [0]
[2019-02-01 16:04:05] NOTICE[13922] src/mrcp_application.c: Destroy MRCP Handle TTS-26
[2019-02-01 16:04:05] NOTICE[31577][C-0000001e] app_mrcpsynth .c: MRCPSynth() exiting status: ERROR on SIP/511-0000001b
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question