#include <regprocessor.h>
◆ RegistrationState
bit mask of the different flags to indicate call status
| Enumerator |
|---|
| registrationStart | Intial state of registration
|
| registrationHappening | The registration process is happening
|
| registrationUnregisterStart | The unregistration process is about to begin
|
| registrationUnregistering | The unregistration process is happening
|
| registrationUnregistered | The unregistration process is complete and is waiting for termination
|
| registrationWait | Waiting for the refresh peroid
|
◆ IAX2RegProcessor()
| IAX2RegProcessor::IAX2RegProcessor |
( |
IAX2EndPoint & |
ep, |
|
|
const PString & |
host, |
|
|
const PString & |
username, |
|
|
const PString & |
password, |
|
|
PINDEX |
inRegistrationRefreshTime |
|
) |
| |
◆ ~IAX2RegProcessor()
| virtual IAX2RegProcessor::~IAX2RegProcessor |
( |
| ) |
|
|
virtual |
◆ GetHost()
| PString IAX2RegProcessor::GetHost |
( |
| ) |
const |
|
inline |
◆ GetPassword()
| PString IAX2RegProcessor::GetPassword |
( |
| ) |
const |
|
inline |
◆ GetUserName()
| PString IAX2RegProcessor::GetUserName |
( |
| ) |
const |
|
inline |
◆ IncomingMessageOutOfOrder()
| virtual PBoolean IAX2RegProcessor::IncomingMessageOutOfOrder |
( |
IAX2FullFrame * |
| ) |
|
|
inlineprotectedvirtual |
Test the sequence number of the incoming frame. This is only valid for handling a call. If the message is outof order, the supplied fullframe is deleted.
- Returns
- true if the frame is out of order, which deletes the supplied frame
-
false, and does not destroy the supplied frame
Implements IAX2Processor.
◆ OnDoRegistration()
| void IAX2RegProcessor::OnDoRegistration |
( |
PTimer & |
, |
|
|
INT |
|
|
) |
| |
|
protected |
A pwlib callback function to start the registration process again
◆ OnNoResponseTimeout()
| void IAX2RegProcessor::OnNoResponseTimeout |
( |
| ) |
|
|
protectedvirtual |
This callback is called when a packet fails to get an Acknowledgment
Implements IAX2Processor.
◆ PrintOn()
| void IAX2RegProcessor::PrintOn |
( |
ostream & |
strm | ) |
const |
|
protectedvirtual |
A method to cause some of the values in this class to be formatted into a printable stream
Implements IAX2Processor.
◆ ProcessFullFrame()
| virtual void IAX2RegProcessor::ProcessFullFrame |
( |
IAX2FullFrame & |
fullFrame | ) |
|
|
protectedvirtual |
Processes a full frame, and sends it off to the relevant processor. This RegistrationProcessor instance worries about those types common to registration, so is concerned about cmdRegAuth, cmdRegAck etc.
Implements IAX2Processor.
◆ ProcessIaxCmdRegAck()
Process an acknowledgement of a sucessful registration
◆ ProcessIaxCmdRegAuth()
Process an authentication request when registering
◆ ProcessIaxCmdRegRej()
Process a registration rejection
◆ ProcessIaxCmdUnRegAck()
Process an acknowledgement of a registration release
◆ ProcessIaxCmdUnRegAuth()
Process an authentication request when registering doing a registration release
◆ ProcessIaxCmdUnRegRej()
Process a registration release rejection
◆ ProcessLists()
| virtual void IAX2RegProcessor::ProcessLists |
( |
| ) |
|
|
protectedvirtual |
Go through the three lists for incoming data (ethernet/sound/UI commands.
Implements IAX2Processor.
◆ ProcessNetworkFrame() [1/2]
| virtual void IAX2RegProcessor::ProcessNetworkFrame |
( |
IAX2MiniFrame * |
src | ) |
|
|
protectedvirtual |
Handles a mini frame - so copes with media.
Implements IAX2Processor.
◆ ProcessNetworkFrame() [2/2]
Processes a protocol full frame, well, those components relating to registration.
Reimplemented from IAX2Processor.
◆ ResetCall()
| void IAX2RegProcessor::ResetCall |
( |
| ) |
|
|
protected |
Reset the call, ie: get a new call source number, put the sequence numbers to 0 and reset the timer. This solves having to create a new thread for every seperate call.
◆ Unregister()
| void IAX2RegProcessor::Unregister |
( |
| ) |
|
Unregister from the remote iax2 server. This method is synchronous. and could take until the Timeout peroid to return. This will also shutdown the main thread.
◆ host
| PString IAX2RegProcessor::host |
|
protected |
◆ password
| PString IAX2RegProcessor::password |
|
protected |
◆ registrationRefreshTime
| INT IAX2RegProcessor::registrationRefreshTime |
|
protected |
◆ registrationState
The current state of the registration
◆ registrationTimer
| PTimer IAX2RegProcessor::registrationTimer |
|
protected |
The timer which is used to send a registration message
◆ regRandom
| PRandom IAX2RegProcessor::regRandom |
|
protected |
A class that generates random values used for varying the registration timer
◆ stateMutex
| PMutex IAX2RegProcessor::stateMutex |
|
protected |
A mutex to protect the registrationState variable and the flow of the RegProcessor.
◆ userName
| PString IAX2RegProcessor::userName |
|
protected |
The documentation for this class was generated from the following file: