mirror of https://github.com/sipwise/sems.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
616 B
40 lines
616 B
#ifndef AmSipEvent_h
|
|
#define AmSipEvent_h
|
|
|
|
#include "AmEvent.h"
|
|
#include "AmSipReply.h"
|
|
#include "AmSipRequest.h"
|
|
|
|
/** \brief SIP event */
|
|
class AmSipEvent: public AmEvent
|
|
{
|
|
public:
|
|
AmSipEvent(int id = -1)
|
|
: AmEvent(id)
|
|
{}
|
|
};
|
|
|
|
/** \brief SIP request event */
|
|
class AmSipRequestEvent: public AmSipEvent
|
|
{
|
|
public:
|
|
AmSipRequest req;
|
|
|
|
AmSipRequestEvent(const AmSipRequest& r)
|
|
: AmSipEvent(-1), req(r)
|
|
{}
|
|
};
|
|
|
|
/** \brief SIP reply event */
|
|
class AmSipReplyEvent: public AmSipEvent
|
|
{
|
|
public:
|
|
AmSipReply reply;
|
|
|
|
AmSipReplyEvent(const AmSipReply& r)
|
|
: AmSipEvent(),reply(r) {}
|
|
};
|
|
|
|
|
|
#endif
|