|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
#include <ServerInviteSession.hxx>
Public Types | |
| typedef Handle< ServerInviteSession > | ServerInviteSessionHandle |
Public Types inherited from resip::InviteSession | |
| enum | OfferAnswerType { None , Offer , Answer } |
| enum | EndReason { NotSpecified =0 , UserHangup , AppRejectedSdp , IllegalNegotiation , AckNotReceived , SessionExpired , StaleReInvite , ENDREASON_MAX , UserSpecified } |
Public Types inherited from resip::Handled | |
| enum | { npos = 0 } |
| typedef unsigned long | Id |
Public Member Functions | |
| ServerInviteSession (const ServerInviteSession &)=delete | |
| ServerInviteSession (ServerInviteSession &&)=delete | |
| ServerInviteSession & | operator= (const ServerInviteSession &)=delete |
| ServerInviteSession & | operator= (ServerInviteSession &&)=delete |
| ServerInviteSessionHandle | getHandle () |
| void | redirect (const NameAddrs &contacts, int code=302) |
| send a 3xx | |
| void | provisional (int code=180, bool earlyFlag=true) |
| send a 1xx - provisional response. | |
| virtual void | provideOffer (const Contents &offer) |
| Called to set the offer that will be used in the next message that sends an offer. | |
| virtual void | provideOffer (const Contents &offer, DialogUsageManager::EncryptionLevel level, const Contents *alternative) |
| virtual void | provideOffer (const Contents &offer, bool sendOfferAtAccept) |
| virtual void | provideOffer (const Contents &offer, DialogUsageManager::EncryptionLevel level, const Contents *alternative, bool sendOfferAtAccept) |
| virtual void | requestOffer () |
| Called to request that the far end provide an offer. | |
| virtual void | provideAnswer (const Contents &answer) |
| Similar to provideOffer - called to set the answer to be signaled to the peer. | |
| virtual void | end (const Data &userReason) |
| Makes the specific dialog end. | |
| virtual void | end (const ParserContainer< Token > &endReasons) |
| virtual void | end (EndReason reason) |
| virtual void | end () |
| virtual void | reject (int statusCode, WarningCategory *warning=0) |
| Rejects an offer at the SIP level. | |
| virtual void | reject (int statusCode, const Contents *contents, WarningCategory *warning=0) |
| void | accept (int statusCode=200) |
| accept an initial invite (2xx) - this is only applicable to the UAS | |
| void | redirectCommand (const NameAddrs &contacts, int code=302) |
| Provide asynchronous method access by using command. | |
| void | provisionalCommand (int code=180, bool earlyFlag=true) |
| void | acceptCommand (int statusCode=200) |
Public Member Functions inherited from resip::InviteSession | |
| InviteSession (const InviteSession &)=delete | |
| InviteSession (InviteSession &&)=delete | |
| InviteSession & | operator= (const InviteSession &)=delete |
| InviteSession & | operator= (InviteSession &&)=delete |
| virtual void | targetRefresh (const NameAddr &localUri) |
| will send a reINVITE (current offerAnswer) or UPDATE with new Contact header | |
| virtual void | refer (const NameAddr &referTo, bool referSub=true) |
| sends a refer request | |
| virtual void | refer (const NameAddr &referTo, const NameAddr &referredBy, bool referSub=true) |
| virtual void | refer (const NameAddr &referTo, std::unique_ptr< resip::Contents > contents, bool referSub=true) |
| virtual void | refer (const NameAddr &referTo, const NameAddr &referredBy, std::unique_ptr< resip::Contents > contents, bool referSub=true) |
| virtual void | refer (const NameAddr &referTo, InviteSessionHandle sessionToReplace, bool referSub=true) |
| sends a refer request with a replaces header | |
| virtual void | refer (const NameAddr &referTo, InviteSessionHandle sessionToReplace, std::unique_ptr< resip::Contents > contents, bool referSub=true) |
| virtual void | refer (const NameAddr &referTo, const CallId &replaces, bool referSub=true) |
| virtual void | refer (const NameAddr &referTo, const CallId &replaces, std::unique_ptr< resip::Contents > contents, bool referSub=true) |
| virtual void | info (const Contents &contents) |
| sends an info request | |
| virtual void | message (const Contents &contents) |
| sends a message request | |
| virtual void | acceptNIT (int statusCode=200, const Contents *contents=0) |
| accepts an INFO or MESSAGE request with a 2xx and an optional contents | |
| virtual void | rejectNIT (int statusCode=488) |
| rejects an INFO or MESSAGE request with an error status code | |
| std::shared_ptr< SipMessage > | getLastSentNITRequest () const |
| gets the last NIT request that was sent by the session | |
| virtual void | provideOfferCommand (const Contents &offer) |
| Provide asynchronous method access by using command. | |
| virtual void | provideOfferCommand (const Contents &offer, DialogUsageManager::EncryptionLevel level, const Contents *alternative) |
| virtual void | provideAnswerCommand (const Contents &answer) |
| virtual void | endCommand (EndReason reason=NotSpecified) |
| Asynchronously makes the specific dialog end. | |
| virtual void | endCommand (const Data &userReason) |
| virtual void | endCommand (const resip::ParserContainer< resip::Token > &endReasons) |
| virtual void | rejectCommand (int statusCode, WarningCategory *warning=0) |
| Asynchronously rejects an offer at the SIP level. | |
| virtual void | rejectCommand (int statusCode, const Contents *contents, WarningCategory *warning=0) |
| virtual void | referCommand (const NameAddr &referTo, bool referSub=true) |
| virtual void | referCommand (const NameAddr &referTo, InviteSessionHandle sessionToReplace, bool referSub=true) |
| virtual void | infoCommand (const Contents &contents) |
| virtual void | messageCommand (const Contents &contents) |
| virtual void | acceptNITCommand (int statusCode=200, const Contents *contents=0) |
| Asynchronously accepts an INFO or MESSAGE request with a 2xx and an optional contents. | |
| virtual void | rejectNITCommand (int statusCode=488) |
| Asynchronously rejects an INFO or MESSAGE request with an error status code. | |
| virtual void | acceptReferNoSub (int statusCode=200) |
| virtual void | rejectReferNoSub (int responseCode) |
| bool | hasLocalOfferAnswer () const |
| const Contents & | getLocalOfferAnswer () const |
| bool | hasRemoteOfferAnswer () const |
| const Contents & | getRemoteOfferAnswer () const |
| bool | hasProposedRemoteOfferAnswer () const |
| const Contents & | getProposedRemoteOfferAnswer () const |
| bool | hasLocalSdp () const |
| const SdpContents & | getLocalSdp () const |
| bool | hasRemoteSdp () const |
| const SdpContents & | getRemoteSdp () const |
| bool | hasProposedRemoteSdp () const |
| const SdpContents & | getProposedRemoteSdp () const |
| bool | isConnected () const |
| bool | isSessionModificationInFlight () const |
| bool | isTerminated () const |
| bool | isEarly () const |
| bool | isAccepted () const |
| Tokens & | getPeerSupportedMethods () |
| Tokens & | getPeerSupportedOptionTags () |
| Tokens & | getPeerRequiresOptionsTags () |
| Mimes & | getPeerSupportedMimeTypes () |
| Tokens & | getPeerSupportedEncodings () |
| Tokens & | getPeerSupportedLanguages () |
| Tokens & | getPeerAllowedEvents () |
| Data & | getPeerUserAgent () |
| NameAddrs & | getPeerPAssertedIdentities () |
| EncodeStream & | dump (EncodeStream &strm) const override |
| InviteSessionHandle | getSessionHandle () |
Public Member Functions inherited from resip::DialogUsage | |
| AppDialogSetHandle | getAppDialogSet () const |
| AppDialogHandle | getAppDialog () const |
| const NameAddr & | myAddr () const noexcept |
| const NameAddr & | peerAddr () const noexcept |
| const NameAddr & | remoteTarget () const noexcept |
| const NameAddr & | pendingRemoteTarget () const |
| const NameAddrs & | getRouteSet () const noexcept |
| const DialogId & | getDialogId () const |
| const Data & | getCallId () const |
| std::shared_ptr< UserProfile > | getUserProfile () const |
Public Member Functions inherited from resip::BaseUsage | |
| virtual void | postDum (Message *messageForDum) |
| posts a message on dum | |
Public Member Functions inherited from resip::Handled | |
| Handled (HandleManager &ham) | |
| virtual | ~Handled () |
Friends | |
| class | Dialog |
Definition at line 12 of file ServerInviteSession.hxx.
Definition at line 15 of file ServerInviteSession.hxx.
|
delete |
|
delete |
| void ServerInviteSession::accept | ( | int | statusCode = 200 | ) |
accept an initial invite (2xx) - this is only applicable to the UAS
Definition at line 681 of file ServerInviteSession.cxx.
| void ServerInviteSession::acceptCommand | ( | int | statusCode = 200 | ) |
Definition at line 796 of file ServerInviteSession.cxx.
|
virtual |
Reimplemented from resip::InviteSession.
Definition at line 512 of file ServerInviteSession.cxx.
|
virtual |
Makes the specific dialog end.
Will send a 480.
Reimplemented from resip::InviteSession.
Definition at line 518 of file ServerInviteSession.cxx.
|
virtual |
Reimplemented from resip::InviteSession.
Definition at line 525 of file ServerInviteSession.cxx.
|
virtual |
Reimplemented from resip::InviteSession.
Definition at line 532 of file ServerInviteSession.cxx.
| ServerInviteSessionHandle ServerInviteSession::getHandle | ( | ) |
Definition at line 37 of file ServerInviteSession.cxx.
|
delete |
|
delete |
|
virtual |
Similar to provideOffer - called to set the answer to be signaled to the peer.
May result in message being sent synchronously depending on the state.
Reimplemented from resip::InviteSession.
Definition at line 396 of file ServerInviteSession.cxx.
|
virtual |
Called to set the offer that will be used in the next message that sends an offer.
If possible, this will synchronously send the appropriate request or response. In some cases, the UAS might have to call accept in order to cause the message to be sent. If sendOfferAtAccept is true, no UPDATE will be sent if media is negotiated reliable, it will be sent at accept
Reimplemented from resip::InviteSession.
Definition at line 369 of file ServerInviteSession.cxx.
|
virtual |
Definition at line 362 of file ServerInviteSession.cxx.
|
virtual |
Reimplemented from resip::InviteSession.
Definition at line 354 of file ServerInviteSession.cxx.
|
virtual |
Definition at line 270 of file ServerInviteSession.cxx.
| void ServerInviteSession::provisional | ( | int | code = 180, |
| bool | earlyFlag = true |
||
| ) |
send a 1xx - provisional response.
If you set earlyFlag to true, and have provided an answer, then DUM will attach the answer to the provisional response, as an early media indication
Definition at line 140 of file ServerInviteSession.cxx.
| void ServerInviteSession::provisionalCommand | ( | int | code = 180, |
| bool | earlyFlag = true |
||
| ) |
Definition at line 264 of file ServerInviteSession.cxx.
| void ServerInviteSession::redirect | ( | const NameAddrs & | contacts, |
| int | code = 302 |
||
| ) |
send a 3xx
Definition at line 43 of file ServerInviteSession.cxx.
| void ServerInviteSession::redirectCommand | ( | const NameAddrs & | contacts, |
| int | code = 302 |
||
| ) |
Provide asynchronous method access by using command.
Definition at line 134 of file ServerInviteSession.cxx.
|
virtual |
Reimplemented from resip::InviteSession.
Definition at line 607 of file ServerInviteSession.cxx.
|
virtual |
Rejects an offer at the SIP level.
So this can send a 488 to a reINVITE or UPDATE
Reimplemented from resip::InviteSession.
Definition at line 601 of file ServerInviteSession.cxx.
|
virtual |
Called to request that the far end provide an offer.
This will cause a reinvite with no body to be sent.
Reimplemented from resip::InviteSession.
Definition at line 375 of file ServerInviteSession.cxx.
|
friend |
Definition at line 76 of file ServerInviteSession.hxx.