Bayonne2 / Common C++ 2 Framework
|
The primary state data structure. More...
#include <bayonne.h>
Data Fields | |
Handler | handler |
Handler | logstate |
const char * | name |
timeout_t | timeout |
bool | peering |
Name * | menu |
unsigned | stack |
Line * | lib |
int | pfd |
result_t | result |
int | pid |
libaudio_t * | libaudio |
bool | refer |
union { | |
struct { | |
unsigned count | |
timeout_t interval | |
} wait | |
struct { | |
Audio::Mode mode | |
Audio::Level level | |
timeout_t total | |
timeout_t silence | |
timeout_t intersilence | |
long lastnum | |
bool exitkey | |
bool compress | |
bool trigger | |
const char * pos | |
const char * exit | |
const char * menu | |
const char * note | |
union { | |
const char * list [256] | |
struct { | |
const char * pathv [4] | |
char path1 [128] | |
char path2 [128] | |
char meta [256 *2] | |
} | |
} | |
} audio | |
struct { | |
timeout_t interdigit | |
timeout_t lastdigit | |
const char * var | |
const char * exit | |
const char * format | |
const char * ignore | |
const char * route | |
unsigned count | |
unsigned size | |
unsigned required | |
} input | |
struct { | |
const char * var | |
const char * menu | |
} inkey | |
struct { | |
const char * sequence | |
bool flashing | |
bool dialing | |
bool exiting | |
bool hangup | |
bool dtmf | |
bool refer | |
char * syncdigit | |
timeout_t synctimer | |
timeout_t duration | |
char digits [64] | |
char sessionid [16] | |
} tone | |
struct { | |
timeout_t on | |
timeout_t off | |
timeout_t interdigit | |
unsigned pos | |
bool flashing | |
bool dialing | |
unsigned char digits [64] | |
} pulse | |
struct { | |
const char * dial | |
const char * exit | |
bool dtmf | |
bool drop | |
bool hangup | |
bool refer | |
BayonneSession * peer | |
timeout_t answer_timer | |
timeout_t hunt_timer | |
Line * select | |
unsigned index | |
char digits [64] | |
} join | |
struct { | |
const char * ref | |
char buf [256 *sizeof(char *)] | |
} url | |
}; | |
The primary state data structure.
This holds data that is setup by the interpreter and which must remain persistent for the execution of a given state. This is composed of some common elements which exist in a session for all states, and a union of state specific data elements, all packed together.
union { ... } |
struct { ... } ost::Bayonne::State::audio |
struct { ... } ost::Bayonne::State::inkey |
struct { ... } ost::Bayonne::State::input |
struct { ... } ost::Bayonne::State::join |
Audio::Level ost::Bayonne::State::level |
libaudio_t* ost::Bayonne::State::libaudio |
Audio::Mode ost::Bayonne::State::mode |
BayonneSession* ost::Bayonne::State::peer |
struct { ... } ost::Bayonne::State::pulse |
struct { ... } ost::Bayonne::State::tone |
struct { ... } ost::Bayonne::State::url |
struct { ... } ost::Bayonne::State::wait |