13#define RESIPROCATE_SUBSYSTEM Subsystem::RECON
19 ServerAuthManager(userAgent.getDialogUsageManager(), userAgent.getDialogUsageManager().dumIncomingTarget()),
71 if(profile->challengeOODReferRequests() && !msg.
header(h_To).exists(p_tag))
82 if(profile->challengeAutoAnswerRequests() && profile->shouldAutoAnswer(msg))
100 const Data& transactionId )
106 a1 << digestCredential.
user
108 << digestCredential.
realm
#define resip_assert(x)
This file needs to work for both C and C++ code.
virtual bool isMyRealm(const resip::Data &realm)
should return true if realm passed in is ours and we can challenge
UserAgentServerAuthManager(UserAgent &userAgent)
virtual const resip::Data & getChallengeRealm(const resip::SipMessage &msg)
returns the realm to be used for the challenge
virtual bool proxyAuthenticationMode() const
virtual bool useAuthInt() const
virtual bool authorizedForThisIdentity(const resip::Data &user, const resip::Data &realm, resip::Uri &fromUri)
should return true if the passed in user is authorized for the provided uri
virtual resip::AsyncBool requiresChallenge(const resip::SipMessage &msg)
should return true if the request must be challenged The default is to challenge all requests - overr...
~UserAgentServerAuthManager()
virtual void requestCredential(const resip::Data &user, const resip::Data &realm, const resip::SipMessage &msg, const resip::Auth &auth, const resip::Data &transactionId)
This class is one of two main classes of concern to an application using the UserAgent library.
resip::DialogUsageManager & getDialogUsageManager()
virtual std::shared_ptr< ConversationProfile > getIncomingConversationProfile(const resip::SipMessage &msg)
Represents the "credentials" and "challenge" elements in the SIP grammar.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
InviteSessionHandle findInviteSession(const DialogId &id)
Used to accumlate data written to the stream in a DigestBuffer and convert the data to Digest.
Data getHex()
Calls flush() on itself and returns the Digest data in hex format.
static Handle< InviteSession > NotValid()
Represents a SIP message.
bool isRequest() const
Returns true if message is a request, false otherwise.
const RequestLine & header(const RequestLineType &l) const
Returns the RequestLine. This is only valid for request messages.
bool exists(const HeaderBase &headerType) const
Returns true if the given header field is present, false otherwise.
resip::MethodTypes method() const
returns the method type of the message
static const char * COLON
void post(Message *msg)
Posts a Message to this TransactionUser's fifo.
Represents the "SIP-URI" and "SIPS-URI" elements in the RFC 3261 grammar.
dcm! – add UnusedChecking(_enum) below;