Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi prompt not supported with barge=1 #30

Open
suiyuemanbu opened this issue Jan 25, 2019 · 5 comments
Open

multi prompt not supported with barge=1 #30

suiyuemanbu opened this issue Jan 25, 2019 · 5 comments

Comments

@suiyuemanbu
Copy link

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Author

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

@achaloyan
Copy link
Contributor

See issue #14

@suiyuemanbu
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants