SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Data Fields
sipwitch::registry::mapped Class Reference

#include <server.h>

Inheritance diagram for sipwitch::registry::mapped:
Inheritance graph
[legend]
Collaboration diagram for sipwitch::registry::mapped:
Collaboration graph
[legend]

Public Types

enum  status_t {
  OFFLINE = 0, IDLE, BUSY, AWAY,
  DND
}
 
enum  {
  EXPIRED = 0, USER, GATEWAY, SERVICE,
  REJECT, REFER, TEMPORARY, EXTERNAL
}
 

Public Member Functions

void update (Socket::address &addr, int changed)
 
void update (void)
 
bool expire (Socket::address &addr)
 
bool refresh (Socket::address &addr, time_t expires, const char *target_contact)
 
unsigned setTargets (Socket::address &addr, voip::context_t context)
 
unsigned addTarget (Socket::address &via, time_t expires, const char *contact, const char *policy, struct sockaddr *peer, voip::context_t context)
 
unsigned setTarget (Socket::address &via, time_t expires, const char *contact, const char *policy, struct sockaddr *peer, voip::context_t context)
 
void addContact (const char *id)
 
void addPublished (const char *id)
 
void addRoute (const char *pat, unsigned pri, const char *prefix, const char *suffix)
 
bool is_user (void) const
 
bool is_profiled (void) const
 
bool is_admin (void) const
 
bool has_feature (unsigned short X) const
 

Data Fields

char userid [48]
 
char display [64]
 
char remote [48]
 
char network [16]
 
status_t status
 
enum
sipwitch::MappedRegistry:: { ... }  
type
 
bool hidden
 
voip::reg_t rid
 
unsigned ext
 
unsigned count
 
volatile unsigned inuse
 
sockaddr_internet contact
 
time_t created
 
volatile time_t expires
 
profile_t profile
 
union {
   struct {
      const char *   identity
 
      const char *   connect
 
      stats *   statnode
 
   }   external
 
   struct {
      LinkedObject *   published
 
      LinkedObject *   targets
 
      LinkedObject *   routes
 
   }   internal
 
source
 

Detailed Description

Definition at line 67 of file server.h.

Member Enumeration Documentation

anonymous enum
inherited
Enumerator
EXPIRED 
USER 
GATEWAY 
SERVICE 
REJECT 
REFER 
TEMPORARY 
EXTERNAL 

Definition at line 105 of file mapped.h.

Enumerator
OFFLINE 
IDLE 
BUSY 
AWAY 
DND 

Definition at line 98 of file mapped.h.

Member Function Documentation

void sipwitch::registry::mapped::addContact ( const char *  id)

Definition at line 1223 of file registry.cpp.

void sipwitch::registry::mapped::addPublished ( const char *  id)

Definition at line 1207 of file registry.cpp.

void sipwitch::registry::mapped::addRoute ( const char *  pat,
unsigned  pri,
const char *  prefix,
const char *  suffix 
)

Definition at line 1185 of file registry.cpp.

unsigned sipwitch::registry::mapped::addTarget ( Socket::address &  via,
time_t  expires,
const char *  contact,
const char *  policy,
struct sockaddr *  peer,
voip::context_t  context 
)

Definition at line 1388 of file registry.cpp.

bool sipwitch::registry::mapped::expire ( Socket::address &  addr)

Definition at line 1298 of file registry.cpp.

bool sipwitch::MappedRegistry::has_feature ( unsigned short  X) const
inlineinherited

Definition at line 137 of file mapped.h.

bool sipwitch::MappedRegistry::is_admin ( void  ) const
inlineinherited

Definition at line 134 of file mapped.h.

bool sipwitch::MappedRegistry::is_profiled ( void  ) const
inlineinherited

Definition at line 131 of file mapped.h.

bool sipwitch::MappedRegistry::is_user ( void  ) const
inlineinherited

Definition at line 128 of file mapped.h.

bool sipwitch::registry::mapped::refresh ( Socket::address &  addr,
time_t  expires,
const char *  target_contact 
)

Definition at line 1354 of file registry.cpp.

unsigned sipwitch::registry::mapped::setTarget ( Socket::address &  via,
time_t  expires,
const char *  contact,
const char *  policy,
struct sockaddr *  peer,
voip::context_t  context 
)

Definition at line 1113 of file registry.cpp.

unsigned sipwitch::registry::mapped::setTargets ( Socket::address &  addr,
voip::context_t  context 
)

Definition at line 1476 of file registry.cpp.

void sipwitch::registry::mapped::update ( Socket::address &  addr,
int  changed 
)

Definition at line 1331 of file registry.cpp.

void sipwitch::registry::mapped::update ( void  )

Definition at line 1239 of file registry.cpp.

Field Documentation

const char* sipwitch::MappedRegistry::connect
inherited

Definition at line 118 of file mapped.h.

sockaddr_internet sipwitch::MappedRegistry::contact
inherited

Definition at line 111 of file mapped.h.

unsigned sipwitch::MappedRegistry::count
inherited

Definition at line 109 of file mapped.h.

time_t sipwitch::MappedRegistry::created
inherited

Definition at line 112 of file mapped.h.

char sipwitch::MappedRegistry::display[64]
inherited

Definition at line 101 of file mapped.h.

volatile time_t sipwitch::MappedRegistry::expires
inherited

Definition at line 113 of file mapped.h.

unsigned sipwitch::MappedRegistry::ext
inherited

Definition at line 108 of file mapped.h.

struct { ... } sipwitch::MappedRegistry::external
bool sipwitch::MappedRegistry::hidden
inherited

Definition at line 106 of file mapped.h.

const char* sipwitch::MappedRegistry::identity
inherited

Definition at line 117 of file mapped.h.

struct { ... } sipwitch::MappedRegistry::internal
volatile unsigned sipwitch::MappedRegistry::inuse
inherited

Definition at line 110 of file mapped.h.

char sipwitch::MappedRegistry::network[16]
inherited

Definition at line 103 of file mapped.h.

profile_t sipwitch::MappedRegistry::profile
inherited

Definition at line 114 of file mapped.h.

LinkedObject* sipwitch::MappedRegistry::published
inherited

Definition at line 122 of file mapped.h.

char sipwitch::MappedRegistry::remote[48]
inherited

Definition at line 102 of file mapped.h.

voip::reg_t sipwitch::MappedRegistry::rid
inherited

Definition at line 107 of file mapped.h.

LinkedObject* sipwitch::MappedRegistry::routes
inherited

Definition at line 124 of file mapped.h.

union { ... } sipwitch::MappedRegistry::source
stats* sipwitch::MappedRegistry::statnode
inherited

Definition at line 119 of file mapped.h.

status_t sipwitch::MappedRegistry::status
inherited

Definition at line 104 of file mapped.h.

LinkedObject* sipwitch::MappedRegistry::targets
inherited

Definition at line 123 of file mapped.h.

enum { ... } sipwitch::MappedRegistry::type
char sipwitch::MappedRegistry::userid[48]
inherited

Definition at line 100 of file mapped.h.


The documentation for this class was generated from the following files: