1 #ifndef _MYAPP_H_
2 #define _MYAPP_H_
3 
4 #include "AmSession.h"
5 
6 class MyAppFactory: public AmSessionFactory
7 {
8 public:
9     MyAppFactory(const string& _app_name);
10 
11     int onLoad();
12     AmSession* onInvite(const AmSipRequest& req, const string& app_name,
13 			const map<string,string>& app_params);
14 };
15 
16 class MyAppDialog : public AmSession
17 {
18 
19  public:
20     MyAppDialog();
21     ~MyAppDialog();
22 
23     void onSessionStart();
24     void onBye(const AmSipRequest& req);
25 };
26 
27 #endif
28 
29