AaronZhangL / unimrcp

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

Wait for Messages [MRCP Client] #139

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.intsalling Unimrcp
2.installing asterisk-unimrcp-connection Bridge
3.Installing PocketSphinx

What version of the product are you using? On what operating system?
I'am using Asterisk 1.8 on ubunto 11.04 operating system

Please provide any additional information below.

I'am trying to run voice recognition with Asterisk using Pocket Sphinx And 
ASterisk . The problem I'am having is that no answer is coming from unimrcp 
client .
the trace of execution is like that :

Mar 15 11:40:44] DEBUG[22047]: pbx.c:4230 pbx_extension_helper: Launching 
'MRCPSynth'
    -- Executing [1000@LocalSets:3] MRCPSynth("SIP/1234-00000001", "<?xml version=\"1.0\"?><speak version=\"1.0\" xml:lang=\"en-AU\" xmlns=\"http://www.w3.org/2001/10/synthesis\"><voice name='Karin' gender='female'>Hello world!</voice></speak>,p=default&i=any&f=/tmp/synth.raw") in new stack
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4418 app_synth_exec: 
Option=|p=default|
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4418 app_synth_exec: 
Option=|p=default|
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4418 app_synth_exec: 
Option=|i=any|
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4418 app_synth_exec: 
Option=|i=any|
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4418 app_synth_exec: 
Option=|f=/tmp/synth.raw|
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4418 app_synth_exec: 
Option=|f=/tmp/synth.raw|
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4484 app_synth_exec: Profile to 
use: default
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4484 app_synth_exec: Profile to 
use: default
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4487 app_synth_exec: Text to 
synthesize is: <?xml version="1.0"?><speak version="1.0" xml:lang="en-AU" 
xmlns="http://www.w3.org/2001/10/synthesis"><voice name='Karin' 
gender='female'>Hello world!</voice></speak>
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4487 app_synth_exec: Text to 
synthesize is: <?xml version="1.0"?><speak version="1.0" xml:lang="en-AU" 
xmlns="http://www.w3.org/2001/10/synthesis"><voice name='Karin' 
gender='female'>Hello world!</voice></speak>
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4490 app_synth_exec: Filename to 
save to: /tmp/synth.raw
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4490 app_synth_exec: Filename to 
save to: /tmp/synth.raw
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4526 app_synth_exec: DTMF 
enable: 1
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4526 app_synth_exec: DTMF 
enable: 1
[Mar 15 11:40:44] DEBUG[22047]: app_unimrcp.c:934 audio_queue_create: (TTS-1) 
audio queue created
[Mar 15 11:40:44] DEBUG[22047]: app_unimrcp.c:1855 speech_channel_create: 
Created speech channel: Name=TTS-1, Type=SYNTHESIZER, Codec=PCMU, Rate=8000
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4169 unimrcp_log: Create MRCP 
Handle 0xfd0b5e0 [speech-nuance5-mrcp2]
[Mar 15 11:40:44] NOTICE[22047]: app_unimrcp.c:4169 unimrcp_log: Create MRCP 
Handle 0xfd0b5e0 [speech-nuance5-mrcp2]
[Mar 15 11:40:44] DEBUG[22047]: app_unimrcp.c:4172 unimrcp_log: Create Channel 
0xfd0b5e0 <new>
[Mar 15 11:40:44] DEBUG[22047]: app_unimrcp.c:4175 unimrcp_log: Signal Message 
to [MRCP Client] [4;0]
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4175 unimrcp_log: Process Message 
[MRCP Client] [4;0]
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4172 unimrcp_log: Receive App 
Request 0xfd0b5e0 <new> [2]
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4172 unimrcp_log: Add MRCP Handle 
0xfd0b5e0 <new>
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4175 unimrcp_log: Dispatch App 
Request 0xfd0b5e0 <new> [2]
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4175 unimrcp_log: Signal Message 
to [MRCPv2ConnectionAgent] [1;0]
[Mar 15 11:40:44] NOTICE[21844]: app_unimrcp.c:4169 unimrcp_log: Add Control 
Channel 0xfd0b5e0 <new@speechsynth>
[Mar 15 11:40:44] NOTICE[21844]: app_unimrcp.c:4169 unimrcp_log: Add Control 
Channel 0xfd0b5e0 <new@speechsynth>
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4175 unimrcp_log: Add Media 
Termination 0xfd0b5e0 <new@media-tm>
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4175 unimrcp_log: Add Media 
Termination 0xfd0b5e0 <new@rtp-tm>
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4175 unimrcp_log: Signal Message 
to [MediaEngine] [1;0]
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4175 unimrcp_log: Wait for 
Messages [MRCP Client]
[Mar 15 11:40:44] DEBUG[21845]: app_unimrcp.c:4175 unimrcp_log: Process Poller 
Wakeup [MRCPv2ConnectionAgent]
[Mar 15 11:40:44] DEBUG[21845]: app_unimrcp.c:4175 unimrcp_log: Process Message 
[MRCPv2ConnectionAgent] [1;0]
[Mar 15 11:40:44] DEBUG[21845]: app_unimrcp.c:4175 unimrcp_log: Signal Message 
to [MRCP Client] [2;0]
[Mar 15 11:40:44] DEBUG[21845]: app_unimrcp.c:4175 unimrcp_log: Wait for 
Messages [MRCPv2ConnectionAgent]
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4175 unimrcp_log: Process Message 
[MRCP Client] [2;0]
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4175 unimrcp_log: Control Channel 
Added 0xfd0b5e0 <new@speechsynth>
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4175 unimrcp_log: Wait for 
Messages [MRCP Client]
[Mar 15 11:40:44] DEBUG[21846]: app_unimrcp.c:4175 unimrcp_log: Process Message 
[MediaEngine] [1;0]
[Mar 15 11:40:44] DEBUG[21846]: app_unimrcp.c:4175 unimrcp_log: Add Media 
Context 0xfd0b5e0
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4175 unimrcp_log: Process Message 
[MRCP Client] [3;0]
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4175 unimrcp_log: Media 
Termination Added 0xfd0b5e0 <new@media-tm>
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4175 unimrcp_log: Media 
Termination Added 0xfd0b5e0 <new@rtp-tm>
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4172 unimrcp_log: Send Offer 
0xfd0b5e0 <new> [c:1 a:1 v:0] to 192.168.1.10:5060
[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4172 unimrcp_log: Local SDP 
0xfd0b5e0 <new>
v=0
o=Asterisk 0 0 IN IP4 192.168.1.10
s=-
c=IN IP4 192.168.1.10
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:new
a=resource:speechsynth
a=cmid:1
m=audio 4002 RTP/AVP 0 8 96
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 L16/8000
a=recvonly
a=ptime:20
a=mid:1

[Mar 15 11:40:44] DEBUG[21844]: app_unimrcp.c:4175 unimrcp_log: Wait for 
Messages [MRCP Client]

<--- SIP read from UDP:192.168.1.5:46956 --->

<------------->
[Mar 15 11:40:47] DEBUG[21863]: chan_sip.c:8496 parse_request:  Header  0 [  
0]: 

<--- SIP read from UDP:192.168.1.5:46956 --->

<------------->
[Mar 15 11:41:17] DEBUG[21863]: chan_sip.c:8496 parse_request:  Header  0 [  
0]: 

<--- SIP read from UDP:192.168.1.5:46956 --->
SUBSCRIBE sip:1234@192.168.1.10 SIP/2.0
Via: SIP/2.0/UDP 
192.168.1.5:46956;branch=z9hG4bK-d87543-e835774283476d61-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:1234@192.168.1.5:46956>
To: "1234"<sip:1234@192.168.1.10>
From: "1234"<sip:1234@192.168.1.10>;tag=0f72885a
Call-ID: NmRiNWZlNTBmMmEwYjQ4MTM4Nzk0N2QwYmJjMjJiNTM.
CSeq: 1 SUBSCRIBE
Expires: 300
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, 
INFO
User-Agent: X-Lite release 1006e stamp 34025
Event: message-summary
Content-Length: 0

Thank you so much for your help ...

Original issue reported on code.google.com by mohamedb...@gmail.com on 15 Mar 2012 at 10:54

GoogleCodeExporter commented 9 years ago
Please post this sort of questions to the discussion group.

https://groups.google.com/forum/?fromgroups#!forum/unimrcp

Original comment by achalo...@gmail.com on 6 Mar 2013 at 8:21