AaronZhangL / unimrcp

Automatically exported from code.google.com/p/unimrcp
Apache License 2.0
0 stars 0 forks source link

Failed to Create Engine Channel 0x7f966c006f28 <96b46c66cbba4e4c> [speechsynth] #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install UniMRCP Server 1.0
2. Install Cepstral Plugin by use of patch provided by Christopher Rienzo in 
http://jira.freeswitch.org/browse/FSMOD-66
3. Request speech from cepstral via any MRCP client (I tried FreeSWITCH 
mod_unimrcp and unimrcpclient)

What version of the product are you using? On what operating system?

Version 1.0.0 (build from svn trunk revision 1751) on Linux voip-int-test 
2.6.32.15 #1 SMP Thu Jun 10 20:45:11 CEST 2010 x86_64 Intel(R) Xeon(R) CPU 
X3320 @ 2.50GHz GenuineIntel GNU/Linux

Please provide any additional information below.

2010-07-30 09:12:44:166689 [NOTICE] Accepted TCP Connection 10.0.0.200:1554 <-> 
10.0.0.200:46293
2010-07-30 09:12:44:166786 [INFO]   Receive RTSP Stream 10.0.0.200:1554 <-> 
10.0.0.200:46293 [419 bytes]
SETUP rtsp://10.0.0.200:1554/media/cepstral RTSP/1.0
CSeq: 1
Transport: RTP/AVP;unicast;client_port=1002-1003
Content-Type: application/sdp
Content-Length: 252

v=0
o=UniMRCPClient 0 0 IN IP4 10.0.0.200
s=-
c=IN IP4 10.0.0.200
t=0 0
m=audio 1002 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=recvonly
a=ptime:20

2010-07-30 09:12:44:166850 [NOTICE] Create RTSP Session <a53c4e7eb7704851>
2010-07-30 09:12:44:166859 [INFO]   Create Session 0x244d188 <new> [uni1]
2010-07-30 09:12:44:166865 [INFO]   Add RTSP Session <a53c4e7eb7704851>
2010-07-30 09:12:44:166914 [NOTICE] Add Session <a53c4e7eb7704851>
2010-07-30 09:12:44:166929 [INFO]   Receive Offer 0x244d188 <a53c4e7eb7704851> 
[c:0 a:1 v:0]
2010-07-30 09:12:44:166942 [WARN]   Failed to Create Engine Channel 0x244d188 
<a53c4e7eb7704851> [speechsynth]
2010-07-30 09:12:44:175579 [INFO]   Enable RTP Session 10.0.0.200:1002
2010-07-30 09:12:44:175599 [INFO]   Send Answer 0x244d188 <a53c4e7eb7704851> 
[c:0 a:1 v:0] Status Not Acceptable
2010-07-30 09:12:44:175627 [INFO]   Send RTSP Stream 10.0.0.200:1554 <-> 
10.0.0.200:46293 [67 bytes]
RTSP/1.0 406 Not Acceptable
CSeq: 1
Session: a53c4e7eb7704851

2010-07-30 09:12:44:175657 [INFO]   Deactivate Session 0x244d188 
<a53c4e7eb7704851>
2010-07-30 09:12:44:175665 [INFO]   Terminate Session 0x244d188 
<a53c4e7eb7704851>
2010-07-30 09:12:44:175670 [NOTICE] Remove Session <a53c4e7eb7704851>
2010-07-30 09:12:44:176654 [INFO]   RTSP Peer Disconnected 10.0.0.200:1554 <-> 
10.0.0.200:46293
2010-07-30 09:12:44:176661 [INFO]   Close RTSP Connection 10.0.0.200:1554 <-> 
10.0.0.200:46293
2010-07-30 09:12:44:176681 [NOTICE] Terminate Remaining RTSP Sessions [1]
2010-07-30 09:12:44:185597 [INFO]   Remove RTP Session 10.0.0.200:1002
2010-07-30 09:12:44:185619 [INFO]   Session Terminated 0x244d188 
<a53c4e7eb7704851>
2010-07-30 09:12:44:185629 [NOTICE] Destroy Session <a53c4e7eb7704851>
2010-07-30 09:12:44:185644 [INFO]   Remove RTSP Session <a53c4e7eb7704851>
2010-07-30 09:12:44:185651 [NOTICE] Destroy RTSP Session <a53c4e7eb7704851>
2010-07-30 09:12:44:185657 [NOTICE] Destroy RTSP Connection 10.0.0.200:1554 <-> 
10.0.0.200:46293

More detailed error description / traces / patches can be found here: 
http://jira.freeswitch.org/browse/FSMOD-66

Original issue reported on code.google.com by DNSpy...@gmail.com on 30 Jul 2010 at 7:13

GoogleCodeExporter commented 9 years ago
I have just looked through the issue and assume the problem can be in the 
following change.
http://groups.google.com/group/unimrcp/browse_frm/thread/206f4d3b31771d03/554bc4
520f12ad6d?lnk=gst&q=Plugin+developers%2C#554bc4520f12ad6d

Anyway, please note that Cepstral plugin hasn't been supported for a while.

Original comment by achalo...@gmail.com on 30 Jul 2010 at 12:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Indeed - changing the corresponding part and recompiling (of course) solved 
this issue. Thank you for pointing me into the right direction.

Can you do me another favour and have a look into the initial issue that I've 
described on FreeSWITCH Jira: http://jira.freeswitch.org/browse/FSMOD-66

Or do you want another issue report for better tracking?

Original comment by DNSpy...@gmail.com on 30 Jul 2010 at 1:15

GoogleCodeExporter commented 9 years ago
I'm not sure I fully understand what was going on there.

According to you, SPEAK-COMPLETE event was raised from the plugin context
2010-07-28 08:09:38:433991 [INFO] Process SPEAK-COMPLETE Event [1]
2010-07-28 08:09:38:434000 [INFO] State Transition SPEAKING -> IDLE 

however, I don't see the corresponding message in the attached net capture, 
strange... You seem to insist that the same scenario works fine with the umc or 
unimrcpclient application, right?

If so, I'd need server logs and corresponding network captures for both cases 
(working and non-working) to identify the problem.

Original comment by achalo...@gmail.com on 2 Aug 2010 at 10:23

GoogleCodeExporter commented 9 years ago
> You seem to insist that the same scenario works fine with the umc or 
unimrcpclient application, right?

Yeah - please find the requested logs and traces attached. It's quite 
frustrating - especially because everything else works so perfectly :(

Original comment by DNSpy...@gmail.com on 2 Aug 2010 at 11:27

Attachments:

GoogleCodeExporter commented 9 years ago
I should have added that I've manually terminated the FreeSWITCH call after 
about 10 seconds (Packet 123/124 in 
unimrcp_called_from_freeswitch_mod_unimrcp.pcap).

Original comment by DNSpy...@gmail.com on 2 Aug 2010 at 11:31

GoogleCodeExporter commented 9 years ago
You should have also mentioned that you have changed the default resource name 
in unimrcpserver.xml

I believe you have something like this

     <resource-map>
        <param name="speechsynth" value="cepstral"/>
     </resource-map>

You may need to change the name in the FreeSWITCH's profile as well
    <param name="speechsynth" value="cepstral"/>

In my turn, I'll care to add a few traces for such error cases, when I find a 
few additional minutes.

Original comment by achalo...@gmail.com on 2 Aug 2010 at 12:02

GoogleCodeExporter commented 9 years ago
Changing the resource name was just for testing. But: You are perfectly 
correct! I've not specified the speechsynth resource name in my MRCP client 
configuration on FreeSWITCH side! 

I've completed/commented the corresponding wiki section: 
http://wiki.freeswitch.org/wiki/Mod_unimrcp#UniMRCP_Server

Thank you for your friendly and prompt help!

Original comment by DNSpy...@gmail.com on 2 Aug 2010 at 1:13

GoogleCodeExporter commented 9 years ago
Glad it works. The following enhancement r1752 makes the behavior more adequate 
now.

Original comment by achalo...@gmail.com on 9 Aug 2010 at 7:11