mrcpv2集成,报404错误
gogo32123 发布于2019-12 浏览:3635 回复:1
0
收藏

各种测试都正常,就是跟 freeswitch 集成后,播 5001 后自动挂断,日志显示  mod_unimrcp.c:3615 (ASR-0) RECOGNIZE failed: status = 404

请问可能是什么地方有问题? 谢谢。

日志:

2019-12-05 01:38:06.368189 [DEBUG] apt_consumer_task.c:141 () Wait for Messages [MRCP Client]
2019-12-05 01:38:06.368189 [INFO] mrcp_sofiasip_client_agent.c:609 () Receive SIP Event [nua_i_state] Status 0 INVITE sent [unimrcpv2]
2019-12-05 01:38:06.368189 [NOTICE] mrcp_sofiasip_client_agent.c:547 (ASR-0) SIP Call State ASR-0 [calling]
2019-12-05 01:38:06.388109 [INFO] mrcp_sofiasip_client_agent.c:609 () Receive SIP Event [nua_r_invite] Status 200 OK [unimrcpv2]
2019-12-05 01:38:06.388109 [INFO] mrcp_sofiasip_client_agent.c:609 () Receive SIP Event [nua_i_state] Status 200 OK [unimrcpv2]
2019-12-05 01:38:06.388109 [NOTICE] mrcp_sofiasip_client_agent.c:547 (ASR-0) SIP Call State ASR-0 [ready]
2019-12-05 01:38:06.388109 [INFO] mrcp_sofiasip_client_agent.c:433 (ASR-0) Remote SDP ASR-0
v=0
o=BaiduSpeechServer 4082888523692956012 5781944038297831710 IN IP4 172.17.40.138
s=-
c=IN IP4 172.17.40.138
t=0 0
m=application 1544 TCP/MRCPv2 1
a=setup:passive
a=connection:new
a=channel:cb86185a172911ea@speechrecog
a=cmid:1
m=audio 5020 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=recvonly
a=mid:1

2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:265 () Signal Message to [MRCP Client] [0x7f018400c5d0;1;0]
2019-12-05 01:38:06.388109 [INFO] mrcp_sofiasip_client_agent.c:609 () Receive SIP Event [nua_i_active] Status 200 Call active [unimrcpv2]
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:337 () Process Message [MRCP Client] [0x7f018400c5d0;1;0]
2019-12-05 01:38:06.388109 [INFO] mrcp_client_session.c:151 (ASR-0) Receive Answer ASR-0 [c:1 a:1 v:0] Status 200
2019-12-05 01:38:06.388109 [DEBUG] mrcp_client_session.c:1141 (ASR-0) Modify Control Channel ASR-0
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:265 () Signal Message to [MRCPv2ConnectionAgent] [0x7f017c001790;1;0]
2019-12-05 01:38:06.388109 [DEBUG] mrcp_client_session.c:1180 (ASR-0) Modify Media Termination ASR-0
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:265 () Signal Message to [MediaEngine] [0x7f017c0014a0;1;0]
2019-12-05 01:38:06.388109 [DEBUG] apt_consumer_task.c:141 () Wait for Messages [MRCP Client]
2019-12-05 01:38:06.388109 [DEBUG] apt_poller_task.c:261 () Process Poller Wakeup [MRCPv2ConnectionAgent]
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:337 () Process Message [MRCPv2ConnectionAgent] [0x7f017c001790;1;0]
2019-12-05 01:38:06.388109 [NOTICE] mrcp_client_connection.c:338 () Established TCP/MRCPv2 Connection 172.17.40.138:55874 <-> 172.17.40.138:1544
2019-12-05 01:38:06.388109 [INFO] mrcp_client_connection.c:435 (ASR-0) Add Control Channel 172.17.40.138:55874 <-> 172.17.40.138:1544 [1]
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:265 () Signal Message to [MRCP Client] [0x7f0188000b80;2;1]
2019-12-05 01:38:06.388109 [DEBUG] apt_poller_task.c:251 () Wait for Messages [MRCPv2ConnectionAgent]
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:337 () Process Message [MRCP Client] [0x7f0188000b80;2;1]
2019-12-05 01:38:06.388109 [DEBUG] mrcp_client_session.c:311 (ASR-0) Control Channel Modified ASR-0
2019-12-05 01:38:06.388109 [DEBUG] apt_consumer_task.c:141 () Wait for Messages [MRCP Client]
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:337 () Process Message [MediaEngine] [0x7f017c0014a0;1;0]
2019-12-05 01:38:06.388109 [INFO] mpf_rtp_stream.c:331 () Enable RTP Session 172.17.40.138:4000
2019-12-05 01:38:06.388109 [DEBUG] mpf_bridge.c:129 () Create Linear Audio Bridge ASR-0
2019-12-05 01:38:06.388109 [INFO] mpf_rtp_stream.c:921 () Open RTP Transmitter 172.17.40.138:4000 -> 172.17.40.138:5020
2019-12-05 01:38:06.388109 [INFO] mpf_bridge.c:93 () Media Path ASR-0 Source->[LPCM/8000/1]->Bridge->[LPCM/8000/1]->Encoder->[PCMU/8000/1]->Sink
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:265 () Signal Message to [MRCP Client] [0x7f018c010e60;3;0]
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:337 () Process Message [MRCP Client] [0x7f018c010e60;3;0]
2019-12-05 01:38:06.388109 [DEBUG] mrcp_client_session.c:985 (ASR-0) Media Termination Modified ASR-0
2019-12-05 01:38:06.388109 [INFO] mrcp_client_session.c:455 (ASR-0) Raise App Response ASR-0 [2] SUCCESS [0]
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:1900 (ASR-0) RECOGNIZER channel is ready, codec = LPCM, sample rate = 8000
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:1584 (ASR-0) CLOSED ==> READY
2019-12-05 01:38:06.388109 [DEBUG] apt_consumer_task.c:141 () Wait for Messages [MRCP Client]
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:1062 (ASR-0) channel is ready
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] switch_core_media_bug.c:970 Attaching BUG to sofia/internal/1000@172.17.40.138
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:1465 (ASR-0) param = start-input-timers, val = false
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:1465 (ASR-0) param = no-input-timeout, val = 80000
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:1465 (ASR-0) param = recognition-timeout, val = 80000
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:3201 (ASR-0) grammar = hello, name =
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:3226 (ASR-0) Grammar is inside file
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:3290 (ASR-0) grammar is application/srgs+xml
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:2361 (ASR-0) Loading grammar ea97b30f-8743-48a4-9834-0b77c5fb7383, data =
7f35fe47-61dc-4942-b412-585d7804d860 7f35fe47-61dc-4942-b412-585d7804d860     xmlns=http://www.w3.org/2001/06/grammar
7f35fe47-61dc-4942-b412-585d7804d860     xmlns:sapi="http://schemas.microsoft.com/Speech/2002/06/SRGSExtensions">
7f35fe47-61dc-4942-b412-585d7804d860
7f35fe47-61dc-4942-b412-585d7804d860
7f35fe47-61dc-4942-b412-585d7804d860
7f35fe47-61dc-4942-b412-585d7804d860
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:1584 (ASR-0) READY ==> PROCESSING
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:265 () Signal Message to [MRCP Client] [0x7f01840149e0;4;0]
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:337 () Process Message [MRCP Client] [0x7f01840149e0;4;0]
2019-12-05 01:38:06.388109 [INFO] mrcp_client_session.c:392 (ASR-0) Receive App MRCP Request ASR-0
2019-12-05 01:38:06.388109 [INFO] mrcp_client_session.c:622 (ASR-0) Send MRCP Request ASR-0 [1]
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:265 () Signal Message to [MRCPv2ConnectionAgent] [0x7f017c001790;1;0]
2019-12-05 01:38:06.388109 [DEBUG] apt_consumer_task.c:141 () Wait for Messages [MRCP Client]
2019-12-05 01:38:06.388109 [DEBUG] apt_poller_task.c:261 () Process Poller Wakeup [MRCPv2ConnectionAgent]
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:337 () Process Message [MRCPv2ConnectionAgent] [0x7f017c001790;1;0]
2019-12-05 01:38:06.388109 [INFO] mrcp_client_connection.c:530 (ASR-0) Send MRCPv2 Data 172.17.40.138:55874 <-> 172.17.40.138:1544 [495 bytes]
MRCP/2.0 495 DEFINE-GRAMMAR 1
Channel-Identifier: cb86185a172911ea@speechrecog
Content-Type: application/srgs+xml
Content-Id: ea97b30f-8743-48a4-9834-0b77c5fb7383
Content-Length: 305


    xmlns=http://www.w3.org/2001/06/grammar
    xmlns:sapi="http://schemas.microsoft.com/Speech/2002/06/SRGSExtensions">

 

2019-12-05 01:38:06.388109 [DEBUG] apt_poller_task.c:246 () Wait for Messages [MRCPv2ConnectionAgent] timeout [3000]
2019-12-05 01:38:06.388109 [DEBUG] apt_poller_task.c:269 () Process Signalled Descriptor [MRCPv2ConnectionAgent]
2019-12-05 01:38:06.388109 [INFO] mrcp_client_connection.c:635 () Receive MRCPv2 Data 172.17.40.138:55874 <-> 172.17.40.138:1544 [112 bytes]
MRCP/2.0 112 1 200 COMPLETE
Channel-Identifier: cb86185a172911ea@speechrecog
Completion-Cause: 000 success


2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:265 () Signal Message to [MRCP Client] [0x7f0188001000;2;3]
2019-12-05 01:38:06.388109 [DEBUG] apt_poller_task.c:251 () Wait for Messages [MRCPv2ConnectionAgent]
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:337 () Process Message [MRCP Client] [0x7f0188001000;2;3]
2019-12-05 01:38:06.388109 [INFO] mrcp_client_session.c:500 (ASR-0) Raise App MRCP Response ASR-0
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:3658 (ASR-0) grammar loaded
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:1584 (ASR-0) PROCESSING ==> READY
2019-12-05 01:38:06.388109 [DEBUG] apt_consumer_task.c:141 () Wait for Messages [MRCP Client]
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:2526 (ASR-0) Disabling all grammars
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:2485 (ASR-0) Enabling grammar ea97b30f-8743-48a4-9834-0b77c5fb7383
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:2848 (ASR-0) "recognition-timeout": "80000"
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:2848 (ASR-0) "start-input-timers": "false"
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:2848 (ASR-0) "no-input-timeout": "80000"
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:265 () Signal Message to [MRCP Client] [0x7f018400c1d0;4;0]
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:337 () Process Message [MRCP Client] [0x7f018400c1d0;4;0]
2019-12-05 01:38:06.388109 [INFO] mrcp_client_session.c:392 (ASR-0) Receive App MRCP Request ASR-0
2019-12-05 01:38:06.388109 [INFO] mrcp_client_session.c:622 (ASR-0) Send MRCP Request ASR-0 [2]
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:265 () Signal Message to [MRCPv2ConnectionAgent] [0x7f017c001790;1;0]
2019-12-05 01:38:06.388109 [DEBUG] apt_consumer_task.c:141 () Wait for Messages [MRCP Client]
2019-12-05 01:38:06.388109 [DEBUG] apt_poller_task.c:261 () Process Poller Wakeup [MRCPv2ConnectionAgent]
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:337 () Process Message [MRCPv2ConnectionAgent] [0x7f017c001790;1;0]
2019-12-05 01:38:06.388109 [INFO] mrcp_client_connection.c:530 (ASR-0) Send MRCPv2 Data 172.17.40.138:55874 <-> 172.17.40.138:1544 [275 bytes]
MRCP/2.0 275 RECOGNIZE 2
Channel-Identifier: cb86185a172911ea@speechrecog
Content-Type: text/uri-list
Cancel-If-Queue: false
Recognition-Timeout: 80000
Start-Input-Timers: false
No-Input-Timeout: 80000
Content-Length: 44

session:ea97b30f-8743-48a4-9834-0b77c5fb7383
2019-12-05 01:38:06.388109 [DEBUG] apt_poller_task.c:246 () Wait for Messages [MRCPv2ConnectionAgent] timeout [3000]
2019-12-05 01:38:06.388109 [DEBUG] apt_poller_task.c:269 () Process Signalled Descriptor [MRCPv2ConnectionAgent]
2019-12-05 01:38:06.388109 [INFO] mrcp_client_connection.c:635 () Receive MRCPv2 Data 172.17.40.138:55874 <-> 172.17.40.138:1544 [80 bytes]
MRCP/2.0 80 2 404 COMPLETE
Channel-Identifier: cb86185a172911ea@speechrecog


2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:265 () Signal Message to [MRCP Client] [0x7f0188001000;2;3]
2019-12-05 01:38:06.388109 [DEBUG] apt_poller_task.c:251 () Wait for Messages [MRCPv2ConnectionAgent]
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:337 () Process Message [MRCP Client] [0x7f0188001000;2;3]
2019-12-05 01:38:06.388109 [INFO] mrcp_client_session.c:500 (ASR-0) Raise App MRCP Response ASR-0
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:3615 (ASR-0) RECOGNIZE failed: status = 404
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:1584 (ASR-0) READY ==> ERROR
2019-12-05 01:38:06.388109 [DEBUG] apt_consumer_task.c:141 () Wait for Messages [MRCP Client]
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] switch_ivr_async.c:5133 Error loading Grammar
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:265 () Signal Message to [MRCP Client] [0x7f0184014a30;4;0]
7f35fe47-61dc-4942-b412-585d7804d860 2019-12-05 01:38:06.388109 [DEBUG] mod_unimrcp.c:930 (ASR-0) Waiting for MRCP session to terminate
2019-12-05 01:38:06.388109 [DEBUG] apt_task.c:337 () Process Message [MRCP Client] [0x7f0184014a30;4;0]

 

 

 

收藏
点赞
0
个赞
快速回复
TOP
切换版块