#include <sipfsm.h>
Definition at line 614 of file sipfsm.h.
Public Member Functions | |
| SipFsm (QWidget *parent=0, const char *=0) | |
| ~SipFsm (void) | |
| bool | SocketOpenedOk () |
| void | NewCall (bool audioOnly, QString uri, QString DispName, QString videoMode, bool DisableNat) |
| void | HangUp (void) |
| void | Answer (bool audioOnly, QString videoMode, bool DisableNat) |
| void | ModifyCall (QString audioCodec, QString videoCodec) |
| void | StatusChanged (char *newStatus) |
| void | DestroyFsm (SipFsmBase *Fsm) |
| void | CheckRxEvent () |
| SipCall * | MatchCall (int cr) |
| SipFsmBase * | MatchCallId (SipCallId *CallId) |
| SipCall * | CreateCallFsm () |
| SipSubscriber * | CreateSubscriberFsm () |
| SipWatcher * | CreateWatcherFsm (QString Url) |
| SipIM * | CreateIMFsm (QString Url="", QString callIdStr="") |
| SipOptions * | CreateOptionsFsm (QString Url="", QString callIdStr="") |
| void | StopWatchers () |
| void | KickWatcher (SipUrl *Url) |
| void | SendIM (QString destUrl, QString CallId, QString imMsg) |
| int | numCalls () |
| int | getPrimaryCall () |
| int | getPrimaryCallState () |
| QString | OpenSocket (int Port) |
| void | CloseSocket () |
| void | Transmit (QString Msg, QString destIP, int destPort) |
| bool | Receive (SipMsg &sipMsg) |
| void | SetNotification (QString type, QString url, QString param1, QString param2) |
| SipTimer * | Timer () |
| void | HandleTimerExpiries () |
| SipRegistrar * | getRegistrar () |
| bool | isRegistered () |
| QString | registeredTo () |
| QString | registeredAs () |
Static Public Member Functions | |
| static void | Debug (SipDebugEvent::Type t, QString dbg) |
Private Member Functions | |
| int | MsgToEvent (SipMsg *sipMsg) |
| QString | DetermineNatAddress () |
Private Attributes | |
| int | localPort |
| QPtrList< SipFsmBase > | FsmList |
| QSocketDevice * | sipSocket |
| int | callCount |
| int | primaryCall |
| int | lastStatus |
| SipTimer * | timerList |
| SipRegistrar * | sipRegistrar |
| SipRegistration * | sipRegistration |
| QString | PresenceStatus |
| SipFsm::SipFsm | ( | QWidget * | parent = 0, |
|
| const char * | name = 0 | |||
| ) |
Definition at line 567 of file sipfsm.cpp.
| SipFsm::~SipFsm | ( | void | ) |
Definition at line 610 of file sipfsm.cpp.
| bool SipFsm::SocketOpenedOk | ( | ) | [inline] |
| void SipFsm::Debug | ( | SipDebugEvent::Type | t, | |
| QString | dbg | |||
| ) | [static] |
Definition at line 620 of file sipfsm.cpp.
Referenced by SipFsmBase::DebugFsm(), SipIM::FSM(), SipWatcher::FSM(), SipSubscriber::FSM(), SipCall::FSM(), SipCall::GetSDPInfo(), Receive(), SipFsm(), and Transmit().
| void SipFsm::HangUp | ( | void | ) |
Definition at line 859 of file sipfsm.cpp.
Referenced by SipThread::CheckUIEvents(), and SipThread::SipThreadWorker().
| void SipFsm::ModifyCall | ( | QString | audioCodec, | |
| QString | videoCodec | |||
| ) |
| void SipFsm::StatusChanged | ( | char * | newStatus | ) |
| void SipFsm::DestroyFsm | ( | SipFsmBase * | Fsm | ) |
Definition at line 888 of file sipfsm.cpp.
Referenced by Answer(), CheckRxEvent(), HandleTimerExpiries(), HangUp(), KickWatcher(), ModifyCall(), NewCall(), SendIM(), and StopWatchers().
| void SipFsm::CheckRxEvent | ( | ) |
| SipCall * SipFsm::MatchCall | ( | int | cr | ) |
Definition at line 1011 of file sipfsm.cpp.
Referenced by Answer(), SipThread::ChangePrimaryCallState(), getPrimaryCallState(), HangUp(), and ModifyCall().
| SipFsmBase * SipFsm::MatchCallId | ( | SipCallId * | CallId | ) |
| SipCall * SipFsm::CreateCallFsm | ( | ) |
| SipSubscriber * SipFsm::CreateSubscriberFsm | ( | ) |
| SipWatcher * SipFsm::CreateWatcherFsm | ( | QString | Url | ) |
| SipIM * SipFsm::CreateIMFsm | ( | QString | Url = "", |
|
| QString | callIdStr = "" | |||
| ) |
| SipOptions * SipFsm::CreateOptionsFsm | ( | QString | Url = "", |
|
| QString | callIdStr = "" | |||
| ) |
| void SipFsm::StopWatchers | ( | ) |
| void SipFsm::KickWatcher | ( | SipUrl * | Url | ) |
| void SipFsm::SendIM | ( | QString | destUrl, | |
| QString | CallId, | |||
| QString | imMsg | |||
| ) |
| int SipFsm::numCalls | ( | ) |
| int SipFsm::getPrimaryCall | ( | ) | [inline] |
| int SipFsm::getPrimaryCallState | ( | ) |
Definition at line 903 of file sipfsm.cpp.
Referenced by SipThread::CheckNetworkEvents(), SipThread::CheckUIEvents(), and SipThread::SipThreadWorker().
| QString SipFsm::OpenSocket | ( | int | Port | ) |
| void SipFsm::CloseSocket | ( | ) |
| void SipFsm::Transmit | ( | QString | Msg, | |
| QString | destIP, | |||
| int | destPort | |||
| ) |
Definition at line 780 of file sipfsm.cpp.
Referenced by SipCall::BuildSendAck(), SipCall::BuildSendBye(), SipCall::BuildSendCancel(), SipCall::BuildSendInvite(), SipCall::BuildSendReInvite(), SipFsmBase::BuildSendStatus(), SipCall::ForwardMessage(), SipFsmBase::Retransmit(), SipIM::SendMessage(), SipSubscriber::SendNotify(), SipRegistration::SendRegister(), SipRegistrar::SendResponse(), and SipWatcher::SendSubscribe().
| void SipFsm::SetNotification | ( | QString | type, | |
| QString | url, | |||
| QString | param1, | |||
| QString | param2 | |||
| ) |
Definition at line 955 of file sipfsm.cpp.
Referenced by SipIM::FSM(), SipWatcher::FSM(), and SipCall::FSM().
| SipTimer* SipFsm::Timer | ( | ) | [inline] |
Definition at line 650 of file sipfsm.h.
Referenced by SipRegistrar::add(), SipCall::BuildSendBye(), SipCall::BuildSendCancel(), SipCall::BuildSendInvite(), SipCall::BuildSendReInvite(), SipFsmBase::BuildSendStatus(), SipIM::FSM(), SipWatcher::FSM(), SipSubscriber::FSM(), SipRegistration::FSM(), SipCall::FSM(), SipRegistrar::remove(), SipIM::SendMessage(), SipSubscriber::SendNotify(), SipWatcher::SendSubscribe(), SipRegistration::SipRegistration(), SipIM::~SipIM(), SipRegistrar::~SipRegistrar(), SipRegistration::~SipRegistration(), SipSubscriber::~SipSubscriber(), and SipWatcher::~SipWatcher().
| void SipFsm::HandleTimerExpiries | ( | ) |
| SipRegistrar* SipFsm::getRegistrar | ( | ) | [inline] |
| bool SipFsm::isRegistered | ( | ) | [inline] |
| QString SipFsm::registeredTo | ( | ) | [inline] |
| QString SipFsm::registeredAs | ( | ) | [inline] |
| int SipFsm::MsgToEvent | ( | SipMsg * | sipMsg | ) | [private] |
| QString SipFsm::DetermineNatAddress | ( | ) | [private] |
int SipFsm::localPort [private] |
Definition at line 664 of file sipfsm.h.
Referenced by CreateCallFsm(), CreateIMFsm(), CreateOptionsFsm(), CreateSubscriberFsm(), CreateWatcherFsm(), NewCall(), and SipFsm().
QPtrList<SipFsmBase> SipFsm::FsmList [private] |
Definition at line 665 of file sipfsm.h.
Referenced by CreateCallFsm(), CreateIMFsm(), CreateOptionsFsm(), CreateSubscriberFsm(), CreateWatcherFsm(), DestroyFsm(), KickWatcher(), MatchCall(), MatchCallId(), NewCall(), numCalls(), SipFsm(), StatusChanged(), and StopWatchers().
QSocketDevice* SipFsm::sipSocket [private] |
Definition at line 666 of file sipfsm.h.
Referenced by CheckRxEvent(), CloseSocket(), OpenSocket(), Receive(), SipFsm(), and Transmit().
int SipFsm::callCount [private] |
int SipFsm::primaryCall [private] |
Definition at line 668 of file sipfsm.h.
Referenced by Answer(), CreateCallFsm(), DestroyFsm(), getPrimaryCallState(), HangUp(), ModifyCall(), NewCall(), and SipFsm().
int SipFsm::lastStatus [private] |
SipTimer* SipFsm::timerList [private] |
Definition at line 670 of file sipfsm.h.
Referenced by DestroyFsm(), HandleTimerExpiries(), SipFsm(), and ~SipFsm().
SipRegistrar* SipFsm::sipRegistrar [private] |
SipRegistration* SipFsm::sipRegistration [private] |
Definition at line 672 of file sipfsm.h.
Referenced by CreateCallFsm(), CreateIMFsm(), CreateOptionsFsm(), CreateSubscriberFsm(), CreateWatcherFsm(), NewCall(), SipFsm(), and ~SipFsm().
QString SipFsm::PresenceStatus [private] |
Definition at line 673 of file sipfsm.h.
Referenced by CreateSubscriberFsm(), SipFsm(), and StatusChanged().
1.5.5