Asterisk 22.10 Breaks Record App
I have been using Asterisk for many, many years.
Today I release some new code, and upon code release we automatically update Asterisk to the latest version. All of a sudden, I started getting reports from customer service letting me know that recording voice mails was no longer working. I started looking into it and went down the wrong rabbit hole at the beginning, only to circle back and find out that the record app just was not working at all.
I tried many ways of fixing it, but in the end opted to replace record with mix monitor, and that seemed to fix my issues. I am going to share the diff below, and hopefully this can help someone else.
- same => n,Record(${AC_STUB}.wav,0,600)
+
+ same => n,MixMonitor(${AC_STUB}.wav)
+ same => n(dtmf_loop),Set(DIGIT_PRESSED=)
+ same => n,Read(DIGIT_PRESSED,,1,,1,600)
+ same => n,GotoIf($["${DIGIT_PRESSED}" = "#"]?stop_recording)
+ ; If they timed out or didn't press anything, loop back or handle timeout
+ same => n,GotoIf($["${DIGIT_PRESSED}" = ""]?stop_recording)
+ same => n(stop_recording),StopMixMonitor()



Leave a comment
Use the form below to leave a comment: