Asterisk + NVLineDetect to detect a tone

Can anyone tell me … which function in “Asterisk with Nvlinedetect support” detects the tone playing on the other side … like Busy, dial, ring ,etc… ?

Do any one know about the tone detection and all … please do give any information on how to detect a phone tone …