|
Public Member Functions |
| | BayonneDriver (Keydata::Define *pairs, const char *cfg, const char *id, bool pri) |
| | Create a driver instance.
|
| | ~BayonneDriver () |
| | Destroy driver instance.
|
| BayonneSession * | getIdle (void) |
| | Get longest idle session to active for call processing.
|
| virtual const char * | registerScript (ScriptImage *img, Line *line) |
| | Process driver protocol specific proxy registration requests.
|
| virtual const char * | assignScript (ScriptImage *img, Line *line) |
| | Process driver specific assign requests.
|
| timeslot_t | getFirst (void) |
| | Get first server timeslot this driver uses.
|
| timeslot_t | getCount (void) |
| | Get the total number of timeslots this driver uses.
|
| unsigned | getSpanFirst (void) |
| | Get the first span id used.
|
| unsigned | getSpansUsed (void) |
| | Get the number of span objects used by driver.
|
| const char * | getName (void) |
| | Get the name of the driver.
|
| timeout_t | getResetTimer (void) |
| | Get the reset timer for this driver when resetting a thread in the step state.
|
| timeout_t | getReleaseTimer (void) |
| | Get the release timer when releasing a trunk.
|
| timeout_t | getHangupTimer (void) |
| | Get the hangup timer for hang time before going idle.
|
| timeout_t | getPickupTimer (void) |
| | Get the pickup timer to wait for channel pickup.
|
| timeout_t | getSeizeTimer (void) |
| | Get the sieze time to wait for dialtone on outbound call.
|
| timeout_t | getFlashTimer (void) |
| | Get the programmed flash timer to signal trunk flash.
|
| timeout_t | getInterdigit (void) |
| | Get default dtmf interdigit timer to use.
|
| timeout_t | getRingTimer (void) |
| | Get the timer to wait for next ring before deciding a call has dissapeared.
|
| unsigned | getAnswerCount (void) |
| | Get the number of rings to wait before answering.
|
| BayonneSpan * | getSpan (unsigned id) |
| | Get the nth span object associated with this driver.
|
| BayonneSession * | getTimeslot (timeslot_t id) |
| | Get the session associated with the nth timeslot for this driver.
|
| BayonneMsgport * | getMsgport (void) |
| | Return the message port bound with this driver.
|
| size_t | getAudioStack (void) |
| | Get the size of the stack for audio threads.
|
| int | getAudioPriority (void) |
| | Get the thread priority to use for audio threads for this driver.
|
| Audio::Level | getAudioLevel (void) |
| | Get the audio level for silence detection.
|
| void | setLogging (std::ostream *output) |
| | Set driver logging.
|
| bool | isSpanable (unsigned span) |
| | Determine if a span is available.
|
| virtual bool | getDestination (const char *target, const char *dial, char *buffer, size_t size) |
| | Deterime if a network destination is reachable through this driver, and convert dialing string into network reference.
|
| unsigned | getAvail (void) |
| | Get available timeslots.
|
Static Public Member Functions |
| static bool | useProtocols (void) |
| | Return flag for protocols active.
|
| static BayonneDriver * | getTrunking (void) |
| | Return primary trunk driver, if driver trunking.
|
| static BayonneDriver * | getPrimary (void) |
| | Return the first loaded driver.
|
| static BayonneDriver * | getProtocol (void) |
| | Return primary protocol driver.
|
| static BayonneDriver * | get (const char *id) |
| | Find and return driver object from id name.
|
| static BayonneDriver * | loadDriver (const char *id) |
| | Load a bayonne driver into memory.
|
| static BayonneDriver * | loadTrunking (const char *id) |
| | Load a bayonne trunking driver into memory, set protocols.
|
| static BayonneDriver * | loadProtocol (const char *id, unsigned timeslots=0) |
| | Load a protocol driver into memory, set timeslots.
|
| static unsigned | list (char **items, unsigned max) |
| | Get list of driver names into string array.
|
| static void | start (void) |
| | Start all loaded drivers.
|
| static void | stop (void) |
| | Stop all loaded drivers.
|
| static void | add (BayonneSession *session) |
| | Add session to driver idle list for getIdle, usually during stateIdle.
|
| static void | del (BayonneSession *session) |
| | Remove session from driver idle list if still present.
|
Protected Member Functions |
| virtual void | startDriver (void) |
| | Virtual to override method for activating the driver and creating all session and span objects associated with it.
|
| virtual void | stopDriver (void) |
| | Virtual to override method for clean shutdown of the driver.
|
Protected Attributes |
| BayonneSession * | firstIdle |
| BayonneSession * | lastIdle |
| BayonneMsgport * | msgport |
| BayonneDriver * | nextDriver |
| const char * | name |
| timeslot_t | timeslot |
| timeslot_t | count |
| unsigned | avail |
| unsigned | span |
| unsigned | spans |
| bool | running |
| std::ostream * | logevents |
| int | audio_priority |
| size_t | audio_stack |
| Audio::Level | audio_level |
| timeout_t | pickup_timer |
| timeout_t | hangup_timer |
| timeout_t | seize_timer |
| timeout_t | ring_timer |
| timeout_t | reset_timer |
| timeout_t | release_timer |
| timeout_t | flash_timer |
| timeout_t | interdigit_timer |
| unsigned | answer_count |
Static Protected Attributes |
| static BayonneDriver * | firstDriver |
| static BayonneDriver * | lastDriver |
| static BayonneDriver * | trunkDriver |
| static BayonneDriver * | protoDriver |
| static Semaphore | oink |
| static bool | protocols |
Friends |
| class __EXPORT | BayonneSession |
| class __EXPORT | BayonneMsgport |