1#if !defined(Server_hxx)
8#include "../UserAgent.hxx"
9#include "../HandleTypes.hxx"
11#include "../SipXMediaStackAdapter.hxx"
14 #define sleepMs(t) Sleep(t)
16 #define sleepMs(t) usleep(t*1000)
19#define MAXPARKTIMEOUT 1
98 std::shared_ptr<recon::UserAgentMasterProfile> mUserAgentMasterProfile;
100 typedef std::map<unsigned long, MOHManager*> MOHManagerMap;
101 MOHManagerMap mMOHManagerMap;
103 typedef std::map<unsigned long, ParkManager*> ParkManagerMap;
104 ParkManagerMap mParkManagerMap;
#define resip_assert(x)
This file needs to work for both C and C++ code.
recon::UserAgent * getMyUserAgent()
virtual void onRelatedConversation(recon::ConversationHandle relatedConvHandle, recon::ParticipantHandle relatedPartHandle, recon::ConversationHandle origConvHandle, recon::ParticipantHandle origPartHandle)
Notifies an applications that a outbound remote participant request has forked.
virtual void onRequestOutgoingParticipant(recon::ParticipantHandle partHandle, const resip::SipMessage &msg, recon::ConversationProfile &conversationProfile)
Notifies an application about a new remote participant that is trying to be contacted.
virtual void onParticipantRedirectFailure(recon::ParticipantHandle partHandle, unsigned int statusCode)
Notifies an application that a redirect request has failed.
MOHManager & getMOHManager()
void startup()
Starts the recon thread(s).
virtual void onConversationDestroyed(recon::ConversationHandle convHandle)
Notifies an application when a conversation has been destroyed.
void getActiveCallsInfo(CallInfoList &callInfos)
virtual void onDtmfEvent(recon::ParticipantHandle partHandle, int dtmf, int duration, bool up)
Notifies an application when an RFC2833 DTMF event is received from a particular remote participant.
virtual void onParticipantRedirectSuccess(recon::ParticipantHandle partHandle)
Notifies an application that a redirect request has succeeded.
virtual void onParticipantConnected(recon::ParticipantHandle partHandle, const resip::SipMessage &msg)
Notifies an application that a remote participant call attempt is now connected.
void initializeResipLogging(unsigned int maxByteCount, const resip::Data &level, const resip::Data &resipFilename)
virtual void onParticipantRequestedHold(recon::ParticipantHandle partHandle, bool held)
virtual void onParticipantProceeding(recon::ParticipantHandle partHandle, const resip::SipMessage &msg)
Notifies an application that a remote participant call attempt is proceeding at the first hop.
ParkManager & getParkManager()
virtual void onParticipantDestroyed(recon::ParticipantHandle partHandle)
Notifies an application when a Participant has been destroyed.
virtual void onParticipantTerminated(recon::ParticipantHandle partHandle, unsigned int statusCode)
Notifies an application about a disconnect by a remote participant.
virtual void onParticipantAlerting(recon::ParticipantHandle partHandle, const resip::SipMessage &msg)
Notifies an application that a remote participant call attempt is alerting the remote party.
virtual void onMaxParkTimeout(recon::ParticipantHandle participantHandle)
void shutdown()
Used to initiate a shutdown of the server.
void process(int timeoutMs)
This should be called in a loop to give process cycles to the server.
virtual void onIncomingParticipant(recon::ParticipantHandle partHandle, const resip::SipMessage &msg, bool autoAnswer, recon::ConversationProfile &conversationProfile)
Notifies an application about a new remote participant that is attempting to contact it.
This class is one of two main classes of concern to an application using the UserAgent library.
This class extends the resip UserProfile to include Conversation Manager specific settings.
This class is one of two main classes of concern to an application using the UserAgent library.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Provides an interface to process and generate SDP bodies (MIME content-type application/sdp).
Represents a SIP message.
std::list< ActiveCallInfo > CallInfoList
unsigned int ConversationHandle
unsigned int ParticipantHandle