AmDtmfDetector Class Reference

DTMF detector class. More...

#include <AmDtmfDetector.h>

Inheritance diagram for AmDtmfDetector:

AmEventHandler

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)

Detailed Description

DTMF detector class.

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.


Constructor & Destructor Documentation

AmDtmfDetector::AmDtmfDetector ( AmSession session  ) 

Constructor

Parameters:
session is the owner of this class instance


Member Function Documentation

void AmDtmfDetector::registerKeyPressed ( int  event,
Dtmf::EventSource  source 
)

Through this method the AmDtmfDetector receives events that was detected by specific detectors.

Parameters:
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.

Parameters:
event code of key pressed
source which detector posted this event
start time when key was pressed
stop time when key was released


The documentation for this class was generated from the following files:
Generated on Thu Mar 8 00:12:46 2007 for Sems by  doxygen 1.4.7
Home |  Recent changes |  Search |  Glossary |  Sitemap |  Login