|
Bayonne
|
The primary state data structure. More...
#include <bayonne.h>
Public Attributes | |
| 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 { ... } |
| timeout_t ost::Bayonne::State::answer_timer |
| struct { ... } ost::Bayonne::State::audio |
| char ost::Bayonne::State::buf[256 *sizeof(char *)] |
| bool ost::Bayonne::State::compress |
| unsigned ost::Bayonne::State::count |
| const char* ost::Bayonne::State::dial |
| bool ost::Bayonne::State::dialing |
| char ost::Bayonne::State::digits[64] |
| unsigned char ost::Bayonne::State::digits[64] |
| bool ost::Bayonne::State::drop |
| bool ost::Bayonne::State::dtmf |
| timeout_t ost::Bayonne::State::duration |
| const char* ost::Bayonne::State::exit |
| bool ost::Bayonne::State::exiting |
| bool ost::Bayonne::State::exitkey |
| bool ost::Bayonne::State::flashing |
| const char* ost::Bayonne::State::format |
| Handler ost::Bayonne::State::handler |
| bool ost::Bayonne::State::hangup |
| 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 |
| long ost::Bayonne::State::lastnum |
| Audio::Level ost::Bayonne::State::level |
| Line* ost::Bayonne::State::lib |
| libaudio_t* ost::Bayonne::State::libaudio |
| const char* ost::Bayonne::State::list[256] |
| Handler ost::Bayonne::State::logstate |
| Name* ost::Bayonne::State::menu |
| const char* ost::Bayonne::State::menu |
| char ost::Bayonne::State::meta[256 *2] |
| 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 |
| char ost::Bayonne::State::path1[128] |
| char ost::Bayonne::State::path2[128] |
| const char* ost::Bayonne::State::pathv[4] |
| BayonneSession* ost::Bayonne::State::peer |
| bool ost::Bayonne::State::peering |
| int ost::Bayonne::State::pfd |
| int ost::Bayonne::State::pid |
| const char* ost::Bayonne::State::pos |
| unsigned ost::Bayonne::State::pos |
| struct { ... } ost::Bayonne::State::pulse |
| const char* ost::Bayonne::State::ref |
| bool ost::Bayonne::State::refer |
| unsigned ost::Bayonne::State::required |
| result_t ost::Bayonne::State::result |
| const char* ost::Bayonne::State::route |
| Line* ost::Bayonne::State::select |
| 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 |
| char* ost::Bayonne::State::syncdigit |
| timeout_t ost::Bayonne::State::synctimer |
| timeout_t ost::Bayonne::State::timeout |
| struct { ... } ost::Bayonne::State::tone |
| timeout_t ost::Bayonne::State::total |
| bool ost::Bayonne::State::trigger |
| struct { ... } ost::Bayonne::State::url |
| const char* ost::Bayonne::State::var |
| struct { ... } ost::Bayonne::State::wait |
1.8.2