14#define RESIPROCATE_SUBSYSTEM ReconSubsystem::RECON
21 mAllowAutoAnswer(false),
22 mAllowPriorityAutoAnswer(false),
23 mChallengeAutoAnswerRequests(false),
24 mChallengeOODReferRequests(true),
25 mDelayedMediaOutboundMode(false),
26 mSecureMediaMode(Srtp),
27 mSecureMediaRequired(false),
28 mDefaultSecureMediaCryptoSuite(SRTP_AES_CM_128_HMAC_SHA1_80),
29 mNatTraversalMode(NoNatTraversal),
31 mNatTraversalServerPort(0),
32 mMaximumVideoBandwidth(0)
39 mAllowAutoAnswer(false),
40 mAllowPriorityAutoAnswer(false),
41 mChallengeAutoAnswerRequests(false),
42 mChallengeOODReferRequests(true),
43 mDelayedMediaOutboundMode(false),
44 mSecureMediaMode(Srtp),
45 mSecureMediaRequired(false),
46 mDefaultSecureMediaCryptoSuite(SRTP_AES_CM_128_HMAC_SHA1_80),
47 mNatTraversalMode(NoNatTraversal),
49 mNatTraversalServerPort(0),
50 mMaximumVideoBandwidth(0)
84 bool autoAnswerRequired =
false;
85 if(inviteRequest.
exists(h_PrivAnswerMode) && inviteRequest.
header(h_PrivAnswerMode).value() ==
"Auto")
93 autoAnswerRequired =
true;
96 else if(inviteRequest.
exists(h_AnswerMode) && inviteRequest.
header(h_AnswerMode).value() ==
"Auto")
104 autoAnswerRequired =
true;
110 for(GenericUris::const_iterator i = inviteRequest.
header(h_CallInfos).begin(); i != inviteRequest.
header(h_CallInfos).end(); i++)
121 *required = autoAnswerRequired;
static const resip::ExtensionParameter p_required("required")
static const resip::ExtensionParameter p_answerafter("answer-after")
#define resip_assert(x)
This file needs to work for both C and C++ code.
virtual bool shouldAutoAnswer(const resip::SipMessage &inviteRequest, bool *required=0)
Checks an Invite message for auto-answer headers against the current allow settings.
virtual resip::SdpContents & sessionCaps()
Get/Set the session capabilities.
virtual bool & allowAutoAnswer()
Get/Set wether auto answers are allowed, if an autoanswer indication is found in a new inbound call r...
virtual bool & allowPriorityAutoAnswer()
Get/Set wether priority auto answers are allowed, if a priority autoanswer indication is found in a n...
virtual ConversationProfileHandle getHandle()
Get the conversation profile handle.
Provides an interface to process and generate SDP bodies (MIME content-type application/sdp).
Represents a SIP message.
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
unsigned int ConversationProfileHandle
dcm! – add UnusedChecking(_enum) below;