calejost / unimrcp

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

recog demo profile uni2 does not work #171

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install as described here: 
https://code.google.com/p/unimrcp/wiki/InstallationGuide
2. start server with /usr/local/unimrcp/bin/unimrcpserver -o 1 -l 7 -r 
/usr/local/unimrcp
3. start client with SOFIA_DEBUG=9 NTA_DEBUG=9 NUA_DEBUG=9 
/usr/local/unimrcp/bin/unimrcpclient -o 1 -l 7 -r /usr/local/unimrcp
4. on client console, write "run recog uni2"

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

Taken from configure:
configure:   UniMRCP: 1.1.0
configure:   APR: 1.5.0
configure:   APR-Util: 1.5.3
configure:   Sofia-SIP: 1.12.11-210-gfa839a2
configure: Plugins:
configure:   Demo Synthesizer: yes
configure:   Demo Recognizer: yes
configure:   Demo Verifier: yes
configure:   Recorder: yes
configure:   PocketSphinx: no
configure:   Flite: no

Using archlinux (with all the latest packages). The actual software runs within 
docker container (I hope this does not matter).

Please provide any additional information below.

While "run recog uni1" runs fine, the uni2 configuration breaks with:

nua: nua_invite: entering
nua(0x7ff54c009070): sent signal r_invite
nua(0x7ff54c009070): recv signal r_invite
2014-06-10 12:03:33:922077 [DEBUG]  Wait for Messages [MRCP Client]
nua: nua_stack_set_params: entering
soa_clone(static::0x7ff538001900, 0x7ff538001150, 0x7ff54c009070) called
soa_set_params(static::0x7ff538005290, ...) called
soa_set_params(static::0x7ff538005290, ...) called
soa_set_user_sdp(static::0x7ff538005290, (nil), 0x7ff54c009720, -1) called
soa_set_capability_sdp(static::0x7ff538005290, (nil), 0x7ff54c009720, -1) called
nua(0x7ff54c009070): adding session usage
nta_leg_tcreate(0x7ff538005dc0)
soa_init_offer_answer(static::0x7ff538005290) called
soa_generate_offer(static::0x7ff538005290, 0) called
soa_static_offer_answer_action(0x7ff538005290, soa_generate_offer): called
soa_static(0x7ff538005290, soa_generate_offer): generating local description
soa_static(0x7ff538005290, soa_generate_offer): upgrade with local description
soa_sdp_mode_set(0x7ff53fffcaf0, (nil), ""): called
soa_init_sdp_connection_with_session: prefer IP4 because of an existing c= line
soa_init_sdp_connection_with_session: selected IN IP4 172.17.0.2 (an existing 
session-level c= line)
soa_static(0x7ff538005290, soa_generate_offer): storing local description
soa_get_local_sdp(static::0x7ff538005290, [(nil)], [0x7ff53fffec28], 
[0x7ff53fffec24]) called
nta outgoing create: invalid URI
nta: outgoing_free(0x7ff538008d80)
nua(0x7ff54c009070): event r_invite 900 Internal error at nua_client.c:714
nua(0x7ff54c009070): call state changed: init -> init
nua: nua_application_event: entering
nua(0x7ff54c009070): event i_state 900 Internal error at nua_client.c:714
2014-06-10 12:03:33:923698 [INFO]   Receive SIP Event [nua_r_invite] Status 900 
Internal error at nua_client.c:714
nua(0x7ff54c009070): event i_terminated 900 Internal error at nua_client.c:714
nua: nua_application_event: entering
nua(0x7ff54c009070): removing session usage
2014-06-10 12:03:33:923765 [INFO]   Receive SIP Event [nua_i_state] Status 900 
Internal error at nua_client.c:714

I have modified /unimrcp-deps-1.2.0/libs/sofia-sip/libsofia-sip-ua/nta/nta.c 
line 7929 with:

SU_DEBUG_3(("nta outgoing create: URI: %s\n", (url_string_t 
*)sip->sip_request->rq_url));

and got the result:

nta outgoing create: URI: v=0
o=UniMRCPClient 1994846153113987233 2595970723623724112 IN IP4 172.17.0.2
s=-
c=IN IP4 172.17.0.2
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:new
a=resource:speechrecog
a=cmid:1
m=audio 4000 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

It looks to me that this is a message body, not an expected url, am I right? 
What could be the cause? Is it a configuration error? I used vanilla 
configuration files for the demo.

Original issue reported on code.google.com by mic...@gmail.com on 10 Jun 2014 at 12:10

GoogleCodeExporter commented 8 years ago
See the post

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

and the related issue

https://code.google.com/p/unimrcp/issues/detail?id=169

Original comment by achalo...@gmail.com on 25 Jun 2014 at 8:27

GoogleCodeExporter commented 8 years ago
Have you solved this issue? i am also facing same issue while sending an INVITE 
request.
If you have solved let me know the solution.

Original comment by Chetanka...@gmail.com on 3 Sep 2014 at 11:04

GoogleCodeExporter commented 8 years ago
If you followed the links provided in the previous post, you could find a patch 
which solves the problem. In the meantime, the patch has also been included in 
UniMRCP deps 1.2.1 release.

http://unimrcp.org/project/release-view/unimrcp-deps-1-2-1

Original comment by achalo...@gmail.com on 5 Sep 2014 at 2:32