The primary state data structure. More...
#include <bayonne.h>
Public Attributes | |
Handler | handler |
Handler | logstate |
const char * | name |
timeout_t | timeout |
Name * | menu |
unsigned | stack |
Line * | lib |
int | pfd |
result_t | result |
int | pid |
libaudio_t * | libaudio |
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 | |
const char * list [256] | |
} 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 | |
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 | |
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 { ... } |
timeout_t ost::Bayonne::State::answer_timer |
struct { ... } ost::Bayonne::State::audio |
char ost::Bayonne::State::buf[256 *sizeof(char *)] |
unsigned ost::Bayonne::State::count |
const char* ost::Bayonne::State::dial |
unsigned char ost::Bayonne::State::digits[64] |
char ost::Bayonne::State::digits[64] |
timeout_t ost::Bayonne::State::duration |
const char* ost::Bayonne::State::exit |
const char* ost::Bayonne::State::format |
timeout_t ost::Bayonne::State::hunt_timer |
const char* ost::Bayonne::State::ignore |
unsigned ost::Bayonne::State::index |
struct { ... } ost::Bayonne::State::inkey |
struct { ... } ost::Bayonne::State::input |
timeout_t ost::Bayonne::State::interdigit |
timeout_t ost::Bayonne::State::intersilence |
timeout_t ost::Bayonne::State::interval |
struct { ... } ost::Bayonne::State::join |
timeout_t ost::Bayonne::State::lastdigit |
Audio::Level ost::Bayonne::State::level |
Line* ost::Bayonne::State::lib |
const char* ost::Bayonne::State::list[256] |
const char* ost::Bayonne::State::menu |
Audio::Mode ost::Bayonne::State::mode |
const char* ost::Bayonne::State::name |
const char* ost::Bayonne::State::note |
timeout_t ost::Bayonne::State::off |
timeout_t ost::Bayonne::State::on |
unsigned ost::Bayonne::State::pos |
const char* ost::Bayonne::State::pos |
struct { ... } ost::Bayonne::State::pulse |
const char* ost::Bayonne::State::ref |
unsigned ost::Bayonne::State::required |
const char* ost::Bayonne::State::route |
const char* ost::Bayonne::State::sequence |
char ost::Bayonne::State::sessionid[16] |
timeout_t ost::Bayonne::State::silence |
unsigned ost::Bayonne::State::size |
unsigned ost::Bayonne::State::stack |
timeout_t ost::Bayonne::State::synctimer |
timeout_t ost::Bayonne::State::timeout |
struct { ... } ost::Bayonne::State::tone |
timeout_t ost::Bayonne::State::total |
struct { ... } ost::Bayonne::State::url |
const char* ost::Bayonne::State::var |
struct { ... } ost::Bayonne::State::wait |