Detecting Frequencies Over a Call

I am trying to write an Asterisk module that can detect frequencies transmitted over a call. I know that there are some functions for detecting DTMF tones and converting them into ints. Are there any functions that can be used for detecting single frequency tones or do I just need to read an AST_FRAME_VOICE and run it through FFT?

Thank you,

The DSP code does not currently present a usable interface for this, it only provides the ability for higher level explicit tones (DTMF, busy, etc). You’d have to do it yourself. If you wanted to though you could extend the DSP API (dsp.h / dsp.c) to provide the mechanism and use that too.