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.
32 lines
707 B
32 lines
707 B
#ifndef _ISDNGATEWAYFACTORY_H_
|
|
#define _ISDNGATEWAYFACTORY_H_
|
|
|
|
#include "GWSession.h"
|
|
#include "AmConfigReader.h"
|
|
#include <string>
|
|
using std::string;
|
|
|
|
class GatewayFactory: public AmSessionFactory
|
|
{
|
|
public:
|
|
GatewayFactory(const string& _app_name);
|
|
~GatewayFactory();
|
|
//Auth api
|
|
AmSessionEventHandlerFactory* uac_auth_f;
|
|
|
|
int onLoad();
|
|
AmSession* onInvite(const AmSipRequest& req);
|
|
AmSession* onInvite(const AmSipRequest& req, AmArg& session_params);
|
|
private:
|
|
static GatewayFactory* _instance;
|
|
bool auth_enable;
|
|
std::string auth_realm;
|
|
std::string auth_user;
|
|
std::string auth_pwd;
|
|
|
|
};
|
|
|
|
extern AmConfigReader gwconf;
|
|
#endif
|
|
|