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.
29 lines
469 B
29 lines
469 B
#ifndef _MYAPP_H_
|
|
#define _MYAPP_H_
|
|
|
|
#include "AmSession.h"
|
|
|
|
class MyAppFactory: public AmSessionFactory
|
|
{
|
|
public:
|
|
MyAppFactory(const string& _app_name);
|
|
|
|
int onLoad();
|
|
AmSession* onInvite(const AmSipRequest& req, const string& app_name,
|
|
const map<string,string>& app_params);
|
|
};
|
|
|
|
class MyAppDialog : public AmSession
|
|
{
|
|
|
|
public:
|
|
MyAppDialog();
|
|
~MyAppDialog();
|
|
|
|
void onSessionStart();
|
|
void onBye(const AmSipRequest& req);
|
|
};
|
|
|
|
#endif
|
|
|