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.
27 lines
476 B
27 lines
476 B
#ifndef _UACAuth_h_
|
|
#define _UACAuth_h_
|
|
#include "ampi/UACAuthAPI.h"
|
|
#include "AmSession.h"
|
|
#include "AmArg.h"
|
|
|
|
class AmUACAuth {
|
|
protected:
|
|
AmUACAuth();
|
|
~AmUACAuth();
|
|
public:
|
|
/**
|
|
unpack UAC auth credentials from an AmArg
|
|
@return UACAuthCred object, NULL if failed
|
|
*/
|
|
|
|
static UACAuthCred* unpackCredentials(const AmArg& arg);
|
|
|
|
/**
|
|
enable SIP UAC authentication
|
|
@return true if successful
|
|
*/
|
|
static bool enable(AmSession* s);
|
|
|
|
};
|
|
#endif
|