SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Friends
sipwitch::thread Class Reference

#include <server.h>

Inheritance diagram for sipwitch::thread:
Inheritance graph
[legend]
Collaboration diagram for sipwitch::thread:
Collaboration graph
[legend]

Static Public Member Functions

static void shutdown (void)
 

Private Types

enum  { CALL, MESSAGE, REGISTRAR, NONE }
 

Private Member Functions

 thread (voip::context_t ctx, const char *tag)
 
void send_reply (int error)
 
void expiration (void)
 
void invite (void)
 
void identify (void)
 
bool getsource (void)
 
bool unauthenticated (void)
 
bool authenticate (void)
 
bool authenticate (stack::session *session)
 
bool authorize (void)
 
void registration (void)
 
void validate (void)
 
void message (void)
 
void publish (void)
 
void reregister (const char *contact, time_t interval)
 
void deregister (void)
 
void challenge (void)
 
void options (void)
 
void run (void)
 
void getDevice (registry::mapped *rr)
 
const char * getIdent (void)
 

Static Private Member Functions

static void wait (unsigned count)
 
static const char * eid (eXosip_event_type ev)
 

Private Attributes

const char * instance
 
unsigned extension
 
stack::subnetaccess
 
char network [MAX_NETWORK_SIZE]
 
struct sockaddr_storage peering
 
service::usernode authorized
 
service::usernode dialed
 
service::keynoderouted
 
registry::mappedreginfo
 
MappedRegistryaccepted
 
voip::event_t sevent
 
bool activated
 
char binding [MAX_URI_SIZE]
 
char buffer [MAX_URI_SIZE]
 
char buftemp [MAX_URI_SIZE]
 
char identbuf [MAX_USERID_SIZE+12]
 
char identity [MAX_USERID_SIZE]
 
char dialing [MAX_USERID_SIZE]
 
char display [MAX_DISPLAY_SIZE]
 
char requesting [MAX_URI_SIZE]
 
Socket::address via_address
 
Socket::address request_address
 
Socket::address contact_address
 
stack::sessionsession
 
voip::hdr_t header
 
long header_expires
 
voip::via_t via_header
 
voip::from_t from
 
voip::to_t to
 
voip::uri_t uri
 
const char * via_host
 
const char * contact_host
 
unsigned via_hops
 
unsigned via_port
 
unsigned from_port
 
unsigned contact_port
 
destination_t destination
 
voip::context_t context
 
char * sip_realm
 
voip::proxyauth_t proxy_auth
 
voip::proxyauth_t www_auth
 
enum sipwitch::thread:: { ... }  authorizing
 

Friends

class stack
 
class stack::call
 

Detailed Description

Definition at line 571 of file server.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
CALL 
MESSAGE 
REGISTRAR 
NONE 

Definition at line 615 of file server.h.

Constructor & Destructor Documentation

sipwitch::thread::thread ( voip::context_t  ctx,
const char *  tag 
)
private

Definition at line 45 of file thread.cpp.

Member Function Documentation

bool sipwitch::thread::authenticate ( void  )
private

Definition at line 1263 of file thread.cpp.

bool sipwitch::thread::authenticate ( stack::session session)
private

Definition at line 1214 of file thread.cpp.

bool sipwitch::thread::authorize ( void  )
private

Definition at line 700 of file thread.cpp.

void sipwitch::thread::challenge ( void  )
private

Definition at line 1374 of file thread.cpp.

void sipwitch::thread::deregister ( void  )
private

Definition at line 1765 of file thread.cpp.

const char * sipwitch::thread::eid ( eXosip_event_type  ev)
staticprivate

Definition at line 57 of file thread.cpp.

void sipwitch::thread::expiration ( void  )
private

Definition at line 1825 of file thread.cpp.

void sipwitch::thread::getDevice ( registry::mapped rr)
private

Definition at line 1777 of file thread.cpp.

const char * sipwitch::thread::getIdent ( void  )
private

Definition at line 655 of file thread.cpp.

bool sipwitch::thread::getsource ( void  )
private

Definition at line 1409 of file thread.cpp.

void sipwitch::thread::identify ( void  )
private

Definition at line 632 of file thread.cpp.

void sipwitch::thread::invite ( void  )
private

Definition at line 349 of file thread.cpp.

void sipwitch::thread::message ( void  )
private

Definition at line 258 of file thread.cpp.

void sipwitch::thread::options ( void  )
private

Definition at line 1797 of file thread.cpp.

void sipwitch::thread::publish ( void  )
private

Definition at line 139 of file thread.cpp.

void sipwitch::thread::registration ( void  )
private

Definition at line 1551 of file thread.cpp.

void sipwitch::thread::reregister ( const char *  contact,
time_t  interval 
)
private

Definition at line 1671 of file thread.cpp.

void sipwitch::thread::run ( void  )
private

Definition at line 1848 of file thread.cpp.

void sipwitch::thread::send_reply ( int  error)
private

Definition at line 1181 of file thread.cpp.

void sipwitch::thread::shutdown ( void  )
static

Definition at line 1811 of file thread.cpp.

bool sipwitch::thread::unauthenticated ( void  )
private

Definition at line 669 of file thread.cpp.

void sipwitch::thread::validate ( void  )
private

Definition at line 1459 of file thread.cpp.

void sipwitch::thread::wait ( unsigned  count)
staticprivate

Definition at line 1820 of file thread.cpp.

Friends And Related Function Documentation

friend class stack
friend

Definition at line 574 of file server.h.

friend class stack::call
friend

Definition at line 575 of file server.h.

Field Documentation

MappedRegistry* sipwitch::thread::accepted
private

Definition at line 586 of file server.h.

stack::subnet* sipwitch::thread::access
private

Definition at line 579 of file server.h.

bool sipwitch::thread::activated
private

Definition at line 588 of file server.h.

service::usernode sipwitch::thread::authorized
private

Definition at line 582 of file server.h.

enum { ... } sipwitch::thread::authorizing
char sipwitch::thread::binding[MAX_URI_SIZE]
private

Definition at line 589 of file server.h.

char sipwitch::thread::buffer[MAX_URI_SIZE]
private

Definition at line 590 of file server.h.

char sipwitch::thread::buftemp[MAX_URI_SIZE]
private

Definition at line 591 of file server.h.

Socket::address sipwitch::thread::contact_address
private

Definition at line 597 of file server.h.

const char * sipwitch::thread::contact_host
private

Definition at line 605 of file server.h.

unsigned sipwitch::thread::contact_port
private

Definition at line 607 of file server.h.

voip::context_t sipwitch::thread::context
private

Definition at line 609 of file server.h.

destination_t sipwitch::thread::destination
private

Definition at line 608 of file server.h.

service::usernode sipwitch::thread::dialed
private

Definition at line 583 of file server.h.

char sipwitch::thread::dialing[MAX_USERID_SIZE]
private

Definition at line 594 of file server.h.

char sipwitch::thread::display[MAX_DISPLAY_SIZE]
private

Definition at line 595 of file server.h.

unsigned sipwitch::thread::extension
private

Definition at line 578 of file server.h.

voip::from_t sipwitch::thread::from
private

Definition at line 602 of file server.h.

unsigned sipwitch::thread::from_port
private

Definition at line 607 of file server.h.

voip::hdr_t sipwitch::thread::header
private

Definition at line 599 of file server.h.

long sipwitch::thread::header_expires
private

Definition at line 600 of file server.h.

char sipwitch::thread::identbuf[MAX_USERID_SIZE+12]
private

Definition at line 592 of file server.h.

char sipwitch::thread::identity[MAX_USERID_SIZE]
private

Definition at line 593 of file server.h.

const char* sipwitch::thread::instance
private

Definition at line 577 of file server.h.

char sipwitch::thread::network[MAX_NETWORK_SIZE]
private

Definition at line 580 of file server.h.

struct sockaddr_storage sipwitch::thread::peering
private

Definition at line 581 of file server.h.

voip::proxyauth_t sipwitch::thread::proxy_auth
private

Definition at line 612 of file server.h.

registry::mapped* sipwitch::thread::reginfo
private

Definition at line 585 of file server.h.

Socket::address sipwitch::thread::request_address
private

Definition at line 597 of file server.h.

char sipwitch::thread::requesting[MAX_URI_SIZE]
private

Definition at line 596 of file server.h.

service::keynode* sipwitch::thread::routed
private

Definition at line 584 of file server.h.

stack::session* sipwitch::thread::session
private

Definition at line 598 of file server.h.

voip::event_t sipwitch::thread::sevent
private

Definition at line 587 of file server.h.

char* sipwitch::thread::sip_realm
private

Definition at line 611 of file server.h.

voip::to_t sipwitch::thread::to
private

Definition at line 603 of file server.h.

voip::uri_t sipwitch::thread::uri
private

Definition at line 604 of file server.h.

Socket::address sipwitch::thread::via_address
private

Definition at line 597 of file server.h.

voip::via_t sipwitch::thread::via_header
private

Definition at line 601 of file server.h.

unsigned sipwitch::thread::via_hops
private

Definition at line 606 of file server.h.

const char* sipwitch::thread::via_host
private

Definition at line 605 of file server.h.

unsigned sipwitch::thread::via_port
private

Definition at line 607 of file server.h.

voip::proxyauth_t sipwitch::thread::www_auth
private

Definition at line 613 of file server.h.


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