This python script will detect modem events like DTMF Digits, Busy Tone, Silence etc from phone line using Raspberry Pi 3. Seems to do audio signal analysis to do this.