Getting the DTMF digit used to exit Record command

I’d like to know which DTMF digit has been pressed to exit the Record app.

From the manual and the source code, it doesn’t seem to be possible, but maybe I have overlooked it. Is there a way to get the DTMF digit (like 3) used to exit the Record app?

Whilst I’m concerned that there is a memory leak in read_exec(), as the frame pointer goes out of scope without a frame_free, when there is a match, both it and the actual DTMF value appear to go out of scope without any long term record being made, so I would way your use case is not supported.

The AGI ‘record file’ command returns the terminating key:

<PJSIP/anonymous-00000001>AGI Rx << record file //source/src/tmp//603/00000001///024-response wav #*1234567890 1800000 BEEP
    -- <PJSIP/anonymous-00000001> Playing 'beep.slin' (language 'en')
<PJSIP/anonymous-00000001>AGI Tx >> 200 result=35 (dtmf) endpos=42880

(35 == ‘#’)

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.