|
Public Types |
| enum | Codec_t { CODEC_ULAW,
CODEC_ALAW,
CODEC_CUSTOM
} |
Public Member Functions |
| | VOIPApplication (IPAddr_t, PortId_t, const Random &on=Exponential(0.352), const Random &off=Exponential(0.650), Rate_t r=64000, Size_t s=80) |
| | VOIPApplication (IPAddr_t, PortId_t, const std::string &, Size_t s=80) |
| void | CallDuration (const Random &) |
| void | WaitDuration (const Random &) |
| void | Handle (Event *, Time_t) |
| virtual void | StartApp () |
| virtual void | StopApp () |
| virtual Application * | Copy () const |
| virtual void | Receive (Packet *, L4Protocol *, Seq_t=0) |
| bool | CallFile (const std::string &) |
| bool | RecordingFile (const std::string &) |
| void | SetSampleRate (Count_t r) |
| void | UseSilenceSupression (double=1000.0) |
Static Public Member Functions |
| void | SetCodec (Codec_t) |
| void | SetCustomCodecCallback (CodecCallback_t) |
Public Attributes |
| Random * | callDuration |
| Random * | waitDuration |
| AppVOIPEvent * | pendingSSEvent |
| AppVOIPEvent * | pendingDataEvent |
| std::string | callFileName |
| std::string | recFileName |
| AIFF * | callFile |
| AIFF * | recordFile |
| Count_t | sampleRate |
| Count_t | sampleIndex |
| Count_t | nextRxIndex |
| long * | longBuf |
| char * | buf |
| bool | silenceSupression |
| double | ssThreshold |
| bool | verbose |
| bool | verbose1 |
Static Public Attributes |
| Count_t | activeCalls |
| Codec_t | codec = VOIPApplication::CODEC_ULAW |
| CodecCallback_t | codecCb = 0 |
Private Member Functions |
| void | SendNextSample () |