#include <manager.h>
Collaboration diagram for Manager:

Public Member Functions | |
| Manager (LaunchNewId &lid, PString &ourId, PString &ourPassword) | |
| ~Manager () | |
| void | EndEverything () |
| PString | GetOurPassword () |
| PString | GetOurId () |
| PString | GetStatusInfo (const PString &token) |
| PString | GetDurationInfo (const PString &token) |
| void | AcceptThisCall (const PString &uniqueCallId) |
| void | RejectThisCall (const PString &uniqueCallId) |
| BOOL | GetSendToAddress (const PString &SsAmToken, PIPSocket::Address &address, PINDEX &portNo) |
| LaunchNewId & | GetLaunchNewId () |
| void | RequestNewId (const PString &requester) |
| void | DestroyOldComms (Comms *oldComms) |
| void | Main () |
| Comms * | CreateCall (const PString &remoteCont, const PString &preferredId) |
| Comms * | RemoveFromPreCallQueue (const PString &preferredId) |
| BOOL | WaitUntilSupervisorOk () |
| void | ClearCommsId (PString _memberId) |
| PINDEX | ActiveCalls () |
Protected Member Functions | |
| void | RemoveAllCalls () |
| void | RemoveGarbageCollector () |
Protected Attributes | |
| LaunchNewId & | lid |
| Supervisor & | supervisor |
| MessageFrameList | nodesMakingCalls |
| MessageFrameList | activeCalls |
| MessageFrameList | destroyTheseCalls |
| PString | controllerId |
| PString | ourPassword |
| PString | ourId |
| PSyncPoint | syncPoint |
| CommsProvider * | runningComms |
| PAtomicInteger | bogusIdCount |
This class has access to all the internal variables of opal
|
||||||||||||||||
|
Constructor |
|
|
destructor |
|
|
Advise the manager to accept this call, which has a particular callId |
|
|
Count of the number of active calls in the system Here is the call graph for this function: ![]() |
|
|
Cause the comms instance in activeCalls to be moved to the dead comms list. Give no error if the specified comms instance could not be found |
|
||||||||||||
|
Called from a descendant of a MessageFrame class instance to create a call |
|
|
Take this old Comms structure, and delete it, in a separate thread to the MediaConnection destructor Here is the call graph for this function: ![]() |
|
|
Set the syncpoint to run, which ends the main thread |
|
|
Get information (in a textual form) of how long this call has been up |
|
|
Return a reference to the pyython launcher for this program |
|
|
Return our id which is used to connect the message server |
|
|
Return the password used to connect to the message server |
|
||||||||||||||||
|
Return the send to address that is stored in this class instance |
|
|
Request manager to provide status information on the call matching this specific token |
|
|
The entry point, where the main control loop sits |
|
|
Advise the manager to reject this call, which has a particular callId |
|
|
Go through the list of active calls, and tell them to "die now" |
|
|
Grab the instances of comms from the Pre Call Queue. Note that the PreCallQueue contains Comms instances generated by RequestNewId commands |
|
|
Remove and terminate the garbage collector thread |
|
|
Allocate a new ID, place it in the pending list (nodesMakingNewCalls) and reply with the id to the controller who made this request |
|
|
Wait (up to 1 second) to see if the supervisor is installed and connected OK. |
|
|
A list of Comms instances that are currently in a call. That is, Comms instances who are talking with a remote Sofa Switch entity |
|
|
count of the number of calls that started badly. It is used to created a bogus Id |
|
|
The unique ID that identifies the remote controller who is responsible for the overview of this sofaswitch |
|
|
A list of MessageFrame instances that we are currently destroying. These MessageFrame instances have been used in previous calls, and have to be deleted be a separate thread |
|
|
The interface to the external script which runs python, to provide comms for us |
|
|
A list of the nodes who are initiating calls through us |
|
|
The description of who we are, which is used when logging in to the server |
|
|
An enity which could be used when logging in to the server |
|
|
The list of initialised, ready to go, Comms instances |
|
|
The manager of the comms with remote controller. It allows the calls to be setup |
|
|
Sync point that can be called to end the whole thing |
1.4.4