|
Public Types |
| enum | {
capDaemon = 0x0001,
capPSTN = 0x0002,
capJoin = 0x00004,
capSpans = 0x0008,
capSpeed = 0x0010,
capPitch = 0x0020,
capGain = 0x0040,
capListen = 0x0080,
capIP = 0x00160,
capDynamic = 0x1000,
capSwitch = 0x2000,
capConference = 0x4000,
capOffline = 0x8000
} |
| enum | {
TRUNK_URI = 0x0001,
TRUNK_EXTENSION = 0x0002,
TRUNK_GROUP = 0x0004,
TRUNK_TIE = 0x0008,
TRUNK_LOCAL = 0x0032,
TRUNK_START = 0x0160
} |
Public Member Functions |
| void | ticTimer (void) |
| | inc ref timer for sec tics.
|
| virtual void | secTick (void) |
| | Second tick interval counter.
|
| virtual unsigned | getCaps (void) |
| | Return driver capabilities.
|
| | Driver () |
| | Create an instance of the driver.
|
| virtual char * | getName (void) |
| | Get the name of the driver.
|
| bool | isIdle (void) |
| | Report if driver is idle.
|
| bool | isDown (void) |
| | Report if driver is down.
|
| virtual int | start (void)=0 |
| | Start a driver; start service threads, build device nodes, etc.
|
| virtual void | stop (void)=0 |
| | Shutdown the driver, service threads, etc.
|
| virtual aaImage * | getImage (void) |
| | Load a script image.
|
| virtual unsigned | getTrunkCount (void)=0 |
| | Get total number of port identifiers (timeslots) used by the current driver.
|
| virtual unsigned | getTrunkUsed (void) |
| | Get active number of ports actually deployed by the current driver.
|
| int | getTrunkMember (TrunkGroup *grp, unsigned member) |
| | Get the trunk group member trunk.
|
| virtual Trunk * | getTrunkPort (int id)=0 |
| | Get an individual port from the driver by timeslot/id.
|
| virtual bool | isTrunkClass (int id, const char *name) |
| | Return driver classification either by supporting group name or because the id used is valid for this driver or the specified port.
|
| virtual Trunk * | getOutboundTrunk (int id) |
| | Get an individual port from the driver by timeslot/id for the outbound (gives drivers which dynamically allocate trunks the opportunity to create one).
|
| Trunk * | getTrunkId (const char *id) |
| | Get a trunk by a id or global id string.
|
| virtual bool | spanEvent (unsigned span, TrunkEvent *event) |
| | Span event operations.
|
| virtual bool | cardEvent (unsigned card, TrunkEvent *event) |
| | card event operations.
|
| int | getDriverIndex (void) |
Static Public Member Functions |
| static void | setNodes () |
| static void | getStatus (char *buffer) |
| | Get a local copy of the status string.
|
| static unsigned | getCount (void) |
| | Get total driver port capacity as a count.
|
| static Trunk * | getTrunk (const char *name, bool create=false, Driver *driver=NULL) |
| static Driver * | getIndexedDriver (int idx) |
Public Attributes |
| Driver * | drvNext |
Static Public Attributes |
| static Driver * | drvFirst |
| static unsigned | drvIndex |
Protected Member Functions |
| Driver * | getFirst (void) |
| virtual Conference * | getConference (const char *id, unsigned size=0) |
Protected Attributes |
| Conference * | first |
| Conference * | last |
| bool | active |
| unsigned | portCount |
| unsigned | downCount |
| volatile unsigned | idleCount |
| AtomicCounter | refTimer |
| time_t | nextTimer |
| unsigned | tsid |
| int | index |
Friends |
| class | TrunkGroup |
| class | Trunk |
| class | MappedDrivers |
| class | Conference |
| __EXPORT Driver * | getDriver (const char *name) |