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::MappedRegistry Class Reference

Representation of a mapped active user record. More...

#include <mapped.h>

Inheritance diagram for sipwitch::MappedRegistry:
Inheritance graph
[legend]
Collaboration diagram for sipwitch::MappedRegistry:
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

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

Representation of a mapped active user record.

These exist in shared memory. They are used as data structures inside the server, and also can be examined by external client applications.

Author
David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org

Definition at line 95 of file mapped.h.

Member Enumeration Documentation

anonymous enum
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

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

Definition at line 137 of file mapped.h.

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

Definition at line 134 of file mapped.h.

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

Definition at line 131 of file mapped.h.

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

Definition at line 128 of file mapped.h.

Field Documentation

const char* sipwitch::MappedRegistry::connect

Definition at line 118 of file mapped.h.

sockaddr_internet sipwitch::MappedRegistry::contact

Definition at line 111 of file mapped.h.

unsigned sipwitch::MappedRegistry::count

Definition at line 109 of file mapped.h.

time_t sipwitch::MappedRegistry::created

Definition at line 112 of file mapped.h.

char sipwitch::MappedRegistry::display[64]

Definition at line 101 of file mapped.h.

volatile time_t sipwitch::MappedRegistry::expires

Definition at line 113 of file mapped.h.

unsigned sipwitch::MappedRegistry::ext

Definition at line 108 of file mapped.h.

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

Definition at line 106 of file mapped.h.

const char* sipwitch::MappedRegistry::identity

Definition at line 117 of file mapped.h.

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

Definition at line 110 of file mapped.h.

char sipwitch::MappedRegistry::network[16]

Definition at line 103 of file mapped.h.

profile_t sipwitch::MappedRegistry::profile

Definition at line 114 of file mapped.h.

LinkedObject* sipwitch::MappedRegistry::published

Definition at line 122 of file mapped.h.

char sipwitch::MappedRegistry::remote[48]

Definition at line 102 of file mapped.h.

voip::reg_t sipwitch::MappedRegistry::rid

Definition at line 107 of file mapped.h.

LinkedObject* sipwitch::MappedRegistry::routes

Definition at line 124 of file mapped.h.

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

Definition at line 119 of file mapped.h.

status_t sipwitch::MappedRegistry::status

Definition at line 104 of file mapped.h.

LinkedObject* sipwitch::MappedRegistry::targets

Definition at line 123 of file mapped.h.

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

Definition at line 100 of file mapped.h.


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