SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Data Fields | Private Member Functions
sipwitch::stack::call Class Reference
Inheritance diagram for sipwitch::stack::call:
Inheritance graph
[legend]
Collaboration diagram for sipwitch::stack::call:
Collaboration graph
[legend]

Public Types

enum  state_t {
  INITIAL, TRYING, RINGING, RINGBACK,
  REORDER, HOLDING, ANSWERED, JOINED,
  TRANSFER, REDIRECT, BUSY, TERMINATE,
  FAILED, FINAL
}
 
enum  {
  DIRECTED, CIRCULAR, TERMINAL, REDIRECTED,
  DISTRIBUTED
}
 

Public Member Functions

 call ()
 
void disarm (void)
 
void arm (timeout_t timeout)
 
void reply_source (int error)
 
void ring (thread *thread, session *s=NULL)
 
void busy (thread *thread, session *s=NULL)
 
void failed (thread *thread, session *s)
 
void answer (thread *thread, session *s)
 
void relay (thread *thread, session *s)
 
void message_reply (thread *thread, session *s)
 
void reinvite (thread *thread, session *s)
 
void trying (thread *thread)
 
void confirm (thread *thread, session *s)
 
timeout_t getTimeout (void)
 
void closingLocked (session *s)
 
void terminateLocked (void)
 
void disconnectLocked (void)
 
void joinLocked (session *s)
 
void cancelLocked (void)
 
cdrlog (void)
 
void bye (thread *thread, session *s)
 
void set (state_t state, char id, const char *text)
 

Static Public Member Functions

static void * operator new (size_t size)
 
static void operator delete (void *obj)
 

Data Fields

enum sipwitch::stack::call:: { ... }  mode
 
destination_t type
 
Timer timer
 
state_t state
 
char forward [MAX_USERID_SIZE]
 
char divert [MAX_USERID_SIZE]
 
char dialed [MAX_IDENT_SIZE]
 
char subject [MAX_URI_SIZE]
 
char request [MAX_URI_SIZE]
 
OrderedIndex segments
 
const char * reason
 
const char * joined
 
sessionsource
 
sessiontarget
 
segmentselect
 
MappedCallmap
 
const char * forwarding
 
const char * diverting
 
unsigned answering
 
unsigned count
 
unsigned invited
 
unsigned ringing
 
unsigned ringbusy
 
unsigned unreachable
 
time_t expires
 
time_t starting
 
time_t ending
 
int experror
 
bool phone
 

Private Member Functions

void expired (void)
 

Detailed Description

Definition at line 301 of file server.h.

Member Enumeration Documentation

anonymous enum
Enumerator
DIRECTED 
CIRCULAR 
TERMINAL 
REDIRECTED 
DISTRIBUTED 

Definition at line 306 of file server.h.

Enumerator
INITIAL 
TRYING 
RINGING 
RINGBACK 
REORDER 
HOLDING 
ANSWERED 
JOINED 
TRANSFER 
REDIRECT 
BUSY 
TERMINATE 
FAILED 
FINAL 

Definition at line 304 of file server.h.

Constructor & Destructor Documentation

sipwitch::stack::call::call ( )

Definition at line 21 of file call.cpp.

Member Function Documentation

void sipwitch::stack::call::answer ( thread thread,
session s 
)

Definition at line 449 of file call.cpp.

void sipwitch::stack::call::arm ( timeout_t  timeout)

Definition at line 39 of file call.cpp.

void sipwitch::stack::call::busy ( thread thread,
session s = NULL 
)

Definition at line 643 of file call.cpp.

void sipwitch::stack::call::bye ( thread thread,
session s 
)

Definition at line 231 of file call.cpp.

void sipwitch::stack::call::cancelLocked ( void  )

Definition at line 57 of file call.cpp.

void sipwitch::stack::call::closingLocked ( session s)

Definition at line 185 of file call.cpp.

void sipwitch::stack::call::confirm ( thread thread,
session s 
)

Definition at line 585 of file call.cpp.

void sipwitch::stack::call::disarm ( void  )

Definition at line 45 of file call.cpp.

void sipwitch::stack::call::disconnectLocked ( void  )

Definition at line 119 of file call.cpp.

void sipwitch::stack::call::expired ( void  )
private

Definition at line 750 of file call.cpp.

void sipwitch::stack::call::failed ( thread thread,
session s 
)

Definition at line 294 of file call.cpp.

timeout_t sipwitch::stack::call::getTimeout ( void  )

Definition at line 737 of file call.cpp.

void sipwitch::stack::call::joinLocked ( session s)

Definition at line 82 of file call.cpp.

cdr * sipwitch::stack::call::log ( void  )

Definition at line 799 of file call.cpp.

void sipwitch::stack::call::message_reply ( thread thread,
session s 
)

Definition at line 512 of file call.cpp.

void sipwitch::stack::call::operator delete ( void *  obj)
static

Definition at line 187 of file stack.cpp.

void * sipwitch::stack::call::operator new ( size_t  size)
static

Definition at line 179 of file stack.cpp.

void sipwitch::stack::call::reinvite ( thread thread,
session s 
)

Definition at line 344 of file call.cpp.

void sipwitch::stack::call::relay ( thread thread,
session s 
)

Definition at line 532 of file call.cpp.

void sipwitch::stack::call::reply_source ( int  error)

Definition at line 202 of file call.cpp.

void sipwitch::stack::call::ring ( thread thread,
session s = NULL 
)

Definition at line 264 of file call.cpp.

void sipwitch::stack::call::set ( state_t  state,
char  id,
const char *  text 
)

Definition at line 221 of file call.cpp.

void sipwitch::stack::call::terminateLocked ( void  )

Definition at line 50 of file call.cpp.

void sipwitch::stack::call::trying ( thread thread)

Definition at line 716 of file call.cpp.

Field Documentation

unsigned sipwitch::stack::call::answering

Definition at line 351 of file server.h.

unsigned sipwitch::stack::call::count

Definition at line 352 of file server.h.

char sipwitch::stack::call::dialed[MAX_IDENT_SIZE]

Definition at line 316 of file server.h.

char sipwitch::stack::call::divert[MAX_USERID_SIZE]

Definition at line 315 of file server.h.

const char* sipwitch::stack::call::diverting

Definition at line 350 of file server.h.

time_t sipwitch::stack::call::ending

Definition at line 357 of file server.h.

int sipwitch::stack::call::experror

Definition at line 358 of file server.h.

time_t sipwitch::stack::call::expires

Definition at line 357 of file server.h.

char sipwitch::stack::call::forward[MAX_USERID_SIZE]

Definition at line 314 of file server.h.

const char* sipwitch::stack::call::forwarding

Definition at line 349 of file server.h.

unsigned sipwitch::stack::call::invited

Definition at line 353 of file server.h.

const char* sipwitch::stack::call::joined

Definition at line 344 of file server.h.

MappedCall* sipwitch::stack::call::map

Definition at line 348 of file server.h.

enum { ... } sipwitch::stack::call::mode
bool sipwitch::stack::call::phone

Definition at line 359 of file server.h.

const char* sipwitch::stack::call::reason

Definition at line 343 of file server.h.

char sipwitch::stack::call::request[MAX_URI_SIZE]

Definition at line 318 of file server.h.

unsigned sipwitch::stack::call::ringbusy

Definition at line 355 of file server.h.

unsigned sipwitch::stack::call::ringing

Definition at line 354 of file server.h.

OrderedIndex sipwitch::stack::call::segments

Definition at line 342 of file server.h.

segment* sipwitch::stack::call::select

Definition at line 347 of file server.h.

session* sipwitch::stack::call::source

Definition at line 345 of file server.h.

time_t sipwitch::stack::call::starting

Definition at line 357 of file server.h.

state_t sipwitch::stack::call::state

Definition at line 313 of file server.h.

char sipwitch::stack::call::subject[MAX_URI_SIZE]

Definition at line 317 of file server.h.

session* sipwitch::stack::call::target

Definition at line 346 of file server.h.

Timer sipwitch::stack::call::timer

Definition at line 312 of file server.h.

destination_t sipwitch::stack::call::type

Definition at line 308 of file server.h.

unsigned sipwitch::stack::call::unreachable

Definition at line 356 of file server.h.


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