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.
sems/apps/examples/tutorial/myapp/MyApp.h

28 lines
427 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);
};
class MyAppDialog : public AmSession
{
public:
MyAppDialog();
~MyAppDialog();
void onSessionStart(const AmSipRequest& req);
void onBye(const AmSipRequest& req);
};
#endif