#include <mymanager.h>
Collaboration diagram for MyManager:

Public Member Functions | |
| MyManager (LaunchNewId &lid, PString &controllerId, PString &ourId, PString &ourPassword) | |
| ~MyManager () | |
| void | EndEverything () |
| BOOL | Initialise (PArgList &args) |
| void | Main (PArgList &args) |
| virtual BOOL | OnIncomingConnection (OpalConnection &connection) |
| virtual void | OnEstablishedCall (OpalCall &call) |
| virtual void | OnClearedCall (OpalCall &call) |
| virtual BOOL | OnOpenMediaStream (OpalConnection &connection, OpalMediaStream &stream) |
| virtual void | OnUserInputString (OpalConnection &connection, const PString &value) |
| virtual void | OnAlerting (OpalConnection &connection) |
| OpalConnection::AnswerCallResponse | OnAnswerCall (OpalConnection &connection, const PString &caller) |
| void | StartCall (const PString &ostr, const PString &remoteController, const PString &callIdToUse) |
| PString | GetOurPassword () |
| PString | GetOurId () |
| PString | GetControllerId () |
| virtual BOOL | SetUpCall (const PString &partyA, const PString &partyB, const PString &remoteController, const PString &preferredId) |
| virtual OpalCall * | CreateCall () |
| virtual OpalCall * | CreateCall (const PString &remoteController, const PString &preferredId) |
| virtual void | DestroyCall (OpalCall *call) |
| void | HangupThisOpalCall (const PString &token) |
| PString | GetStatusInfo (const PString &token) |
| PString | GetStatusInfo () |
| PString | GetDurationInfo (const PString &token) |
| void | AcceptThisCall (const PString &uniqueCallId) |
| void | RejectThisCall (const PString &uniqueCallId) |
| BOOL | SendThisDtmf (const PString &token, const PString &dtmfValue) |
| LaunchNewId & | GetLaunchNewId () |
| PINDEX | ActiveCalls () |
| void | RequestNewId (PString &requester) |
| void | DestroyOldComms (Comms *oldComms) |
| void | AdviseCommsReady (MessageFrame *newFrame, PString &remoteController) |
Protected Attributes | |
| LaunchNewId & | lid |
| Supervisor & | supervisor |
| MessageFrameList | nodesMakingCalls |
| MessageFrameList | destroyTheseCalls |
| CommsProvider * | runningComms |
| MyUdpSsEndPoint * | udpssEP |
| PString | controllerId |
| PString | ourPassword |
| PString | ourId |
| PSyncPoint | syncPoint |
| DWORD | allocationNumber |
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 |
|
||||||||||||
|
WE have received a node that a Comms instance has been built in response to a RequestNewId command. advise the relevant controller of this |
|
||||||||||||
|
Same as CreateCall(), but assign a particular Comms structure, with a particular remoteController to this call. This routine is used on creating outgoing calls. |
|
|
Create a call object. This function allows an application to have the system create desccendants of the OpalCall class. This call will be controlled by an ID. |
|
|
Destroy a call object. This gets called from background thread that garbage collects all calls and connections. |
|
|
Take this old Comms structure, and delete it, in a separate thread to the MyOpalCall destructor Here is the call graph for this function: ![]() |
|
|
Set the syncpoint to run, which ends the main thread |
|
|
Return the id of the remote controller |
|
|
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 |
|
|
Request manager to provide general status information on all calls |
|
|
Request manager to provide status information on the call matching this specific token |
|
|
Advise the manager to clear the call that has this specific token |
|
|
Given the command line args, set this class up |
|
|
Where we sit, while waiting for commands & events |
|
|
Call back for remote party being alerted on outgoing call. This function is called after the connection is informed that the remote endpoint is "ringing". This function is generally called some time after the MakeConnection() function was called.
|
|
||||||||||||
|
call back for when there is a in coming call for us to "answer" |
|
|
A call has been cleared, and is about to be totally destroyed
|
|
|
A call has been established, and now is running with media in both directions
|
|
|
Call back for answering an incoming call. This function is used for an application to control the answering of incoming calls.
|
|
||||||||||||
|
Create a new media stream for them to use
|
|
||||||||||||
|
We have received a message from some connection, where the message is in the PString arg
|
|
|
Advise the manager to reject this call, which has a particular callId |
|
|
Start the proces to get a new ID. The new ID is created by a separate thread, and the remote controller is advised when it is available |
|
||||||||||||
|
Request manager to send the supplied dtmf string to the remote endpoint |
|
||||||||||||||||||||
|
Set up a call between two parties. This is used to initiate a call. Incoming calls are "answered" using a different mechanism.
|
|
||||||||||||||||
|
Initiate a call to a remote node
|
|
|
The allocation number used in the last memory leak test request |
|
|
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 |
|
|
A list of Comms instances, which are already built, connected to the remote server, and ready to be used |
|
|
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 |
|
|
The sound system endpoint that we use to control talk to the remote sofa switch nodes |
1.4.4