The primary session object representing a server timeslot and active communication endpoint in Bayonne.
More...
#include <bayonne.h>
Inheritance diagram for ost::BayonneSession:
Collaboration diagram for ost::BayonneSession:
Public Types
enum
symType {
symNORMAL = 0,
symCONST,
symDYNAMIC,
symFIFO,
symSEQUENCE,
symSTACK,
symCOUNTER,
symPOINTER,
symREF,
symARRAY,
symASSOC,
symINITIAL,
symNUMBER,
symLOCK,
symPROPERTY,
symORIGINAL,
symMODIFIED,
symTIMER,
symBOOL
}
typedef bool(ScriptInterp::*
Method )(void)
typedef long(*
Function )(long *args, unsigned prec)
typedef void(*
Init )(void)
Telephony endpoint interface identifiers.
More...
Type of call session being processed.
More...
Type of bridge used for joining ports.
More...
enum
state_t {
STATE_INITIAL = 0,
STATE_IDLE,
STATE_RESET,
STATE_RELEASE,
STATE_BUSY,
STATE_DOWN,
STATE_RING,
STATE_PICKUP,
STATE_SEIZE,
STATE_ANSWER,
STATE_STEP,
STATE_EXEC,
STATE_THREAD,
STATE_CLEAR,
STATE_INKEY,
STATE_INPUT,
STATE_READ,
STATE_COLLECT,
STATE_DIAL,
STATE_XFER,
STATE_REFER,
STATE_HOLD,
STATE_RECALL,
STATE_TONE,
STATE_DTMF,
STATE_PLAY,
STATE_RECORD,
STATE_JOIN,
STATE_WAIT,
STATE_CALLING,
STATE_CONNECT,
STATE_RECONNECT,
STATE_HUNTING,
STATE_SLEEP,
STATE_START,
STATE_HANGUP,
STATE_LIBRESET,
STATE_WAITKEY,
STATE_LIBWAIT,
STATE_IRESET,
STATE_FINAL,
STATE_SUSPEND = STATE_DOWN,
STATE_STANDBY = STATE_DOWN,
STATE_LIBEXEC = STATE_EXEC,
STATE_RINGING = STATE_RING,
STATE_RUNNING = STATE_STEP,
STATE_THREADING = STATE_THREAD
}
Call processing states offered in core library.
More...
enum
signal_t {
SIGNAL_EXIT = 0,
SIGNAL_ERROR,
SIGNAL_TIMEOUT,
SIGNAL_DTMF,
SIGNAL_0,
SIGNAL_1,
SIGNAL_2,
SIGNAL_3,
SIGNAL_4,
SIGNAL_5,
SIGNAL_6,
SIGNAL_7,
SIGNAL_8,
SIGNAL_9,
SIGNAL_STAR,
SIGNAL_POUND,
SIGNAL_A,
SIGNAL_OVERRIDE = SIGNAL_A,
SIGNAL_B,
SIGNAL_FLASH = SIGNAL_B,
SIGNAL_C,
SIGNAL_IMMEDIATE = SIGNAL_C,
SIGNAL_D,
SIGNAL_PRIORITY = SIGNAL_D,
SIGNAL_RING,
SIGNAL_TONE,
SIGNAL_EVENT,
SIGNAL_WINK,
SIGNAL_CHILD,
SIGNAL_FAIL,
SIGNAL_PICKUP,
SIGNAL_PART,
SIGNAL_INVALID,
SIGNAL_PARENT,
SIGNAL_WAIT,
SIGNAL_HANGUP = SIGNAL_EXIT
}
Signaled interpreter events.
More...
enum
event_t {
MSGPORT_WAKEUP = 0,
MSGPORT_SHUTDOWN,
MSGPORT_LOGGING,
MSGPORT_REGISTER,
ENTER_STATE = 100,
EXIT_STATE,
EXIT_THREAD,
EXIT_TIMER,
EXIT_PARTING,
NULL_EVENT,
ERROR_STATE,
ENTER_HUNTING,
EXIT_HUNTING,
ENTER_RECONNECT,
EXIT_RECONNECT,
RECALL_RECONNECT,
EXIT_SCRIPT,
STEP_SCRIPT,
START_DIRECT = 200,
START_INCOMING,
START_OUTGOING,
START_RECALL,
START_FORWARDED,
START_RINGING,
START_HUNTING,
START_REFER,
STOP_SCRIPT,
STOP_DISCONNECT,
STOP_PARENT,
CANCEL_CHILD,
DETACH_CHILD,
CHILD_RUNNING,
CHILD_FAILED,
CHILD_INVALID,
CHILD_EXPIRED,
CHILD_BUSY,
CHILD_FAX,
CHILD_DND,
CHILD_AWAY,
CHILD_NOCODEC,
CHILD_OFFLINE,
START_SCRIPT = START_INCOMING,
START_SELECTED = START_OUTGOING,
START_TRANSFER = START_REFER,
ENTER_LIBEXEC = 300,
EXIT_LIBEXEC,
HEAD_LIBEXEC,
ARGS_LIBEXEC,
GOT_LIBEXEC,
READ_LIBEXEC,
DROP_LIBEXEC,
STAT_LIBEXEC,
PROMPT_LIBEXEC,
CLEAR_LIBEXEC,
WAIT_LIBEXEC,
RECORD_LIBEXEC,
REPLAY_LIBEXEC,
RESTART_LIBEXEC,
TONE_LIBEXEC,
XFER_LIBEXEC,
POST_LIBEXEC,
ERROR_LIBEXEC,
TIMER_EXPIRED = 400,
LINE_WINK,
LINE_PICKUP,
LINE_HANGUP,
LINE_DISCONNECT,
LINE_ON_HOOK,
LINE_OFF_HOOK,
RING_ON,
RING_OFF,
RING_STOP,
LINE_CALLER_ID,
RINGING_DID,
DEVICE_BLOCKED,
DEVICE_UNBLOCKED,
DEVICE_OPEN,
DEVICE_CLOSE,
DSP_READY,
RING_SYNC,
CALL_DETECT = 500,
CALL_CONNECTED,
CALL_RELEASED,
CALL_ACCEPTED,
CALL_ANSWERED,
CALL_HOLD,
CALL_HOLDING =CALL_HOLD,
CALL_NOHOLD,
CALL_DIGITS,
CALL_OFFERED,
CALL_ANI,
CALL_ACTIVE,
CALL_NOACTIVE,
CALL_BILLING,
CALL_RESTART,
CALL_SETSTATE,
CALL_FAILURE,
CALL_ALERTING,
CALL_INFO,
CALL_BUSY,
CALL_DIVERT,
CALL_FACILITY,
CALL_FRAME,
CALL_NOTIFY,
CALL_NSI,
CALL_RINGING,
CALL_DISCONNECT,
CALL_CLEARED,
CALL_PROCEEDING,
RESTART_FAILED,
RELEASE_FAILED,
START_RING = 600,
STOP_RING,
CLEAR_TIMESLOT,
START_FLASH,
STOP_FLASH,
DIAL_CONNECT,
DIAL_TIMEOUT,
DIAL_FAILED,
DIAL_INVALID,
DIAL_BUSY,
DIAL_FAX,
DIAL_PAM,
DIAL_DND,
DIAL_AWAY,
DIAL_OFFLINE,
DIAL_NOCODEC,
DIAL_MACHINE = DIAL_PAM,
AUDIO_IDLE = 700,
AUDIO_ACTIVE,
AUDIO_EXPIRED,
INPUT_PENDING,
OUTPUT_PENDING,
AUDIO_BUFFER,
TONE_IDLE,
DTMF_KEYDOWN,
DTMF_KEYSYNC,
DTMF_KEYUP,
TONE_START,
TONE_STOP,
AUDIO_START,
AUDIO_STOP,
DTMF_GENDOWN,
DTMF_GENUP,
AUDIO_SYNC,
AUDIO_RECONNECT,
AUDIO_DISCONNECT,
PEER_RECONNECT,
PEER_DISCONNECT,
PEER_REFER,
DTMF_GENTONE = DTMF_GENUP,
MAKE_TEST = 800,
MAKE_BUSY,
MAKE_IDLE,
MAKE_DOWN,
MAKE_UP,
MAKE_EXPIRED,
ENABLE_LOGGING,
DISABLE_LOGGING,
PART_EXPIRED,
PART_EXITING,
PART_DISCONNECT,
JOIN_PEER,
PEER_WAITING,
RELOCATE_REQUEST,
RELOCATE_ACCEPT,
RELOCATE_REJECT,
START_RELOCATE,
STREAM_ACTIVE,
STREAM_PASSIVE,
JOIN_RECALL,
DROP_RECALL,
DROP_REFER,
ENTER_RESUME = MAKE_UP,
ENTER_SUSPEND = MAKE_DOWN,
SYSTEM_DOWN = 900,
DRIVER_SPECIFIC = 1000
}
The current state handler in effect for a given channel to receive events.
More...
typedef bool(ScriptInterp::*
Method )(void)
typedef long(*
Function )(long *args, unsigned prec)
typedef void(*
Init )(void)
Public Member Functions
bool
addSymbol (const char *id, const char *value)
Get the current language translator.
More...
Initialine ccengine script environment.
More...
Return time this call is joined or 0 if not child node.
More...
Return driver associated with this session.
More...
Return time remaining until timer expires.
More...
Start a timer on the session.
More...
Stop the timer for the session.
More...
Handles driver specific stuff when going idle.
More...
Post an event to the session state engine.
More...
queue an event through the msgport.
More...
Clear/cleanup audio processing for the session.
More...
Get frame rate used for creating tone generators.
More...
Get driver default encoding.
More...
Get driver default extension.
More...
Get driver default framing.
More...
Check script keywords for audio processing.
More...
ccengine branch event notification.
More...
Return interface type of this session.
More...
Return bridge type for joins.
More...
Return call type on session.
More...
Return server timeslot this session uses.
More...
Return if the session is currently idle.
More...
Return if currently referring.
More...
Return state of association with parent in call.
More...
Return state disconnecting or idle...
More...
Return parent answer timer, if joining.
More...
Signal notification to script.
More...
Indicate whether session peers audio as linear frames.
More...
Post a peer audio frame into the driver.
More...
Set peer audio encoding to the encoding type and framing specified by peer on drivers which can switch encoding.
More...
Compute a new unique transaction id.
More...
Get the current transaction identifier string for the session.
More...
Throw a digit pattern matching event message to the interprer.
More...
Get the next pending digit in the DTMF input buffer.
More...
const char *
getValue (const char *def=NULL)
const char *
getOption (const char *def=NULL)
bool
getSymbol (const char *id, char *buffer, unsigned short max)
Runtime execution of script handler.
More...
virtual void
logmissing (const char *id, const char *level="undefined", const char *group="symbol")
virtual void
logerror (const char *msg, const char *name=NULL)
bool
setNumber (const char *id, const char *value=NULL, unsigned dec=0)
bool
setSymbol (const char *id, const char *value=NULL, unsigned short size=0)
bool
setConst (const char *id, const char *value)
bool
putSymbol (const char *id, const char *value, unsigned short size=0)
bool
catSymbol (const char *id, const char *value, unsigned short size=0)
Release any acquired lock...
More...
bool
signal (const char *name)
Signals are used during "delayed" execution steps when a signal event has occured aynchronously with the execution of a script controlled state event handler.
More...
Signals can be referenced by numeric id as well as by symbolic name.
More...
Enable setting of mutex name for deadlock debug.
More...
Entering a
Mutex locks the mutex for the current thread.
More...
Future abi will use enter/leave/test members.
More...
Future abi will use enter/leave/test members.
More...
Future abi will use enter/leave/test members.
More...
Tries to lock the mutex for the current thread.
More...
Leaving a mutex frees that mutex for use by another thread.
More...
const char *
cstring (const char *str)
unsigned
gather (
Symbol **idx, unsigned max, const char *prefix, const char *suffix)
Symbol *
find (const char *id, unsigned short size=0)
Symbol *
make (const char *id, unsigned short size)
Return the total number of pages that have been allocated for this memory pool.
More...
void
md5_hash (char *out, const char *source)
Static Public Member Functions
static const char *
getGlobal (const char *id)
static bool
setGlobal (const char *id, const char *value)
static bool
sizeGlobal (const char *id, unsigned size)
static bool
addGlobal (const char *id, const char *value)
static double
getDouble (long value, unsigned prec)
static long
getInteger (long value, unsigned prec)
static long
getTens (unsigned prec)
Enable or disable deadlock debugging.
More...
static bool
use (const char *name)
static unsigned
getIndex (const char *id)
static void
snmptrap (unsigned id, const char *descr=NULL)
Allocates the maximum number of timeslots the server will use as a whole and attaches a given server to the library.
More...
Allocate local script engine sessions, if needed.
More...
static unsigned long
uptime (void)
Request active scripts to be recompiled from the library.
More...
Used to down the server from the library.
More...
static bool
service (const char *service)
Sets server service level from the library.
More...
Returns a session pointer for a server timeslot.
More...
Returns a local image pointer for a server timeslot.
More...
Returns a session pointer for a string identifier.
More...
Returns a server timeslot number for a string identifier.
More...
Return total library timeslots used (highest used).
More...
Return total timeslots allocated for the server.
More...
Return remaining timeslots available to allocate driver ports into.
More...
Map a state name into a handler.
More...
Convert a dtmf character into a 0-15 number reference.
More...
Convert a dtmf digit number into it's ascii code.
More...
static bool
matchDigits (const char *digits, const char *match, bool partial=false)
A function to support pattern matching and templates for digit strings.
More...
Use the current compiled script image; mark as in use.
More...
Release a script image in use.
More...
Load a monitoring/management module.
More...
Load a bgm/audio processing module for continues audio.
More...
static void
errlog (const char *level, const char *fmt,...)
static bool
use (const char *name)
static unsigned
getIndex (const char *id)
Data Fields
Static Public Attributes
Table of states ordered by id.
More...
A mutex to serialize any direct console I/O operations.
More...
A mutex to serialize reload requests.
More...
master traffic counters for call attempts and call completions.
More...
Protected Member Functions
Used to indicate commands which require dtmf handling to be enabled.
More...
Enter a co-joined call session; used to notify other services.
More...
Exit a co-joined call session; used to notify other services.
More...
Enable dtmf detection for this channel.
More...
Disable dtmf detection for this channel.
More...
Check audio properties for file and channel audio processing based on the driver specific capabilities of this channel through it's virtual.
More...
virtual to filter incoming events.
More...
Check dtmf handling and other nessisities for the interpreter after an event has changed interpreter state.
More...
Direct method to post an event to a channel.
More...
Return session id for interpreter session command.
More...
Return ccengine symbol page map.
More...
Start a script from idle or ringing.
More...
Compute a uneque call session id for the current call on the current session object.
More...
Set the session to a new state.
More...
Set the session to the running state, resume interpreter or libexec.
More...
Attempt to readjust encoding of active session if supported.
More...
Attempt to readjust encoding of active session for recall.
More...
Set the session to the connecting (join) state or run state based on flags and circumstances from seize/pickup.
More...
Set the result of a libexec initiated process and change state to libexec.
More...
Set the result of a libexec initiated process and execute a reset timer interval.
More...
Exit processing for interpreter.
More...
Initialize execution environment for a script.
More...
Attempt to push a value onto the stack.
More...
Attempt to recall a previous stack level.
More...
Clear the stack of local loops or recursion for branching.
More...
Advance program to the next script statement.
More...
Skip line without checking or setting updates.
More...
void
error (const char *error)
Set error variable and advance to either the error handler or next script statement.
More...
bool
scriptEvent (const char *name, bool inhereted=true)
Events reference to named @event handlers which have been attached to a script.
More...
Branch to a selected event record immediately.
More...
Set the execution interpreter to a trap identifier.
More...
void
trap (const char *name)
Select trap by symbolic name and execute if found, else advance to next script step (unless exit trap).
More...
virtual void *
first (size_t size)
Allocate first workspace from paged memory.
More...
Allocate a string from the memory pager pool and copy the string into it's new memory area.
More...
virtual void *
alloc (size_t size)
Allocate memory from either the currently active page, or allocate a new page for the object.
More...
char *
alloc (const char *str)
Allocate a string from the memory pager pool and copy the string inti it's new memory area.
More...
Clean for memory cleanup before exiting.
More...
Protected Attributes
Translator in effect for this session.
More...
Static Protected Attributes
Private Member Functions
Private Attributes
Friends
Detailed Description
Member Typedef Documentation
typedef const char*(ScriptCommand::* ost::Script::Check)(
Line *line,
ScriptImage *img)
inherited |
typedef const char*(ScriptCommand::* ost::Script::Check)(
Line *line,
ScriptImage *img)
inherited |
typedef bool(* ost::Script::Cond)(
ScriptInterp *interp, const char *v)
inherited |
typedef bool(* ost::Script::Cond)(
ScriptInterp *interp, const char *v)
inherited |
typedef long(* ost::Script::Function)(long *args, unsigned prec)
inherited |
typedef long(* ost::Script::Function)(long *args, unsigned prec)
inherited |
typedef bool(BayonneSession::* ost::Bayonne::Handler)(
Event *event)
inherited |
The current state handler in effect for a given channel to receive events.
This is done by a direct method pointer for fast processing.
Definition at line 909 of file bayonne.h.
typedef void(* ost::Script::Init)(void)
inherited |
typedef void(* ost::Script::Init)(void)
inherited |
typedef const char*(* ost::Script::Meta)(
ScriptInterp *interp, const char *token)
inherited |
typedef const char*(* ost::Script::Meta)(
ScriptInterp *interp, const char *token)
inherited |
typedef bool(ScriptInterp::* ost::Script::Method)(void)
inherited |
typedef bool(ScriptInterp::* ost::Script::Method)(void)
inherited |
typedef const char*(* ost::Script::Parse)(
ScriptCompiler *img, const char *token)
inherited |
typedef const char*(* ost::Script::Parse)(
ScriptCompiler *img, const char *token)
inherited |
typedef void(* ost::Bayonne::rpcmethod_t)(
BayonneRPC *rpc)
inherited |
A rpc method handler.
Definition at line 858 of file bayonne.h.
Member Enumeration Documentation
Type of bridge used for joining ports.
| Enumerator |
|---|
| BR_TDM |
| BR_INET |
| BR_SOFT |
| BR_GATE |
| BR_NONE |
Definition at line 344 of file bayonne.h.
Type of call session being processed.
| Enumerator |
|---|
| NONE |
| INCOMING |
| OUTGOING |
| PICKUP |
| FORWARDED |
| RECALL |
| DIRECT |
| RINGING |
| VIRTUAL |
Definition at line 328 of file bayonne.h.
Primary event identifiers.
These are the events that can be passed into the Bayonne state machine. They are broken into categories.
| Enumerator |
|---|
| MSGPORT_WAKEUP |
| MSGPORT_SHUTDOWN |
| MSGPORT_LOGGING |
| MSGPORT_REGISTER |
| ENTER_STATE |
| EXIT_STATE |
| EXIT_THREAD |
| EXIT_TIMER |
| EXIT_PARTING |
| NULL_EVENT |
| ERROR_STATE |
| ENTER_HUNTING |
| EXIT_HUNTING |
| ENTER_RECONNECT |
| EXIT_RECONNECT |
| RECALL_RECONNECT |
| EXIT_SCRIPT |
| STEP_SCRIPT |
| START_DIRECT |
| START_INCOMING |
| START_OUTGOING |
| START_RECALL |
| START_FORWARDED |
| START_RINGING |
| START_HUNTING |
| START_REFER |
| STOP_SCRIPT |
| STOP_DISCONNECT |
| STOP_PARENT |
| CANCEL_CHILD |
| DETACH_CHILD |
| CHILD_RUNNING |
| CHILD_FAILED |
| CHILD_INVALID |
| CHILD_EXPIRED |
| CHILD_BUSY |
| CHILD_FAX |
| CHILD_DND |
| CHILD_AWAY |
| CHILD_NOCODEC |
| CHILD_OFFLINE |
| START_SCRIPT |
| START_SELECTED |
| START_TRANSFER |
| ENTER_LIBEXEC |
| EXIT_LIBEXEC |
| HEAD_LIBEXEC |
| ARGS_LIBEXEC |
| GOT_LIBEXEC |
| READ_LIBEXEC |
| DROP_LIBEXEC |
| STAT_LIBEXEC |
| PROMPT_LIBEXEC |
| CLEAR_LIBEXEC |
| WAIT_LIBEXEC |
| RECORD_LIBEXEC |
| REPLAY_LIBEXEC |
| RESTART_LIBEXEC |
| TONE_LIBEXEC |
| XFER_LIBEXEC |
| POST_LIBEXEC |
| ERROR_LIBEXEC |
| TIMER_EXPIRED |
| LINE_WINK |
| LINE_PICKUP |
| LINE_HANGUP |
| LINE_DISCONNECT |
| LINE_ON_HOOK |
| LINE_OFF_HOOK |
| RING_ON |
| RING_OFF |
| RING_STOP |
| LINE_CALLER_ID |
| RINGING_DID |
| DEVICE_BLOCKED |
| DEVICE_UNBLOCKED |
| DEVICE_OPEN |
| DEVICE_CLOSE |
| DSP_READY |
| RING_SYNC |
| CALL_DETECT |
| CALL_CONNECTED |
| CALL_RELEASED |
| CALL_ACCEPTED |
| CALL_ANSWERED |
| CALL_HOLD |
| CALL_HOLDING |
| CALL_NOHOLD |
| CALL_DIGITS |
| CALL_OFFERED |
| CALL_ANI |
| CALL_ACTIVE |
| CALL_NOACTIVE |
| CALL_BILLING |
| CALL_RESTART |
| CALL_SETSTATE |
| CALL_FAILURE |
| CALL_ALERTING |
| CALL_INFO |
| CALL_BUSY |
| CALL_DIVERT |
| CALL_FACILITY |
| CALL_FRAME |
| CALL_NOTIFY |
| CALL_NSI |
| CALL_RINGING |
| CALL_DISCONNECT |
| CALL_CLEARED |
| CALL_PROCEEDING |
| RESTART_FAILED |
| RELEASE_FAILED |
| START_RING |
| STOP_RING |
| CLEAR_TIMESLOT |
| START_FLASH |
| STOP_FLASH |
| DIAL_CONNECT |
| DIAL_TIMEOUT |
| DIAL_FAILED |
| DIAL_INVALID |
| DIAL_BUSY |
| DIAL_FAX |
| DIAL_PAM |
| DIAL_DND |
| DIAL_AWAY |
| DIAL_OFFLINE |
| DIAL_NOCODEC |
| DIAL_MACHINE |
| AUDIO_IDLE |
| AUDIO_ACTIVE |
| AUDIO_EXPIRED |
| INPUT_PENDING |
| OUTPUT_PENDING |
| AUDIO_BUFFER |
| TONE_IDLE |
| DTMF_KEYDOWN |
| DTMF_KEYSYNC |
| DTMF_KEYUP |
| TONE_START |
| TONE_STOP |
| AUDIO_START |
| AUDIO_STOP |
| DTMF_GENDOWN |
| DTMF_GENUP |
| AUDIO_SYNC |
| AUDIO_RECONNECT |
| AUDIO_DISCONNECT |
| PEER_RECONNECT |
| PEER_DISCONNECT |
| PEER_REFER |
| DTMF_GENTONE |
| MAKE_TEST |
| MAKE_BUSY |
| MAKE_IDLE |
| MAKE_DOWN |
| MAKE_UP |
| MAKE_EXPIRED |
| ENABLE_LOGGING |
| DISABLE_LOGGING |
| PART_EXPIRED |
| PART_EXITING |
| PART_DISCONNECT |
| JOIN_PEER |
| PEER_WAITING |
| RELOCATE_REQUEST |
| RELOCATE_ACCEPT |
| RELOCATE_REJECT |
| START_RELOCATE |
| STREAM_ACTIVE |
| STREAM_PASSIVE |
| JOIN_RECALL |
| DROP_RECALL |
| DROP_REFER |
| ENTER_RESUME |
| ENTER_SUSPEND |
| SYSTEM_DOWN |
| DRIVER_SPECIFIC |
Definition at line 464 of file bayonne.h.
Telephony endpoint interface identifiers.
| Enumerator |
|---|
| IF_PSTN |
| IF_SPAN |
| IF_ISDN |
| IF_SS7 |
| IF_INET |
| IF_NONE |
| IF_POTS |
Definition at line 314 of file bayonne.h.
| Enumerator |
|---|
| RESULT_SUCCESS |
| RESULT_TIMEOUT |
| RESULT_INVALID |
| RESULT_PENDING |
| RESULT_COMPLETE |
| RESULT_FAILED |
| RESULT_BADPATH |
| RESULT_OFFLINE |
Definition at line 683 of file bayonne.h.
| Enumerator |
|---|
| scrPUBLIC |
| scrPROTECTED |
| scrPRIVATE |
| scrFUNCTION |
| scrLOCAL |
Definition at line 113 of file script3.h.
Signaled interpreter events.
These can be masked and accessed through ^xxx handlers in the scripting language.
| Enumerator |
|---|
| SIGNAL_EXIT |
| SIGNAL_ERROR |
| SIGNAL_TIMEOUT |
| SIGNAL_DTMF |
| SIGNAL_0 |
| SIGNAL_1 |
| SIGNAL_2 |
| SIGNAL_3 |
| SIGNAL_4 |
| SIGNAL_5 |
| SIGNAL_6 |
| SIGNAL_7 |
| SIGNAL_8 |
| SIGNAL_9 |
| SIGNAL_STAR |
| SIGNAL_POUND |
| SIGNAL_A |
| SIGNAL_OVERRIDE |
| SIGNAL_B |
| SIGNAL_FLASH |
| SIGNAL_C |
| SIGNAL_IMMEDIATE |
| SIGNAL_D |
| SIGNAL_PRIORITY |
| SIGNAL_RING |
| SIGNAL_TONE |
| SIGNAL_EVENT |
| SIGNAL_WINK |
| SIGNAL_CHILD |
| SIGNAL_FAIL |
| SIGNAL_PICKUP |
| SIGNAL_PART |
| SIGNAL_INVALID |
| SIGNAL_PARENT |
| SIGNAL_WAIT |
| SIGNAL_HANGUP |
Definition at line 414 of file bayonne.h.
Call processing states offered in core library.
This list must be ordered to match the entries in the state table (statetab).
| Enumerator |
|---|
| STATE_INITIAL |
| STATE_IDLE |
| STATE_RESET |
| STATE_RELEASE |
| STATE_BUSY |
| STATE_DOWN |
| STATE_RING |
| STATE_PICKUP |
| STATE_SEIZE |
| STATE_ANSWER |
| STATE_STEP |
| STATE_EXEC |
| STATE_THREAD |
| STATE_CLEAR |
| STATE_INKEY |
| STATE_INPUT |
| STATE_READ |
| STATE_COLLECT |
| STATE_DIAL |
| STATE_XFER |
| STATE_REFER |
| STATE_HOLD |
| STATE_RECALL |
| STATE_TONE |
| STATE_DTMF |
| STATE_PLAY |
| STATE_RECORD |
| STATE_JOIN |
| STATE_WAIT |
| STATE_CALLING |
| STATE_CONNECT |
| STATE_RECONNECT |
| STATE_HUNTING |
| STATE_SLEEP |
| STATE_START |
| STATE_HANGUP |
| STATE_LIBRESET |
| STATE_WAITKEY |
| STATE_LIBWAIT |
| STATE_IRESET |
| STATE_FINAL |
| STATE_SUSPEND |
| STATE_STANDBY |
| STATE_LIBEXEC |
| STATE_RINGING |
| STATE_RUNNING |
| STATE_THREADING |
Definition at line 358 of file bayonne.h.
| Enumerator |
|---|
| symNORMAL |
| symCONST |
| symDYNAMIC |
| symFIFO |
| symSEQUENCE |
| symSTACK |
| symCOUNTER |
| symPOINTER |
| symREF |
| symARRAY |
| symASSOC |
| symINITIAL |
| symNUMBER |
| symLOCK |
| symPROPERTY |
| symORIGINAL |
| symMODIFIED |
| symTIMER |
| symBOOL |
Definition at line 123 of file script3.h.
Constructor & Destructor Documentation
ost::BayonneSession::BayonneSession
(
)
inlineprivate |
Create a new session.
- Parameters
-
driver to bind.
timeslot to bind.
span to bind, or NULL if no span associated.
virtual ost::BayonneSession::~BayonneSession
(
)
virtual |
Member Function Documentation
static void ost::Script::addConditional
(
const char *
name,
)
staticinherited |
static void ost::Script::addConditional
(
const char *
name,
)
staticinherited |
static void ost::Bayonne::addConfig
(
const char *
cfgfile )
staticinherited |
static void ost::Script::addFunction
(
const char *
name,
unsigned
count,
)
staticinherited |
static void ost::Script::addFunction
(
const char *
name,
unsigned
count,
)
staticinherited |
static bool ost::BayonneSession::addGlobal
(
const char *
id,
const char *
value
)
static |
bool ost::BayonneSession::addSymbol
(
const char *
id,
const char *
value
)
Add to an existing symbol.
- Parameters
-
id of symbol.
value to add.
- Returns
- false if not exists.
static void ost::Bayonne::addTrap4
(
const char *
addr )
staticinherited |
void ost::ScriptInterp::advance
(
void
)
protectedinherited |
Advance program to the next script statement.
virtual void* MemPager::alloc
(
size_t
size )
protectedvirtualinherited |
Allocate memory from either the currently active page, or allocate a new page for the object.
- Parameters
-
size size of memory to allocate.
- Returns
- pointer to allocated memory.
Reimplemented in SharedMemPager.
char* MemPager::alloc
(
const char *
str )
protectedinherited |
Allocate a string from the memory pager pool and copy the string inti it's new memory area.
This checks only the last active page for available space before allocating a new page.
- Parameters
-
str string to allocate and copy into paged memory pool.
- Returns
- copy of string from allocated memory.
static void ost::Bayonne::allocate
(
timeslot_t
timeslots,
)
staticinherited |
Allocates the maximum number of timeslots the server will use as a whole and attaches a given server to the library.
- Parameters
-
timeslots to allocate.
pointer to server shell.
static void ost::Bayonne::allocateLocal
(
void
)
staticinherited |
Allocate local script engine sessions, if needed.
static bool ost::Script::append
(
Symbol *
sym,
const char *
value
)
staticinherited |
static bool ost::Script::append
(
Symbol *
sym,
const char *
value
)
staticinherited |
Set new call association.
Used by ACD.
- Parameters
-
session to associate with.
const char *
scrname
)
inherited |
Name* ost::BayonneSession::attachStart
(
Event *
event )
protected |
Start a script from idle or ringing.
This may use the assign statements to find the script name if none is passed.
- Parameters
-
event passed to kick off the script.
- Returns
- script to run or NULL.
virtual const char* ost::BayonneSession::audioEncoding
(
void
)
virtual |
Get driver default encoding.
virtual const char* ost::BayonneSession::audioExtension
(
void
)
virtual |
Get driver default extension.
virtual
timeout_t ost::BayonneSession::audioFraming
(
void
)
virtual |
Get driver default framing.
void ost::BayonneSession::branching
(
void
)
virtual |
ccengine branch event notification.
Used for menudef processing.
Reimplemented from ost::ScriptInterp.
bool ost::ScriptInterp::catSymbol
(
const char *
id,
const char *
value,
unsigned short
size = 0
)
inherited |
void ost::BayonneSession::check
(
void
)
protected |
Check dtmf handling and other nessisities for the interpreter after an event has changed interpreter state.
virtual const char* ost::BayonneSession::checkAudio
(
bool
live )
protectedvirtual |
Check audio properties for file and channel audio processing based on the driver specific capabilities of this channel through it's virtual.
- Returns
- error message if audio format unacceptable, NULL if ok.
- Parameters
-
true if for live audio, false if for file only.
void MemPager::clean
(
void
)
protectedinherited |
Clean for memory cleanup before exiting.
static void ost::Script::clear
(
Symbol *
sym )
staticinherited |
static void ost::Script::clear
(
Symbol *
sym )
staticinherited |
static bool ost::BayonneSession::clearGlobal
(
const char *
id )
static |
void ost::ScriptInterp::clearStack
(
void
)
protectedinherited |
Clear the stack of local loops or recursion for branching.
bool ost::BayonneSession::clearSymbol
(
const char *
id )
Clear an existing symbol.
- Parameters
-
id of symbol.
- Returns
- false if not exists.
virtual void ost::BayonneSession::clrAudio
(
void
)
virtual |
Clear/cleanup audio processing for the session.
static bool ost::Script::commit
(
Symbol *
sym,
const char *
value
)
staticinherited |
static bool ost::Script::commit
(
Symbol *
sym,
const char *
value
)
staticinherited |
bool ost::ScriptInterp::conditional
(
void
)
inherited |
bool ost::ScriptInterp::conditionalExpression
(
void
)
inherited |
static unsigned ost::Script::count
(
Symbol *
sym )
staticinherited |
static unsigned ost::Script::count
(
Symbol *
sym )
staticinherited |
const char* ost::ScriptSymbols::cstring
(
const char *
str )
inlineinherited |
void ost::BayonneSession::decActiveCalls
(
void
)
protected |
const char* ost::BayonneSession::defVoicelib
(
void
)
inline |
void ost::BayonneSession::detach
(
void
)
bool ost::BayonneSession::digitEvent
(
const char *
event )
Throw a digit pattern matching event message to the interprer.
- Returns
- true if throw caught.
- Parameters
-
event message.
virtual void ost::BayonneSession::disableDTMF
(
void
)
protectedvirtual |
Disable dtmf detection for this channel.
bool ost::ScriptInterp::done
(
void
)
inherited |
static void ost::Bayonne::down
(
void
)
staticinherited |
Used to down the server from the library.
virtual bool ost::BayonneSession::enableDTMF
(
void
)
protectedvirtual |
Enable dtmf detection for this channel.
- Returns
- true if successful.
static void ost::Bayonne::endImage
(
ScriptImage *
image )
staticinherited |
Release a script image in use.
If no active calls are using it and it's no longer the top active image, purge from memory.
- Parameters
-
image to compiled script from useImage.
void Mutex::enter
(
void
)
inlineinherited |
Future abi will use enter/leave/test members.
Definition at line 263 of file thread.h.
virtual bool ost::BayonneSession::enterAnswer
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterBusy
(
Event *
event )
protectedvirtual |
void ost::BayonneSession::enterCall
(
void
)
protected |
Enter a co-joined call session; used to notify other services.
Always performed by child node.
virtual bool ost::BayonneSession::enterCommon
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterDial
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterDTMF
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterFinal
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterHangup
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterHold
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterHunting
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterIdle
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterInitial
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterJoin
(
Event *
event )
protectedvirtual |
void Mutex::enterMutex
(
void
)
inherited |
Entering a Mutex locks the mutex for the current thread.
This also can be done using the ENTER_CRITICAL macro or by using the ++ operator on a mutex.
- See Also
- leaveMutex
virtual bool ost::BayonneSession::enterPickup
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterPlay
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterRecall
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterReconnect
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterRecord
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterRefer
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterRelease
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterReset
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterRinging
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterSeize
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterStandby
(
Event *
event )
protectedvirtual |
virtual void ost::BayonneSession::enterThread
(
ScriptThread *
thr )
virtual |
virtual bool ost::BayonneSession::enterTone
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterWait
(
Event *
event )
protectedvirtual |
virtual bool ost::BayonneSession::enterXfer
(
Event *
event )
protectedvirtual |
static void ost::Bayonne::errlog
(
const char *
level,
const char *
fmt,
...
)
staticinherited |
void ost::ScriptInterp::error
(
const char *
error )
protectedinherited |
Set error variable and advance to either the error handler or next script statement.
- Parameters
-
error message.
bool ost::ScriptInterp::eventThread
(
const char *
evt,
bool
flag = true
)
protectedinherited |
bool ost::ScriptInterp::execute
(
Method
method )
inherited |
Runtime execution of script handler.
This can be called in the current or derived class to invoke extensible methods.
- Returns
- true if immediately ready for next step.
- Parameters
-
method derived method member to call.
bool ost::BayonneSession::exit
(
void
)
protectedvirtual |
Exit processing for interpreter.
- Returns
- true of exiting.
Reimplemented from ost::ScriptInterp.
void ost::BayonneSession::exitCall
(
const char *
reason )
protected |
Exit a co-joined call session; used to notify other services.
May happen when a child node exits, drops a recall, or is dropped by a parent.
- Parameters
-
reason call is terminated.
virtual void ost::BayonneSession::exitThread
(
const char *
msg )
virtual |
static const char* ost::Script::extract
(
Symbol *
sym )
staticinherited |
static const char* ost::Script::extract
(
Symbol *
sym )
staticinherited |
virtual bool ost::BayonneSession::filterPosting
(
Event *
event )
protectedvirtual |
virtual to filter incoming events.
- Parameters
-
event being sent to channel.
- Returns
- true if accepting event.
void ost::BayonneSession::finalize
(
void
)
protected |
Symbol* ost::ScriptSymbols::find
(
const char *
id,
unsigned short
size = 0
)
inherited |
virtual void* MemPager::first
(
size_t
size )
protectedvirtualinherited |
Allocate first workspace from paged memory.
This method scans all currently allocated blocks for available space before adding new pages and hence is both slower and more efficient.
- Parameters
-
size size of memory to allocate.
- Returns
- pointer to allocated memory.
Reimplemented in SharedMemPager.
char* MemPager::first
(
char *
str )
protectedinherited |
Allocate a string from the memory pager pool and copy the string into it's new memory area.
This method allocates memory by first searching for an available page, and then allocating a new page if no space is found.
- Parameters
-
str string to allocate and copy into paged memory pool.
- Returns
- copy of string from allocated memory.
unsigned ost::ScriptSymbols::gather
(
Symbol **
idx,
unsigned
max,
const char *
prefix,
const char *
suffix
)
inherited |
unsigned ost::ScriptSymbols::gathertype
(
Symbol **
idx,
unsigned
max,
const char *
prefix,
)
inherited |
const char* ost::BayonneSession::getAudio
(
bool
live = true )
Check script keywords for audio processing.
- Returns
- NULL if ok, else error message.
- Parameters
-
live true if for live, else for file processing.
static
timeslot_t ost::Bayonne::getAvailTimeslots
(
void
)
inlinestaticinherited |
Return remaining timeslots available to allocate driver ports into.
- Returns
- remaining timeslots.
Definition at line 1209 of file bayonne.h.
bridge_t ost::BayonneSession::getBridge
(
void
)
inline |
Return bridge type for joins.
- Returns
- bridge type.
Definition at line 3071 of file bayonne.h.
static char ost::Bayonne::getChar
(
int
dtmf )
staticinherited |
Convert a dtmf digit number into it's ascii code.
- Parameters
-
dtmf digit number.
- Returns
- dtmf character code.
const char* ost::ScriptInterp::getContent
(
const char *
opt )
inherited |
static int ost::Bayonne::getDigit
(
char
dtmf )
staticinherited |
Convert a dtmf character into a 0-15 number reference.
- Parameters
-
dtmf digit as ascii
- Returns
- dtmf digit number.
char ost::BayonneSession::getDigit
(
void
)
Get the next pending digit in the DTMF input buffer.
- Returns
- digit.
const char* ost::BayonneSession::getDigits
(
void
)
static double ost::ScriptInterp::getDouble
(
long
value,
unsigned
prec
)
staticinherited |
Return driver associated with this session.
- Returns
- driver object.
Definition at line 2934 of file bayonne.h.
static
BayonneDriver* ost::Bayonne::getDriverTag
(
const char *
id )
staticinherited |
uint16 ost::BayonneSession::getEventSequence
(
void
)
inline |
Get event sequence id.
- Returns
- event sequence id.
Definition at line 2716 of file bayonne.h.
const char* ost::BayonneSession::getExitKeyword
(
const char *
def )
const char* ost::BayonneSession::getExternal
(
const char *
option )
virtual |
Process interpreter session symbols.
- Parameters
-
option symbol being requested.
- Returns
- NULL if not external, else value.
Reimplemented from ost::ScriptInterp.
Frame* ost::ScriptInterp::getFrame
(
void
)
inlineinherited |
static const char* ost::BayonneSession::getGlobal
(
const char *
id )
static |
unsigned ost::BayonneSession::getId
(
void
)
protectedvirtual |
static unsigned ost::Script::getIndex
(
const char *
id )
staticinherited |
static unsigned ost::Script::getIndex
(
const char *
id )
staticinherited |
unsigned ost::BayonneSession::getInputCount
(
const char *
digits,
unsigned
max
)
static long ost::ScriptInterp::getInteger
(
long
value,
unsigned
prec
)
staticinherited |
Return interface type of this session.
- Returns
- interface type.
Definition at line 3063 of file bayonne.h.
ScriptInterp* ost::BayonneSession::getInterp
(
const char *
id )
protectedvirtual |
Return session id for interpreter session command.
- Parameters
-
id of session request.
- Returns
- ccengine object to return for the id.
Reimplemented from ost::ScriptInterp.
long ost::ScriptInterp::getIntValue
(
const char *
text,
unsigned
prec,
)
inherited |
time_t ost::BayonneSession::getJoined
(
void
)
inline |
Return time this call is joined or 0 if not child node.
Definition at line 2926 of file bayonne.h.
timeout_t ost::BayonneSession::getJoinTimer
(
void
)
Return parent answer timer, if joining.
- Returns
- timeout for joining.
bool ost::BayonneSession::getKeyBool
(
const char *
id )
const char* ost::ScriptInterp::getKeyoption
(
const char *
kw )
inherited |
const char* ost::BayonneSession::getKeyString
(
const char *
id )
Symbol* ost::ScriptInterp::getKeysymbol
(
const char *
kw,
unsigned
size = 0
)
inherited |
long ost::BayonneSession::getKeyValue
(
const char *
id )
const char* ost::ScriptInterp::getKeyword
(
const char *
kw )
inherited |
libaudio_t* ost::BayonneSession::getLibaudio
(
void
)
inlineprotected |
Get the libaudio object.
Used by server libexec to prepare a libaudio/phrasebook session.
- Returns
- libaudio object for this session.
Definition at line 2840 of file bayonne.h.
timeout_t ost::BayonneSession::getLibexecTimeout
(
void
)
protected |
Line* ost::ScriptInterp::getLine
(
void
)
inlineinherited |
Returns a local image pointer for a server timeslot.
- Parameters
-
timeslot number in server.
- Returns
- pointer to image pointer or NULL if empty/invalid.
virtual const char* ost::ScriptInterp::getLogname
(
void
)
inlinevirtualinherited |
unsigned long ost::ScriptInterp::getMask
(
void
)
protectedinherited |
const char* ost::ScriptInterp::getMember
(
void
)
inherited |
const char* ost::BayonneSession::getMenuKeyword
(
const char *
def )
timeout_t ost::BayonneSession::getMSecTimeout
(
const char *
id )
Name* ost::ScriptInterp::getName
(
void
)
inlineinherited |
const char* ost::ScriptInterp::getOption
(
const char *
def = NULL )
inherited |
char ost::ScriptInterp::getPackToken
(
void
)
inherited |
int MemPager::getPages
(
void
)
inlineinherited |
Return the total number of pages that have been allocated for this memory pool.
- Returns
- number of pages allocated.
Definition at line 181 of file misc.h.
static long ost::ScriptInterp::getRealValue
(
double
val,
unsigned
prec
)
staticinherited |
static const char* ost::Bayonne::getRegistryId
(
const char *
id )
staticinherited |
virtual
timeout_t ost::BayonneSession::getRemaining
(
void
)
pure virtual |
Return time remaining until timer expires.
Commonly used for msgport scheduling.
- Returns
- time remaining in milliseconds.
static const char* ost::Bayonne::getRunLevel
(
void
)
staticinherited |
Get service level.
- Parameters
-
return service level
Name* ost::ScriptInterp::getScript
(
const char *
name )
inherited |
timeout_t ost::BayonneSession::getSecTimeout
(
const char *
id )
unsigned long ost::ScriptInterp::getSequence
(
void
)
inlineinherited |
Returns a session pointer for a server timeslot.
Each server timeslot can map to a single session object.
- Parameters
-
timeslot number in server.
- Returns
- session object or NULL if timeslot empty/invalid.
const char* ost::BayonneSession::getSessionId
(
void
)
inline |
const char* ost::BayonneSession::getSessionJoined
(
void
)
inline |
const char* ost::BayonneSession::getSessionParent
(
void
)
inline |
time_t ost::BayonneSession::getSessionStart
(
void
)
inline |
Returns a session pointer for a string identifier.
This can be for a transaction id, a call id, or other unique identifiers which can be mapped into a single timeslot.
- Parameters
-
id session identifier string.
- Returns
- session object or NULL if not found.
Return server timeslot this session uses.
- Returns
- server timeslot.
Definition at line 3087 of file bayonne.h.
static
Handler ost::Bayonne::getState
(
const char *
name )
staticinherited |
Map a state name into a handler.
Used for logging requests. Uses the statetab.
- Parameters
-
name of state to lookup.
- Returns
- handler method for state if found.
Symbol* ost::ScriptInterp::getSymbol
(
unsigned short
size =
0 )
inherited |
bool ost::ScriptInterp::getSymbol
(
const char *
id,
char *
buffer,
unsigned short
max
)
inherited |
const char* ost::ScriptInterp::getSymbol
(
const char *
id )
inherited |
ScriptSymbols* ost::BayonneSession::getSymbols
(
const char *
id )
protectedvirtual |
Return ccengine symbol page map.
Gives access to globals.
- Parameters
-
id table of symbols.
- Returns
- table map to use.
Reimplemented from ost::ScriptInterp.
const char* ost::ScriptInterp::getSymContent
(
const char *
opt )
inherited |
char* ost::ScriptInterp::getTemp
(
void
)
inherited |
unsigned ost::ScriptInterp::getTempSize
(
void
)
inherited |
static long ost::ScriptInterp::getTens
(
unsigned
prec )
staticinherited |
const char* ost::BayonneSession::getTid
(
void
)
inline |
Get the current transaction identifier string for the session.
- Returns
- transaction identifier.
Definition at line 3204 of file bayonne.h.
timeout_t ost::ScriptInterp::getTimeout
(
void
)
inherited |
timeout_t ost::BayonneSession::getTimeoutKeyword
(
const char *
kw )
timeout_t ost::BayonneSession::getTimeoutValue
(
const char *
opt =
NULL )
timeslot_t ost::BayonneSession::getTimeslot
(
void
)
inline |
static
timeslot_t ost::Bayonne::getTimeslotCount
(
void
)
inlinestaticinherited |
Return total timeslots allocated for the server.
- Returns
- total number of timeslots, max + 1.
Definition at line 1200 of file bayonne.h.
static
timeslot_t ost::Bayonne::getTimeslotsUsed
(
void
)
inlinestaticinherited |
Return total library timeslots used (highest used).
- Returns
- highest server timeslot in use.
Definition at line 1192 of file bayonne.h.
virtual
timeout_t ost::BayonneSession::getToneFraming
(
void
)
virtual |
Get frame rate used for creating tone generators.
bool ost::ScriptInterp::getTrace
(
void
)
inlineinherited |
Get the current language translator.
- Returns
- translator.
Definition at line 2824 of file bayonne.h.
Return call type on session.
- Returns
- call type.
Definition at line 3079 of file bayonne.h.
static bool ost::Bayonne::getUserdata
(
void
)
staticinherited |
const char* ost::ScriptInterp::getValue
(
const char *
def = NULL )
inherited |
const char* ost::BayonneSession::getWritepath
(
char *
buf = NULL,
size_t
len = 0
)
protected |
void ost::ScriptInterp::gotoEvent
(
NamedEvent *
event )
protectedinherited |
Branch to a selected event record immediately.
- Parameters
-
event record pointer to access.
const char* ost::ScriptInterp::hasOption
(
void
)
inherited |
void ost::BayonneSession::incActiveCalls
(
void
)
protected |
void ost::BayonneSession::incIncomingAttempts
(
void
)
protected |
void ost::BayonneSession::incIncomingComplete
(
void
)
protected |
void ost::BayonneSession::incOutgoingAttempts
(
void
)
protected |
void ost::BayonneSession::incOutgoingComplete
(
void
)
protected |
void ost::BayonneSession::initialevent
(
void
)
void ost::BayonneSession::initialize
(
void
)
virtual |
void ost::ScriptInterp::initRuntime
(
Name *
name )
protectedinherited |
Initialize execution environment for a script.
bool ost::BayonneSession::isAssociated
(
void
)
Return state of association with parent in call.
- Returns
- true if currently associated.
bool ost::BayonneSession::isDisconnecting
(
void
)
Return state disconnecting or idle...
bool ost::BayonneSession::isDTMF
(
void
)
inline |
bool ost::ScriptInterp::isExiting
(
void
)
inlineinherited |
static bool ost::Script::isFunction
(
Name *
scr )
staticinherited |
static bool ost::Script::isFunction
(
Name *
scr )
staticinherited |
bool ost::BayonneSession::isHolding
(
void
)
inline |
bool ost::BayonneSession::isIdle
(
void
)
inline |
Return if the session is currently idle.
- Returns
- true if currently idle.
Definition at line 3095 of file bayonne.h.
bool ost::BayonneSession::isJoined
(
void
)
Return state of join.
- Returns
- true if currently joined.
bool ost::BayonneSession::isLibexec
(
const char *
tsid )
protected |
virtual bool ost::ScriptInterp::isLocked
(
const char *
id )
protectedvirtualinherited |
bool ost::BayonneSession::isOffhook
(
void
)
inline |
Return hook state.
- Returns
- true if offhook.
Definition at line 3055 of file bayonne.h.
bool ost::BayonneSession::isPeering
(
void
)
inline |
static bool ost::Script::isPrivate
(
Name *
scr )
staticinherited |
static bool ost::Script::isPrivate
(
Name *
scr )
staticinherited |
bool ost::BayonneSession::isRefer
(
void
)
Return if currently referring.
- Returns
- true if referring.
bool ost::ScriptInterp::isRunning
(
void
)
inlineinherited |
static bool ost::Script::isScript
(
Name *
scr )
staticinherited |
static bool ost::Script::isScript
(
Name *
scr )
staticinherited |
static bool ost::Script::isSymbol
(
const char *
id )
staticinherited |
static bool ost::Script::isSymbol
(
const char *
id )
staticinherited |
void Mutex::leave
(
void
)
inlineinherited |
Future abi will use enter/leave/test members.
Definition at line 269 of file thread.h.
void Mutex::leaveMutex
(
void
)
inherited |
Leaving a mutex frees that mutex for use by another thread.
If the mutex has been entered (invoked) multiple times (recursivily) by the same thread, then it will need to be exited the same number of instances before it is free for re-use. This operation can also be done using the LEAVE_CRITICAL macro or by the – operator on a mutex.
- See Also
- enterMutex
void ost::BayonneSession::libClose
(
const char *
string )
protected |
void ost::BayonneSession::libWrite
(
const char *
string )
protected |
Write libexec...
- Parameters
-
string to write.
static bool ost::Bayonne::loadAudio
(
const char *
path )
staticinherited |
Load a bgm/audio processing module for continues audio.
- Parameters
-
path id of plugin.
- Returns
- true if successful.
static bool ost::Bayonne::loadMonitor
(
const char *
path )
staticinherited |
Load a monitoring/management module.
- Parameters
-
path id of plugin.
- Returns
- true if successful.
static bool ost::Bayonne::loadPlugin
(
const char *
path )
staticinherited |
Load a plugin module.
- Parameters
-
path id of plugin.
- Returns
- true if successful.
virtual void ost::ScriptInterp::logerror
(
const char *
msg,
const char *
name = NULL
)
virtualinherited |
virtual void ost::ScriptInterp::logmissing
(
const char *
id,
const char *
level = "undefined",
const char *
group = "symbol"
)
virtualinherited |
Symbol* ost::ScriptSymbols::make
(
const char *
id,
unsigned short
size
)
inherited |
virtual void ost::BayonneSession::makeIdle
(
void
)
virtual |
Handles driver specific stuff when going idle.
Symbol* ost::ScriptInterp::mapDirect
(
const char *
id,
unsigned
short = 0
)
inherited |
Symbol* ost::ScriptInterp::mapSymbol
(
const char *
id,
unsigned
short = 0
)
inherited |
static bool ost::Bayonne::matchDigits
(
const char *
digits,
const char *
match,
bool
partial = false
)
staticinherited |
A function to support pattern matching and templates for digit strings.
This is used for digit @xxx:... entries and the route command.
- Parameters
-
digits to use.
match digit pattern to match against.
partial accept match if true.
- Returns
- true if digits match to pattern.
bool ost::BayonneSession::matchLine
(
Line *
line )
void ost::Bayonne::md5_hash
(
char *
out,
const char *
source
)
inherited |
Compute md5 hashes...
- Parameters
-
md5 output string
string to hash
void Mutex::nameMutex
(
const char *
name )
inlineinherited |
Enable setting of mutex name for deadlock debug.
- Parameters
-
name for mutex.
Definition at line 248 of file thread.h.
uint32 ost::BayonneSession::newTid
(
void
)
Compute a new unique transaction id.
These are like pids and are often used to assure transaction coherence, such as in the libexec system.
- Returns
- generated integer transaction identifier.
int ost::ScriptInterp::numericExpression
(
long *
list,
int
max,
unsigned
prec,
)
inherited |
void ost::BayonneSession::part
(
event_t
reason )
Disconnect notify peer...
- Parameters
-
reason event id to pass
virtual bool ost::BayonneSession::peerAudio
(
Audio::Encoded
encoded )
virtual |
Post a peer audio frame into the driver.
The frame is assumed to either be in the format used for global peering, or, if the driver supports setPeering, perhaps in the session selected format.
- Returns
- true if peer frame was posted.
- Parameters
-
encoded audio frame to peer.
virtual bool ost::BayonneSession::peerLinear
(
void
)
virtual |
Indicate whether session peers audio as linear frames.
- Returns
- true if peering linear.
virtual bool ost::BayonneSession::postEvent
(
Event *
event )
virtual |
Post an event to the session state engine.
- Returns
- true if event claimed.
- Parameters
-
event being posted.
bool ost::ScriptInterp::pull
(
void
)
protectedinherited |
Attempt to recall a previous stack level.
- Returns
- false if stack underflow.
void ost::ScriptSymbols::purge
(
void
)
|