|
reSIProcate/DialogUsageManager
9694
|


Public Member Functions | |
| TestInviteSessionHandler (const Data &n) | |
| virtual | ~TestInviteSessionHandler () |
| virtual void | onSuccess (ClientRegistrationHandle h, const SipMessage &response) |
| Called when registraion succeeds or each time it is sucessfully refreshed. | |
| virtual void | onFailure (ClientRegistrationHandle, const SipMessage &msg) |
| Called if registration fails, usage will be destroyed (unless a Registration retry interval is enabled in the Profile) | |
| virtual void | onRemoved (ClientRegistrationHandle, const SipMessage &response) |
| virtual int | onRequestRetry (ClientRegistrationHandle, int retrySeconds, const SipMessage &response) |
| call on Retry-After failure. | |
| virtual void | onNewSession (ClientInviteSessionHandle, InviteSession::OfferAnswerType oat, const SipMessage &msg) |
| called when an initial INVITE or the intial response to an outoing invite | |
| virtual void | onNewSession (ServerInviteSessionHandle, InviteSession::OfferAnswerType oat, const SipMessage &msg) |
| called when an initial INVITE or the intial response to an outoing invite | |
| virtual void | onFailure (ClientInviteSessionHandle, const SipMessage &msg) |
| Received a failure response from UAS. | |
| virtual void | onProvisional (ClientInviteSessionHandle, const SipMessage &msg) |
| called when dialog enters the Early state - typically after getting 18x | |
| virtual void | onConnected (ClientInviteSessionHandle, const SipMessage &msg) |
| called when a dialog initiated as a UAC enters the connected state | |
| virtual void | onStaleCallTimeout (ClientInviteSessionHandle handle) |
| UAC gets no final response within the stale call timeout (default is 3 minutes). | |
| virtual void | onConnected (InviteSessionHandle, const SipMessage &msg) |
| called when a dialog initiated as a UAS enters the connected state | |
| virtual void | onRedirected (ClientInviteSessionHandle, const SipMessage &msg) |
| called when a 3xx with valid targets is encountered in an early dialog This is different then getting a 3xx in onTerminated, as another request will be attempted, so the DialogSet will not be destroyed. | |
| virtual void | onTerminated (InviteSessionHandle, InviteSessionHandler::TerminatedReason reason, const SipMessage *msg) |
| virtual void | onAnswer (InviteSessionHandle, const SipMessage &msg, const SdpContents &sdp) |
| called when an answer is received - has nothing to do with user answering the call | |
| virtual void | onOffer (InviteSessionHandle is, const SipMessage &msg, const SdpContents &sdp) |
| called when an offer is received - must send an answer soon after this | |
| virtual void | onEarlyMedia (ClientInviteSessionHandle, const SipMessage &msg, const SdpContents &sdp) |
| called when an in-dialog provisional response is received that contains a body | |
| virtual void | onOfferRequired (InviteSessionHandle, const SipMessage &msg) |
| called when an Invite w/out offer is sent, or any other context which requires an offer from the user | |
| virtual void | onOfferRejected (InviteSessionHandle, const SipMessage *msg) |
| called if an offer in a UPDATE or re-INVITE was rejected - not real useful. | |
| virtual void | onRefer (InviteSessionHandle, ServerSubscriptionHandle, const SipMessage &msg) |
| called when an REFER message is received. | |
| virtual void | onReferAccepted (InviteSessionHandle, ClientSubscriptionHandle, const SipMessage &msg) |
| called when an REFER message receives an accepted response | |
| virtual void | onReferRejected (InviteSessionHandle, const SipMessage &msg) |
| called when an REFER message receives a failure response | |
| virtual void | onReferNoSub (InviteSessionHandle, const SipMessage &msg) |
| virtual void | onInfo (InviteSessionHandle, const SipMessage &msg) |
| called when INFO message is received | |
| virtual void | onInfoSuccess (InviteSessionHandle, const SipMessage &msg) |
| called when response to INFO message is received | |
| virtual void | onInfoFailure (InviteSessionHandle, const SipMessage &msg) |
| virtual void | onMessage (InviteSessionHandle, const SipMessage &msg) |
| called when MESSAGE message is received | |
| virtual void | onMessageSuccess (InviteSessionHandle, const SipMessage &msg) |
| called when response to MESSAGE message is received | |
| virtual void | onMessageFailure (InviteSessionHandle, const SipMessage &msg) |
| virtual void | onForkDestroyed (ClientInviteSessionHandle) |
| called when a fork that was created through a 1xx never receives a 2xx because another fork answered and this fork was canceled by a proxy. | |
| virtual void | onSuccess (ClientOutOfDialogReqHandle, const SipMessage &successResponse) |
| virtual void | onFailure (ClientOutOfDialogReqHandle, const SipMessage &errorResponse) |
| Received a failure response from UAS. | |
| virtual void | onReceivedRequest (ServerOutOfDialogReqHandle ood, const SipMessage &request) |
| TestInviteSessionHandler (const Data &n) | |
| virtual | ~TestInviteSessionHandler () |
| virtual void | onNewSession (ClientInviteSessionHandle, InviteSession::OfferAnswerType oat, const SipMessage &msg) |
| called when an initial INVITE or the intial response to an outoing invite | |
| virtual void | onNewSession (ServerInviteSessionHandle, InviteSession::OfferAnswerType oat, const SipMessage &msg) |
| called when an initial INVITE or the intial response to an outoing invite | |
| virtual void | onFailure (ClientInviteSessionHandle, const SipMessage &msg) |
| Received a failure response from UAS. | |
| virtual void | onProvisional (ClientInviteSessionHandle, const SipMessage &msg) |
| called when dialog enters the Early state - typically after getting 18x | |
| virtual void | onConnected (ClientInviteSessionHandle, const SipMessage &msg) |
| called when a dialog initiated as a UAC enters the connected state | |
| virtual void | onStaleCallTimeout (ClientInviteSessionHandle handle) |
| UAC gets no final response within the stale call timeout (default is 3 minutes). | |
| virtual void | onConnected (InviteSessionHandle, const SipMessage &msg) |
| called when a dialog initiated as a UAS enters the connected state | |
| virtual void | onRedirected (ClientInviteSessionHandle, const SipMessage &msg) |
| called when a 3xx with valid targets is encountered in an early dialog This is different then getting a 3xx in onTerminated, as another request will be attempted, so the DialogSet will not be destroyed. | |
| virtual void | onTerminated (InviteSessionHandle, InviteSessionHandler::TerminatedReason reason, const SipMessage *msg) |
| virtual void | onAnswer (InviteSessionHandle, const SipMessage &msg, const SdpContents &sdp) |
| called when an answer is received - has nothing to do with user answering the call | |
| virtual void | onOffer (InviteSessionHandle is, const SipMessage &msg, const SdpContents &sdp) |
| called when an offer is received - must send an answer soon after this | |
| virtual void | onEarlyMedia (ClientInviteSessionHandle, const SipMessage &msg, const SdpContents &sdp) |
| called when an in-dialog provisional response is received that contains a body | |
| virtual void | onOfferRequired (InviteSessionHandle, const SipMessage &msg) |
| called when an Invite w/out offer is sent, or any other context which requires an offer from the user | |
| virtual void | onOfferRejected (InviteSessionHandle, const SipMessage *msg) |
| called if an offer in a UPDATE or re-INVITE was rejected - not real useful. | |
| virtual void | onRefer (InviteSessionHandle, ServerSubscriptionHandle, const SipMessage &msg) |
| called when an REFER message is received. | |
| virtual void | onReferAccepted (InviteSessionHandle, ClientSubscriptionHandle, const SipMessage &msg) |
| called when an REFER message receives an accepted response | |
| virtual void | onReferRejected (InviteSessionHandle, const SipMessage &msg) |
| called when an REFER message receives a failure response | |
| virtual void | onReferNoSub (InviteSessionHandle, const SipMessage &msg) |
| virtual void | onInfo (InviteSessionHandle, const SipMessage &msg) |
| called when INFO message is received | |
| virtual void | onInfoSuccess (InviteSessionHandle, const SipMessage &msg) |
| called when response to INFO message is received | |
| virtual void | onInfoFailure (InviteSessionHandle, const SipMessage &msg) |
| virtual void | onMessage (InviteSessionHandle, const SipMessage &msg) |
| called when MESSAGE message is received | |
| virtual void | onMessageSuccess (InviteSessionHandle, const SipMessage &msg) |
| called when response to MESSAGE message is received | |
| virtual void | onMessageFailure (InviteSessionHandle, const SipMessage &msg) |
| virtual void | onForkDestroyed (ClientInviteSessionHandle) |
| called when a fork that was created through a 1xx never receives a 2xx because another fork answered and this fork was canceled by a proxy. | |
| void | onInvalidMethod (const resip::SipMessage &) |
| void | onInvalidScheme (const resip::SipMessage &) |
| void | onInvalidRequiredOptions (const resip::SipMessage &) |
| void | on100RelNotSupportedByRemote (const resip::SipMessage &) |
| void | onInvalidContentType (const resip::SipMessage &) |
| void | onInvalidContentEncoding (const resip::SipMessage &) |
| void | onInvalidContentLanguage (const resip::SipMessage &) |
| void | onInvalidAccept (const resip::SipMessage &) |
Public Attributes | |
| Data | name |
| bool | registered |
| ClientRegistrationHandle | registerHandle |
| int | mInvalidMethod |
| int | mInvalidScheme |
| int | mInvalidRequiredOptions |
| int | m100RelNotSupportedByRemote |
| int | mInvalidContentType |
| int | mInvalidContentEncoding |
| int | mInvalidContentLanguage |
| int | mInvalidAccept |
Definition at line 93 of file BasicCall.cxx.
| TestInviteSessionHandler::TestInviteSessionHandler | ( | const Data & | n | ) | [inline] |
Definition at line 100 of file BasicCall.cxx.
: name(n), registered(false) { }
| virtual TestInviteSessionHandler::~TestInviteSessionHandler | ( | ) | [inline, virtual] |
Definition at line 104 of file BasicCall.cxx.
{
}
| TestInviteSessionHandler::TestInviteSessionHandler | ( | const Data & | n | ) | [inline] |
Definition at line 44 of file testRequestValidationHandler.cxx.
: name(n), registered(false) { mInvalidMethod = 0; mInvalidScheme = 0; mInvalidRequiredOptions = 0; m100RelNotSupportedByRemote = 0; mInvalidContentType = 0; mInvalidContentEncoding = 0; mInvalidContentLanguage = 0; mInvalidAccept = 0; }
| virtual TestInviteSessionHandler::~TestInviteSessionHandler | ( | ) | [inline, virtual] |
Definition at line 56 of file testRequestValidationHandler.cxx.
{
}
| void TestInviteSessionHandler::on100RelNotSupportedByRemote | ( | const resip::SipMessage & | ) | [inline, virtual] |
Implements resip::RequestValidationHandler.
Definition at line 203 of file testRequestValidationHandler.cxx.
{
cout << name << ": on100RelNotSupportedByRemote" << endl;
m100RelNotSupportedByRemote++;
}
| virtual void TestInviteSessionHandler::onAnswer | ( | InviteSessionHandle | , |
| const SipMessage & | msg, | ||
| const SdpContents & | |||
| ) | [inline, virtual] |
called when an answer is received - has nothing to do with user answering the call
Implements resip::InviteSessionHandler.
Definition at line 105 of file testRequestValidationHandler.cxx.
{
cout << name << ": InviteSession-onAnswer(SDP)" << endl;
}
| virtual void TestInviteSessionHandler::onAnswer | ( | InviteSessionHandle | , |
| const SipMessage & | msg, | ||
| const SdpContents & | |||
| ) | [inline, virtual] |
called when an answer is received - has nothing to do with user answering the call
Implements resip::InviteSessionHandler.
Definition at line 179 of file BasicCall.cxx.
{
cout << name << ": InviteSession-onAnswer(SDP)" << endl;
//sdp->encode(cout);
}
| virtual void TestInviteSessionHandler::onConnected | ( | ClientInviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when a dialog initiated as a UAC enters the connected state
Implements resip::InviteSessionHandler.
Definition at line 80 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onConnected | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when a dialog initiated as a UAS enters the connected state
Implements resip::InviteSessionHandler.
Definition at line 90 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onConnected | ( | ClientInviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when a dialog initiated as a UAC enters the connected state
Implements resip::InviteSessionHandler.
Definition at line 153 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onConnected | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when a dialog initiated as a UAS enters the connected state
Implements resip::InviteSessionHandler.
Definition at line 163 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onEarlyMedia | ( | ClientInviteSessionHandle | , |
| const SipMessage & | , | ||
| const SdpContents & | |||
| ) | [inline, virtual] |
called when an in-dialog provisional response is received that contains a body
Implements resip::InviteSessionHandler.
Definition at line 115 of file testRequestValidationHandler.cxx.
{
cout << name << ": InviteSession-onEarlyMedia(SDP)" << endl;
}
| virtual void TestInviteSessionHandler::onEarlyMedia | ( | ClientInviteSessionHandle | , |
| const SipMessage & | , | ||
| const SdpContents & | |||
| ) | [inline, virtual] |
called when an in-dialog provisional response is received that contains a body
Implements resip::InviteSessionHandler.
Definition at line 191 of file BasicCall.cxx.
{
cout << name << ": InviteSession-onEarlyMedia(SDP)" << endl;
//sdp->encode(cout);
}
| virtual void TestInviteSessionHandler::onFailure | ( | ClientInviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
Received a failure response from UAS.
Implements resip::InviteSessionHandler.
Definition at line 70 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onFailure | ( | ClientRegistrationHandle | , |
| const SipMessage & | response | ||
| ) | [inline, virtual] |
Called if registration fails, usage will be destroyed (unless a Registration retry interval is enabled in the Profile)
Implements resip::ClientRegistrationHandler.
Definition at line 116 of file BasicCall.cxx.
References resip::Message::brief().
{
cout << name << ": ClientRegistration-onFailure - " << msg.brief() << endl;
throw; // Ungracefully end
}

| virtual void TestInviteSessionHandler::onFailure | ( | ClientInviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
Received a failure response from UAS.
Implements resip::InviteSessionHandler.
Definition at line 143 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onFailure | ( | ClientOutOfDialogReqHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
Received a failure response from UAS.
Implements resip::InviteSessionHandler.
Definition at line 267 of file BasicCall.cxx.
References resip::Message::brief().
{
cout << name << ": ClientOutOfDialogReq-onFailure - " << errorResponse.brief() << endl;
}

| virtual void TestInviteSessionHandler::onForkDestroyed | ( | ClientInviteSessionHandle | ) | [inline, virtual] |
called when a fork that was created through a 1xx never receives a 2xx because another fork answered and this fork was canceled by a proxy.
Implements resip::InviteSessionHandler.
Definition at line 180 of file testRequestValidationHandler.cxx.
{
cout << name << ": ClientInviteSession-onForkDestroyed" << endl;
}
| virtual void TestInviteSessionHandler::onForkDestroyed | ( | ClientInviteSessionHandle | ) | [inline, virtual] |
called when a fork that was created through a 1xx never receives a 2xx because another fork answered and this fork was canceled by a proxy.
Implements resip::InviteSessionHandler.
Definition at line 257 of file BasicCall.cxx.
{
cout << name << ": ClientInviteSession-onForkDestroyed" << endl;
}
| virtual void TestInviteSessionHandler::onInfo | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when INFO message is received
Implements resip::InviteSessionHandler.
Definition at line 150 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onInfo | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when INFO message is received
Implements resip::InviteSessionHandler.
Definition at line 227 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onInfoFailure | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
Implements resip::InviteSessionHandler.
Definition at line 160 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onInfoFailure | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
Implements resip::InviteSessionHandler.
Definition at line 237 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onInfoSuccess | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when response to INFO message is received
Implements resip::InviteSessionHandler.
Definition at line 155 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onInfoSuccess | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when response to INFO message is received
Implements resip::InviteSessionHandler.
Definition at line 232 of file BasicCall.cxx.
References resip::Message::brief().

| void TestInviteSessionHandler::onInvalidAccept | ( | const resip::SipMessage & | ) | [inline, virtual] |
Implements resip::RequestValidationHandler.
Definition at line 227 of file testRequestValidationHandler.cxx.
{
cout << name << ": onInvalidAccept" << endl;
mInvalidAccept++;
}
| void TestInviteSessionHandler::onInvalidContentEncoding | ( | const resip::SipMessage & | ) | [inline, virtual] |
Implements resip::RequestValidationHandler.
Definition at line 215 of file testRequestValidationHandler.cxx.
{
cout << name << ": onInvalidContentEncoding" << endl;
mInvalidContentEncoding++;
}
| void TestInviteSessionHandler::onInvalidContentLanguage | ( | const resip::SipMessage & | ) | [inline, virtual] |
Implements resip::RequestValidationHandler.
Definition at line 221 of file testRequestValidationHandler.cxx.
{
cout << name << ": onInvalidContentLanguage" << endl;
mInvalidContentLanguage++;
}
| void TestInviteSessionHandler::onInvalidContentType | ( | const resip::SipMessage & | ) | [inline, virtual] |
Implements resip::RequestValidationHandler.
Definition at line 209 of file testRequestValidationHandler.cxx.
{
cout << name << ": onInvalidContentType" << endl;
mInvalidContentType++;
}
| void TestInviteSessionHandler::onInvalidMethod | ( | const resip::SipMessage & | ) | [inline, virtual] |
Implements resip::RequestValidationHandler.
Definition at line 185 of file testRequestValidationHandler.cxx.
{
cout << name << ": onInvalidMethod" << endl;
mInvalidMethod++;
}
| void TestInviteSessionHandler::onInvalidRequiredOptions | ( | const resip::SipMessage & | ) | [inline, virtual] |
Implements resip::RequestValidationHandler.
Definition at line 197 of file testRequestValidationHandler.cxx.
{
cout << name << ": onInvalidRequiredOptions" << endl;
mInvalidRequiredOptions++;
}
| void TestInviteSessionHandler::onInvalidScheme | ( | const resip::SipMessage & | ) | [inline, virtual] |
Implements resip::RequestValidationHandler.
Definition at line 191 of file testRequestValidationHandler.cxx.
{
cout << name << ": onInvalidSchema" << endl;
mInvalidScheme++;
}
| virtual void TestInviteSessionHandler::onMessage | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when MESSAGE message is received
Implements resip::InviteSessionHandler.
Definition at line 165 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onMessage | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when MESSAGE message is received
Implements resip::InviteSessionHandler.
Definition at line 242 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onMessageFailure | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
Implements resip::InviteSessionHandler.
Definition at line 175 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onMessageFailure | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
Implements resip::InviteSessionHandler.
Definition at line 252 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onMessageSuccess | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when response to MESSAGE message is received
Implements resip::InviteSessionHandler.
Definition at line 170 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onMessageSuccess | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when response to MESSAGE message is received
Implements resip::InviteSessionHandler.
Definition at line 247 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onNewSession | ( | ClientInviteSessionHandle | , |
| InviteSession::OfferAnswerType | oat, | ||
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when an initial INVITE or the intial response to an outoing invite
Implements resip::InviteSessionHandler.
Definition at line 60 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onNewSession | ( | ServerInviteSessionHandle | , |
| InviteSession::OfferAnswerType | oat, | ||
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when an initial INVITE or the intial response to an outoing invite
Implements resip::InviteSessionHandler.
Definition at line 65 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onNewSession | ( | ClientInviteSessionHandle | , |
| InviteSession::OfferAnswerType | oat, | ||
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when an initial INVITE or the intial response to an outoing invite
Implements resip::InviteSessionHandler.
Definition at line 133 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onNewSession | ( | ServerInviteSessionHandle | , |
| InviteSession::OfferAnswerType | oat, | ||
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when an initial INVITE or the intial response to an outoing invite
Implements resip::InviteSessionHandler.
Definition at line 138 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onOffer | ( | InviteSessionHandle | , |
| const SipMessage & | msg, | ||
| const SdpContents & | |||
| ) | [inline, virtual] |
called when an offer is received - must send an answer soon after this
Implements resip::InviteSessionHandler.
Definition at line 110 of file testRequestValidationHandler.cxx.
{
cout << name << ": InviteSession-onOffer(SDP)" << endl;
}
| virtual void TestInviteSessionHandler::onOffer | ( | InviteSessionHandle | , |
| const SipMessage & | msg, | ||
| const SdpContents & | |||
| ) | [inline, virtual] |
called when an offer is received - must send an answer soon after this
Implements resip::InviteSessionHandler.
Definition at line 185 of file BasicCall.cxx.
{
cout << name << ": InviteSession-onOffer(SDP)" << endl;
//sdp->encode(cout);
}
| virtual void TestInviteSessionHandler::onOfferRejected | ( | InviteSessionHandle | , |
| const SipMessage * | msg | ||
| ) | [inline, virtual] |
called if an offer in a UPDATE or re-INVITE was rejected - not real useful.
A SipMessage is provided if one is available
Implements resip::InviteSessionHandler.
Definition at line 125 of file testRequestValidationHandler.cxx.
{
cout << name << ": InviteSession-onOfferRejected" << endl;
}
| virtual void TestInviteSessionHandler::onOfferRejected | ( | InviteSessionHandle | , |
| const SipMessage * | msg | ||
| ) | [inline, virtual] |
called if an offer in a UPDATE or re-INVITE was rejected - not real useful.
A SipMessage is provided if one is available
Implements resip::InviteSessionHandler.
Definition at line 202 of file BasicCall.cxx.
{
cout << name << ": InviteSession-onOfferRejected" << endl;
}
| virtual void TestInviteSessionHandler::onOfferRequired | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when an Invite w/out offer is sent, or any other context which requires an offer from the user
Implements resip::InviteSessionHandler.
Definition at line 120 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onOfferRequired | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when an Invite w/out offer is sent, or any other context which requires an offer from the user
Implements resip::InviteSessionHandler.
Definition at line 197 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onProvisional | ( | ClientInviteSessionHandle | , |
| const SipMessage & | |||
| ) | [inline, virtual] |
called when dialog enters the Early state - typically after getting 18x
Implements resip::InviteSessionHandler.
Definition at line 75 of file testRequestValidationHandler.cxx.
References resip::Message::brief().
{
cout << name << ": ClientInviteSession-onProvisional - " << msg.brief() << endl;
}

| virtual void TestInviteSessionHandler::onProvisional | ( | ClientInviteSessionHandle | , |
| const SipMessage & | |||
| ) | [inline, virtual] |
called when dialog enters the Early state - typically after getting 18x
Implements resip::InviteSessionHandler.
Definition at line 148 of file BasicCall.cxx.
References resip::Message::brief().
{
cout << name << ": ClientInviteSession-onProvisional - " << msg.brief() << endl;
}

| virtual void TestInviteSessionHandler::onReceivedRequest | ( | ServerOutOfDialogReqHandle | ood, |
| const SipMessage & | request | ||
| ) | [inline, virtual] |
Implements resip::OutOfDialogHandler.
Definition at line 271 of file BasicCall.cxx.
References resip::Message::brief().
{
cout << name << ": ServerOutOfDialogReq-onReceivedRequest - " << request.brief() << endl;
// Add SDP to response here if required
cout << name << ": Sending 200 response to OPTIONS." << endl;
ood->send(ood->answerOptions());
}

| virtual void TestInviteSessionHandler::onRedirected | ( | ClientInviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when a 3xx with valid targets is encountered in an early dialog This is different then getting a 3xx in onTerminated, as another request will be attempted, so the DialogSet will not be destroyed.
Basically an onTermintated that conveys more information. checking for 3xx respones in onTerminated will not work as there may be no valid targets.
Implements resip::InviteSessionHandler.
Definition at line 95 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onRedirected | ( | ClientInviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when a 3xx with valid targets is encountered in an early dialog This is different then getting a 3xx in onTerminated, as another request will be attempted, so the DialogSet will not be destroyed.
Basically an onTermintated that conveys more information. checking for 3xx respones in onTerminated will not work as there may be no valid targets.
Implements resip::InviteSessionHandler.
Definition at line 168 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onRefer | ( | InviteSessionHandle | , |
| ServerSubscriptionHandle | , | ||
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when an REFER message is received.
The refer is accepted or rejected using the server subscription. If the offer is accepted, DialogUsageManager::makeInviteSessionFromRefer can be used to create an InviteSession that will send notify messages using the ServerSubscription
Implements resip::InviteSessionHandler.
Definition at line 130 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onRefer | ( | InviteSessionHandle | , |
| ServerSubscriptionHandle | , | ||
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when an REFER message is received.
The refer is accepted or rejected using the server subscription. If the offer is accepted, DialogUsageManager::makeInviteSessionFromRefer can be used to create an InviteSession that will send notify messages using the ServerSubscription
Implements resip::InviteSessionHandler.
Definition at line 207 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onReferAccepted | ( | InviteSessionHandle | , |
| ClientSubscriptionHandle | , | ||
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when an REFER message receives an accepted response
Implements resip::InviteSessionHandler.
Definition at line 135 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onReferAccepted | ( | InviteSessionHandle | , |
| ClientSubscriptionHandle | , | ||
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when an REFER message receives an accepted response
Implements resip::InviteSessionHandler.
Definition at line 212 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onReferNoSub | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
Implements resip::InviteSessionHandler.
Definition at line 145 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onReferNoSub | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
Implements resip::InviteSessionHandler.
Definition at line 222 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onReferRejected | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when an REFER message receives a failure response
Implements resip::InviteSessionHandler.
Definition at line 140 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onReferRejected | ( | InviteSessionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
called when an REFER message receives a failure response
Implements resip::InviteSessionHandler.
Definition at line 217 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onRemoved | ( | ClientRegistrationHandle | , |
| const SipMessage & | response | ||
| ) | [inline, virtual] |
Implements resip::ClientRegistrationHandler.
Definition at line 122 of file BasicCall.cxx.
{
cout << name << ": ClientRegistration-onRemoved" << endl;
}
| virtual int TestInviteSessionHandler::onRequestRetry | ( | ClientRegistrationHandle | , |
| int | retrySeconds, | ||
| const SipMessage & | response | ||
| ) | [inline, virtual] |
call on Retry-After failure.
return values: -1 = fail, 0 = retry immediately, N = retry in N seconds
Implements resip::ClientRegistrationHandler.
Definition at line 127 of file BasicCall.cxx.
References resip::Message::brief().
{
cout << name << ": ClientRegistration-onRequestRetry (" << retrySeconds << ") - " << response.brief() << endl;
return -1;
}

| virtual void TestInviteSessionHandler::onStaleCallTimeout | ( | ClientInviteSessionHandle | h | ) | [inline, virtual] |
UAC gets no final response within the stale call timeout (default is 3 minutes).
This is just a notification. After the notification is called, the InviteSession will then call InviteSessionHandler::terminate()
Reimplemented from resip::InviteSessionHandler.
Definition at line 85 of file testRequestValidationHandler.cxx.
{
cout << name << ": ClientInviteSession-onStaleCallTimeout" << endl;
}
| virtual void TestInviteSessionHandler::onStaleCallTimeout | ( | ClientInviteSessionHandle | h | ) | [inline, virtual] |
UAC gets no final response within the stale call timeout (default is 3 minutes).
This is just a notification. After the notification is called, the InviteSession will then call InviteSessionHandler::terminate()
Reimplemented from resip::InviteSessionHandler.
Definition at line 158 of file BasicCall.cxx.
{
cout << name << ": ClientInviteSession-onStaleCallTimeout" << endl;
}
| virtual void TestInviteSessionHandler::onSuccess | ( | ClientRegistrationHandle | , |
| const SipMessage & | response | ||
| ) | [inline, virtual] |
Called when registraion succeeds or each time it is sucessfully refreshed.
Implements resip::ClientRegistrationHandler.
Definition at line 108 of file BasicCall.cxx.
References resip::Message::brief().
{
registerHandle = h;
assert(registerHandle.isValid());
cout << name << ": ClientRegistration-onSuccess - " << response.brief() << endl;
registered = true;
}

| virtual void TestInviteSessionHandler::onSuccess | ( | ClientOutOfDialogReqHandle | , |
| const SipMessage & | successResponse | ||
| ) | [inline, virtual] |
Implements resip::OutOfDialogHandler.
Definition at line 263 of file BasicCall.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onTerminated | ( | InviteSessionHandle | , |
| InviteSessionHandler::TerminatedReason | reason, | ||
| const SipMessage * | msg | ||
| ) | [inline, virtual] |
Implements resip::InviteSessionHandler.
Definition at line 100 of file testRequestValidationHandler.cxx.
References resip::Message::brief().

| virtual void TestInviteSessionHandler::onTerminated | ( | InviteSessionHandle | , |
| InviteSessionHandler::TerminatedReason | reason, | ||
| const SipMessage * | msg | ||
| ) | [inline, virtual] |
Implements resip::InviteSessionHandler.
Definition at line 173 of file BasicCall.cxx.
References resip::Message::brief().
{
cout << name << ": InviteSession-onTerminated - " << msg->brief() << endl;
assert(0); // This is overrideen in UAS and UAC specific handlers
}

Definition at line 40 of file testRequestValidationHandler.cxx.
Definition at line 41 of file testRequestValidationHandler.cxx.
Definition at line 40 of file testRequestValidationHandler.cxx.
Definition at line 41 of file testRequestValidationHandler.cxx.
Definition at line 40 of file testRequestValidationHandler.cxx.
Definition at line 40 of file testRequestValidationHandler.cxx.
Definition at line 40 of file testRequestValidationHandler.cxx.
Definition at line 40 of file testRequestValidationHandler.cxx.
Definition at line 96 of file BasicCall.cxx.
Definition at line 97 of file BasicCall.cxx.
Definition at line 98 of file BasicCall.cxx.
1.7.5.1