|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
#include <ClientInviteSession.hxx>
Public Member Functions | |
| ClientInviteSession (DialogUsageManager &dum, Dialog &dialog, std::shared_ptr< SipMessage > request, const Contents *initialOffer, DialogUsageManager::EncryptionLevel level, ServerSubscriptionHandle serverSub=ServerSubscriptionHandle::NotValid()) | |
| ClientInviteSession (const ClientInviteSession &)=delete | |
| ClientInviteSession (ClientInviteSession &&)=delete | |
| ClientInviteSession & | operator= (const ClientInviteSession &)=delete |
| ClientInviteSession & | operator= (ClientInviteSession &&)=delete |
| ClientInviteSessionHandle | getHandle () |
| void | provideOffer (const Contents &offer) override |
| Called to set the offer that will be used in the next message that sends an offer. | |
| void | provideOffer (const Contents &offer, DialogUsageManager::EncryptionLevel level, const Contents *alternative) override |
| void | provideAnswer (const Contents &answer) override |
| Similar to provideOffer - called to set the answer to be signaled to the peer. | |
| void | end (const Data &userReason) override |
| Makes the specific dialog end. | |
| void | end (const ParserContainer< Token > &endReasons) override |
| void | end (EndReason reason) override |
| void | end () override |
| void | reject (int statusCode, WarningCategory *warning=nullptr) override |
| Rejects an offer at the SIP level. | |
| void | reject (int statusCode, const Contents *contents, WarningCategory *warning=0) override |
| const Contents & | getEarlyMedia () const |
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 | requestOffer () |
| Called to request that the far end provide an offer. | |
| 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 ClientInviteSession.hxx.
| ClientInviteSession::ClientInviteSession | ( | DialogUsageManager & | dum, |
| Dialog & | dialog, | ||
| std::shared_ptr< SipMessage > | request, | ||
| const Contents * | initialOffer, | ||
| DialogUsageManager::EncryptionLevel | level, | ||
| ServerSubscriptionHandle | serverSub = ServerSubscriptionHandle::NotValid() |
||
| ) |
Definition at line 28 of file ClientInviteSession.cxx.
|
delete |
|
delete |
|
overridevirtual |
Reimplemented from resip::InviteSession.
Definition at line 197 of file ClientInviteSession.cxx.
|
overridevirtual |
Makes the specific dialog end.
Will send a BYE (not a CANCEL)
Reimplemented from resip::InviteSession.
Definition at line 203 of file ClientInviteSession.cxx.
|
overridevirtual |
Reimplemented from resip::InviteSession.
Definition at line 210 of file ClientInviteSession.cxx.
|
overridevirtual |
Reimplemented from resip::InviteSession.
Definition at line 217 of file ClientInviteSession.cxx.
| const Contents & ClientInviteSession::getEarlyMedia | ( | ) | const |
Definition at line 58 of file ClientInviteSession.cxx.
| ClientInviteSessionHandle ClientInviteSession::getHandle | ( | ) |
Definition at line 52 of file ClientInviteSession.cxx.
|
delete |
|
delete |
|
overridevirtual |
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 131 of file ClientInviteSession.cxx.
|
overridevirtual |
Called to set the offer that will be used in the next message that sends an offer.
For a UAC in an early dialog, this can be used to send an UPDATE request with an offer.
Reimplemented from resip::InviteSession.
Definition at line 125 of file ClientInviteSession.cxx.
|
overridevirtual |
Reimplemented from resip::InviteSession.
Definition at line 64 of file ClientInviteSession.cxx.
|
overridevirtual |
Reimplemented from resip::InviteSession.
Definition at line 265 of file ClientInviteSession.cxx.
|
overridevirtual |
Rejects an offer at the SIP level.
For a UAC in an early dialog this typically only makes sense, when rejecting an UPDATE request that contains an offer in an early dialog.
Reimplemented from resip::InviteSession.
Definition at line 259 of file ClientInviteSession.cxx.
|
friend |
Definition at line 103 of file ClientInviteSession.hxx.