unispeech / asterisk-unimrcp

UniMRCP modules for Asterisk
http://www.unimrcp.org/asterisk
GNU General Public License v2.0
48 stars 35 forks source link

multi prompt not supported with barge=1 #30

Open suiyuemanbu opened 5 years ago

suiyuemanbu commented 5 years ago

multi prompt not supported with barge=1, MRCPRecog()
when od=^&f=${PROMRTF_1}^${SPACEWAV}^${PROMRTF_2}&b=0 is ok, the three files can all played.

when od=^&f=${PROMRTF_1}^${SPACEWAV}^${PROMRTF_2}&b=1 can only play PROMRTF_1, the other can not be played.

please help me, thank you

achaloyan commented 5 years ago

By enabling barge-in, the prompt will be stopped as soon a START-OF-INPUT is received from the MRCP server. I would guess that was the case. Otherwise, I do not see any difference between the two. You may need to check the logs to determine the cause.

suiyuemanbu commented 5 years ago

thankyou when I use asterisk 13 is OK. the bug occured when asterisk 1.8, the log is

[Jan 28 13:28:34] DEBUG[4117] speech_channel.c: (ASR-5) READY ==> PROCESSING [Jan 28 13:28:34] DEBUG[4117] src/apt_consumer_task.c: Wait for Messages [MRCP Client] [Jan 28 13:28:34] DEBUG[4473] channel.c: Set channel SIP/outbound-00000005 to write format slin [Jan 28 13:28:34] NOTICE[4473] speech_channel.c: Stream file stock on SIP/outbound-00000005 length:93360 [Jan 28 13:28:34] DEBUG[4473] res_rtp_asterisk.c: Ooh, format changed from unknown to ulaw [Jan 28 13:28:34] DEBUG[4473] res_rtp_asterisk.c: Created smoother: format: ulaw ms: 20 len: 160 [Jan 28 13:28:34] DEBUG[4473] channel.c: Scheduling timer at (50 requested / 50 actual) timer ticks per second [Jan 28 13:28:35] DEBUG[4096] chan_sip.c: Allocating new SIP dialog for 3db27f44-d4da-4b68-b064-387c7fadbaff - OPTIONS (No RTP) [Jan 28 13:28:39] DEBUG[4473] res_rtp_asterisk.c: Got RTCP report of 64 bytes [Jan 28 13:28:44] DEBUG[4473] res_rtp_asterisk.c: Got RTCP report of 64 bytes [Jan 28 13:28:46] DEBUG[4473] channel.c: Scheduling timer at (100 requested / 100 actual) timer ticks per second [Jan 28 13:28:46] DEBUG[4473] channel.c: Scheduling timer at (0 requested / 0 actual) timer ticks per second [Jan 28 13:28:49] DEBUG[4473] res_rtp_asterisk.c: Got RTCP report of 64 bytes [Jan 28 13:28:51] DEBUG[4096] res_rtp_asterisk.c: Setting RTCP address on RTP instance '0x7feb2c0108a8' [Jan 28 13:28:51] DEBUG[4473] app_mrcprecog.c: (ASR-5) Null frame. Hangup detected

Stream file stock--- only play this file, the other not played

suiyuemanbu commented 5 years ago

hello, Arsen Chaloyan,please help me. the asterisk 13 is OK. the asterisk 1.8 has this problem.

achaloyan commented 5 years ago

See issue #14

suiyuemanbu commented 5 years ago

I see. the version of file i use is asterisk-unimrcp: 1.4.0 asterisk : 1.8.8 the code is same as you fixed,but the bug still exist

Please forgive me for bad English.