exten => s,1(start),Set(DTMF_MAXDIGITS=${ARG2})
same=n,MRCPRecog(/etc/asterisk/grammars/digits.xml,p=mrcp2&i=none&t=5000&b=1&ct=0.7&spl=en-US&f=${ARG1})
same=n,Noop(dtmf: ${RECOG_DTMF} status: ${RECOG_STATUS}, completion-cause: ${RECOG_COMPLETION_CAUSE}, result: ${RECOG_RESULT})
Here are the Asterisk console logs:
-- Executing [s@macro-readOption:1] Set("SIP/229000-0000003d", "DTMF_MAXDIGITS=1") in new stack
-- Executing [s@macro-readOption:2] MRCPRecog("SIP/229000-0000003d", "/etc/asterisk/grammars/digits.xml,p=mrcp2&i=none&t=5000&b=1&ct=0.7&spl=en-US&f=custom/000085") in new stack
[2021-11-02 16:57:17] NOTICE[8378][C-00000042]: app_mrcprecog.c:1079 app_recog_exec: MRCPRecog() grammar: /etc/asterisk/grammars/digits.xml
[2021-11-02 16:57:17] NOTICE[8378][C-00000042]: app_mrcprecog.c:1100 app_recog_exec: MRCPRecog() options: p=mrcp2&i=none&t=5000&b=1&ct=0.7&spl=en-US&f=custom/000085
[2021-11-02 16:57:17] NOTICE[27371]: app_mrcprecog.c:287 speech_on_channel_add: (ASR-56) Channel ready codec=PCMU, sample rate=8000
[2021-11-02 16:57:17] NOTICE[8378][C-00000042]: app_mrcprecog.c:1311 app_recog_exec: (ASR-56) Recognizing, enable DTMFs: 2, start input timers: 0
[2021-11-02 16:57:17] NOTICE[8378][C-00000042]: speech_channel.c:755 astchan_stream_file: Stream file custom/000085 on SIP/229000-0000003d length:49600
[2021-11-02 16:57:17] WARNING[8378][C-00000042]: app_mrcprecog.c:1342 app_recog_exec: DTMF MAXDIGITS 1
[2021-11-02 16:57:30] NOTICE[8378][C-00000042]: app_mrcprecog.c:455 recog_channel_get_results: (ASR-56) Result:
<?xml version="1.0"?>
<result>
<interpretation grammar="session:requ...@form-level.store" confidence="0.97">
<instance>one</instance>
<input mode="speech">one</input>
</interpretation>
</result>
[2021-11-02 16:57:30] NOTICE[8378][C-00000042]: app_mrcprecog.c:1040 mrcprecog_exit: MRCPRecog() exiting status: OK on SIP/229000-0000003d
-- Executing [s@macro-readOption:3] NoOp("SIP/229000-0000003d", "dtmf: status: , completion-cause: 000, result: <?xml version="1.0"?>
-- <result>
-- <interpretation grammar="session:requ...@form-level.store" confidence="0.97">
-- <instance>one</instance>
-- <input mode="speech">one</input>
-- </interpretation>
-- </result>") in new stack
--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/0f348a2b-e8aa-45eb-916b-16d9b20613cbn%40googlegroups.com.
; General settings
;
[general]
; Default ASR and TTS profiles.
default-asr-profile = mrcp2
default-tts-profile = mrcp2
; UniMRCP logging level to appear in Asterisk logs. Options are:
; EMERGENCY|ALERT|CRITICAL|ERROR|WARNING|NOTICE|INFO|DEBUG -->
log-level = DEBUG
max-connection-count = 100
max-shared-count = 100
offer-new-connection = 1
; rx-buffer-size = 1024
; tx-buffer-size = 1024
; request-timeout = 5000
; speech-channel-timeout = 30000
;
; Profile for UniMRCP Server [MRCPv2]
;
[mrcp2]
; MRCP settings
version = 2
;
; SIP settings
server-ip = 10.5.0.5
server-port = 5080
; SIP user agent
client-ip = 10.5.0.5
client-port = 5093
sip-transport = udp
;
; RTP factory
rtp-ip = 10.5.0.5
rtp-port-min = 28000
rtp-port-max = 29000
;
; Jitter buffer settings
playout-delay = 50
max-playout-delay = 200
; RTP settings
ptime = 20
codecs = PCMU PCMA L16/96/8000 telephone-event/101/8000
; RTCP settings
rtcp = 0
;
; Profile for UniMRCP Server [MRCPv1]
;
[mrcp1]
; MRCP settings
version = 1
;
; RTSP settings
server-ip = 10.5.0.5
server-port = 1554
resource-location = media
speechsynth = speechsynthesizer
speechrecog = speechrecognizer
;
; RTP factory
rtp-ip = 10.5.0.5
rtp-port-min = 27000
rtp-port-max = 28000
;
; Jitter buffer settings
playout-delay = 50
max-playout-delay = 200
; RTP settings
ptime = 20
codecs = PCMU PCMA L16/96/8000 telephone-event/101/8000
; RTCP settings
rtcp = 0
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/17198aa3-7aba-42dd-83f3-be5b603a151en%40googlegroups.com.