#include <AmDtmfDetector.h>
Inheritance diagram for AmDtmfDetector:

Public Member Functions | |
| AmDtmfDetector (AmSession *session) | |
| void | registerKeyReleased (int event, Dtmf::EventSource source, const struct timeval &start, const struct timeval &stop) |
| void | registerKeyPressed (int event, Dtmf::EventSource source) |
| void | checkTimeout () |
| void | putDtmfAudio (const unsigned char *, int size, int user_ts) |
This class collects DTMF info from three sources: RTP (RFC 2833), SIP INFO method (RFC 2976) and DTMF tones from audio stream. Received DTMF events are further reported to SEMS application via DialogState::onDtmf() call.
| AmDtmfDetector::AmDtmfDetector | ( | AmSession * | session | ) |
Constructor
| session | is the owner of this class instance |
| void AmDtmfDetector::registerKeyPressed | ( | int | event, | |
| Dtmf::EventSource | source | |||
| ) |
Through this method the AmDtmfDetector receives events that was detected by specific detectors.
| event | code of key released | |
| source | which detector posted this event |
| void AmDtmfDetector::registerKeyReleased | ( | int | event, | |
| Dtmf::EventSource | source, | |||
| const struct timeval & | start, | |||
| const struct timeval & | stop | |||
| ) |
Through this method the AmDtmfDetector receives events that was detected by specific detectors.
| event | code of key pressed | |
| source | which detector posted this event | |
| start | time when key was pressed | |
| stop | time when key was released |
1.4.7