Yate
SignallingEvent Class Reference

A single signalling related event. More...

#include <yatesig.h>

Public Types

enum  Type {
  Unknown = 0 , Generic , NewCall , Accept ,
  Connect , Complete , Progress , Ringing ,
  Answer , Transfer , Suspend , Resume ,
  Release , Info , Charge , Message ,
  Facility , Circuit , Enable , Disable ,
  Reset , Verify
}
 

Public Member Functions

 SignallingEvent (Type type, SignallingMessage *message, SignallingCall *call)
 
 SignallingEvent (Type type, SignallingMessage *message, SignallingCallControl *controller=0)
 
 SignallingEvent (SignallingCircuitEvent *&event, SignallingCall *call)
 
virtual ~SignallingEvent ()
 
const char * name () const
 
Type type () const
 
SignallingCallcall () const
 
SignallingMessagemessage () const
 
SignallingCallControlcontroller () const
 
SignallingCircuitEventcicEvent () const
 
bool sendEvent ()
 

Static Public Member Functions

static const char * typeName (Type t)
 

Detailed Description

A single signalling related event.

An object holding a signalling event and related references

Member Enumeration Documentation

◆ Type

enum Type

Type of the event

Constructor & Destructor Documentation

◆ SignallingEvent() [1/3]

SignallingEvent ( Type type,
SignallingMessage * message,
SignallingCall * call )

Constructor for a call related event

Parameters
typeType of the event
messageMessage carried by the event
callCall this event refers to

References call(), message(), and type().

◆ SignallingEvent() [2/3]

SignallingEvent ( Type type,
SignallingMessage * message,
SignallingCallControl * controller = 0 )

Constructor for a controller related event

Parameters
typeType of the event
messageMessage carried by the event
controllerController this event refers to

References controller(), message(), and type().

◆ SignallingEvent() [3/3]

Constructor for a signalling circuit related event

Parameters
eventThe event signaled by the circuit, will be consumed and zeroed
callCall this event refers to

References call().

◆ ~SignallingEvent()

virtual ~SignallingEvent ( )
virtual

Destructor, dereferences any resources, notify the signalling call of termination

Member Function Documentation

◆ call()

SignallingCall * call ( ) const
inline

Get the call that generated this event, may be NULL

Referenced by SignallingEvent(), and SignallingEvent().

◆ cicEvent()

SignallingCircuitEvent * cicEvent ( ) const
inline

Retrieve the circuit event

◆ controller()

SignallingCallControl * controller ( ) const
inline

Retrieve the controller of the call

Referenced by SignallingEvent().

◆ message()

SignallingMessage * message ( ) const
inline

Get the message that generated this event, may be NULL

Referenced by SignallingEvent(), and SignallingEvent().

◆ name()

const char * name ( ) const
inline

Get the string associated with this event's type

Returns
The string associated with this event's type, if any

References type(), and typeName().

◆ sendEvent()

bool sendEvent ( )

Send this event through the call that generated it

Returns
True if there was a call and the operation succedded

◆ type()

Type type ( ) const
inline

Get the type of the event

Returns
Type of event, may be unknown

Referenced by name(), SignallingEvent(), and SignallingEvent().

◆ typeName()

static const char * typeName ( Type t)
inlinestatic

Get the text associated with a given event type for debug purposes

Parameters
tThe requested type
Returns
The text associated with the given type

Referenced by name().


The documentation for this class was generated from the following file: