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.
33 lines
586 B
33 lines
586 B
#ifndef _MYCONFIGURABLEAPP_H_
|
|
#define _MYCONFIGURABLEAPP_H_
|
|
|
|
#include "AmSession.h"
|
|
|
|
#include <string>
|
|
using std::string;
|
|
|
|
class MyConfigurableAppFactory: public AmSessionFactory
|
|
{
|
|
public:
|
|
static string AnnouncementFile;
|
|
|
|
MyConfigurableAppFactory(const string& _app_name);
|
|
|
|
int onLoad();
|
|
AmSession* onInvite(const AmSipRequest& req);
|
|
};
|
|
|
|
class MyConfigurableAppDialog : public AmSession
|
|
{
|
|
|
|
public:
|
|
MyConfigurableAppDialog();
|
|
~MyConfigurableAppDialog();
|
|
|
|
void onSessionStart(const AmSipRequest& req);
|
|
void onBye(const AmSipRequest& req);
|
|
};
|
|
|
|
#endif
|
|
|