SIP Witch 1.9.15
Public Types | Static Public Member Functions
sipwitch::voip Class Reference

#include <voip.h>

Public Types

typedef void *  context_t
 
typedef eXosip_event_tevent_t
 
typedef int  reg_t
 
typedef int  tid_t
 
typedef int  did_t
 
typedef int  call_t
 
typedef osip_header_thdr_t
 
typedef osip_message_tmsg_t
 
 
 
typedef osip_body_tbody_t
 
 
typedef osip_from_tfrom_t
 
typedef osip_via_tvia_t
 
typedef osip_to_tto_t
 
typedef osip_uri_turi_t
 
typedef unsigned long  timeout_t
 
 
 
 

Static Public Member Functions

static void  lock (context_t ctx)
 
static void  unlock (context_t ctx)
 
static bool  make_request_message (context_t ctx, const char *method, const char *to, const char *from, msg_t *msg, const char *route=NULL)
 
static bool  make_response_message (context_t ctx, tid_t tid, int status, msg_t *msg)
 
static void  send_request_message (context_t ctx, msg_t msg)
 
static void  send_response_message (context_t ctx, tid_t tid, int status, msg_t msg=NULL)
 
static bool  make_options_response (context_t ctx, tid_t tid, int status, msg_t *msg)
 
static void  send_options_response (context_t ctx, tid_t tid, int status, msg_t msg=NULL)
 
static bool  make_invite_request (context_t ctx, const char *to, const char *from, const char *subject, msg_t *msg, const char *route=NULL)
 
 
static bool  make_answer_response (context_t ctx, tid_t tid, int status, msg_t *msg)
 
static void  send_answer_response (context_t ctx, tid_t tid, int status, msg_t msg=NULL)
 
static void  release_call (context_t ctx, call_t cid, did_t did)
 
static bool  make_dialog_request (context_t ctx, did_t did, const char *method, msg_t *msg)
 
static bool  make_dialog_notify (context_t ctx, did_t did, int status, msg_t *msg)
 
static bool  make_dialog_update (context_t ctx, did_t did, msg_t *msg)
 
static bool  make_dialog_refer (context_t ctx, did_t did, const char *to, msg_t *msg)
 
static bool  make_dialog_info (context_t ctx, did_t did, msg_t *msg)
 
static bool  make_dialog_options (context_t ctx, did_t did, msg_t *msg)
 
static void  send_dialog_message (context_t ctx, did_t did, msg_t msg)
 
static bool  make_ack_message (context_t ctx, did_t did, msg_t *msg)
 
static void  send_ack_message (context_t ctx, did_t did, msg_t msg=NULL)
 
static bool  make_prack_message (context_t ctx, tid_t tid, msg_t *msg)
 
static void  send_prack_message (context_t ctx, tid_t tid, msg_t msg)
 
static reg_t  make_registry_request (context_t ctx, const char *uri, const char *s, const char *c, unsigned exp, msg_t *msg)
 
static void  send_registry_request (context_t ctx, reg_t rid, msg_t msg)
 
static bool  release_registry (context_t ctx, reg_t rid)
 
static void  add_authentication (context_t ctx, const char *user, const char *secret, const char *realm, bool automatic=false)
 
static void  default_action (context_t ctx, event_t ev)
 
static void  automatic_action (context_t ctx)
 
static bool  publish (context_t ctx, const char *uri, const char *contact, const char *event, const char *duration, const char *type, const char *body)
 
static event_t  get_event (context_t ctx, timeout_t timeout)
 
static void  call_reference (context_t ctx, call_t cid, void *route)
 
static void  free_message_request (context_t ctx, voip::msg_t msg)
 
static void  release_event (event_t ev)
 
static void  option (context_t ctx, int opt, const void *value)
 
static bool  listen (context_t ctx, int proto=IPPROTO_UDP, const char *iface=NULL, unsigned port=5060, bool tls=false)
 
static void  create (context_t *ctx, const char *agent, int family=AF_INET)
 
static void  release (context_t ctx)
 
static void  show (msg_t msg)
 
static void  header (msg_t msg, const char *key, const char *value)
 
static void  attach (msg_t msg, const char *type, const char *body)
 
static void  attach (msg_t msg, const char *type, const char *body, size_t size)
 
static void  server_allows (voip::msg_t msg)
 
static void  server_accepts (voip::msg_t msg)
 
static void  server_supports (voip::msg_t msg, const char *txt)
 
static void  server_requires (voip::msg_t msg, const char *txt)
 

Detailed Description

Definition at line 45 of file voip.h.

Member Typedef Documentation

Definition at line 74 of file voip.h.

Definition at line 67 of file voip.h.

Definition at line 62 of file voip.h.

Definition at line 65 of file voip.h.

Definition at line 53 of file voip.h.

Definition at line 68 of file voip.h.

typedef int sipwitch::voip::did_t

Definition at line 61 of file voip.h.

Definition at line 58 of file voip.h.

Definition at line 69 of file voip.h.

Definition at line 63 of file voip.h.

Definition at line 64 of file voip.h.

Definition at line 75 of file voip.h.

Definition at line 76 of file voip.h.

typedef int sipwitch::voip::reg_t

Definition at line 59 of file voip.h.

typedef int sipwitch::voip::tid_t

Definition at line 60 of file voip.h.

typedef unsigned long sipwitch::voip::timeout_t

Definition at line 73 of file voip.h.

Definition at line 71 of file voip.h.

Definition at line 66 of file voip.h.

Definition at line 72 of file voip.h.

Definition at line 70 of file voip.h.

Member Function Documentation

void sipwitch::voip::add_authentication ( context_t  ctx,
const char *  user,
const char *  secret,
const char *  realm,
bool  automatic = false 
)
static

Definition at line 488 of file voip.cpp.

void sipwitch::voip::attach ( msg_t  msg,
const char *  type,
const char *  body 
)
static

Definition at line 941 of file voip.cpp.

void sipwitch::voip::attach ( msg_t  msg,
const char *  type,
const char *  body,
size_t  size 
)
static

Definition at line 933 of file voip.cpp.

void sipwitch::voip::automatic_action ( context_t  ctx )
static

Definition at line 818 of file voip.cpp.

void sipwitch::voip::call_reference ( context_t  ctx,
call_t  cid,
void *  route 
)
static

Definition at line 472 of file voip.cpp.

void sipwitch::voip::create ( context_tctx,
const char *  agent,
int  family = AF_INET 
)
static

Definition at line 856 of file voip.cpp.

void sipwitch::voip::default_action ( context_t  ctx,
event_t  ev 
)
static

Definition at line 811 of file voip.cpp.

void sipwitch::voip::free_message_request ( context_t  ctx,
voip::msg_t  msg 
)
static

Definition at line 497 of file voip.cpp.

voip::event_t sipwitch::voip::get_event ( context_t  ctx,
timeout_t  timeout 
)
static

Definition at line 825 of file voip.cpp.

void sipwitch::voip::header ( voip::msg_t  msg,
const char *  key,
const char *  value 
)
static

Definition at line 928 of file voip.cpp.

bool sipwitch::voip::listen ( context_t  ctx,
int  proto = IPPROTO_UDP,
const char *  iface = NULL,
unsigned  port = 5060,
bool  tls = false 
)
static

Definition at line 832 of file voip.cpp.

static void sipwitch::voip::lock ( context_t  ctx )
inlinestatic

Definition at line 54 of file voip.h.

bool sipwitch::voip::make_ack_message ( context_t  ctx,
did_t  did,
msg_tmsg 
)
static

Definition at line 660 of file voip.cpp.

bool sipwitch::voip::make_answer_response ( context_t  ctx,
tid_t  tid,
int  status,
msg_tmsg 
)
static

Definition at line 587 of file voip.cpp.

bool sipwitch::voip::make_dialog_info ( context_t  ctx,
did_t  did,
msg_tmsg 
)
static

Definition at line 770 of file voip.cpp.

bool sipwitch::voip::make_dialog_notify ( context_t  ctx,
did_t  did,
int  status,
msg_tmsg 
)
static

Definition at line 722 of file voip.cpp.

bool sipwitch::voip::make_dialog_options ( context_t  ctx,
did_t  did,
msg_tmsg 
)
static

Definition at line 786 of file voip.cpp.

bool sipwitch::voip::make_dialog_refer ( context_t  ctx,
did_t  did,
const char *  to,
msg_tmsg 
)
static

Definition at line 754 of file voip.cpp.

bool sipwitch::voip::make_dialog_request ( context_t  ctx,
did_t  did,
const char *  method,
msg_tmsg 
)
static

Definition at line 706 of file voip.cpp.

bool sipwitch::voip::make_dialog_update ( context_t  ctx,
did_t  did,
msg_tmsg 
)
static

Definition at line 738 of file voip.cpp.

bool sipwitch::voip::make_invite_request ( context_t  ctx,
const char *  to,
const char *  from,
const char *  subject,
msg_tmsg,
const char *  route = NULL 
)
static

Definition at line 542 of file voip.cpp.

bool sipwitch::voip::make_options_response ( context_t  ctx,
tid_t  tid,
int  status,
msg_tmsg 
)
static

Definition at line 565 of file voip.cpp.

bool sipwitch::voip::make_prack_message ( context_t  ctx,
tid_t  tid,
msg_tmsg 
)
static

Definition at line 683 of file voip.cpp.

voip::reg_t sipwitch::voip::make_registry_request ( context_t  ctx,
const char *  uri,
const char *  s,
const char *  c,
unsigned  exp,
msg_tmsg 
)
static

Definition at line 618 of file voip.cpp.

bool sipwitch::voip::make_request_message ( context_t  ctx,
const char *  method,
const char *  to,
const char *  from,
msg_tmsg,
const char *  route = NULL 
)
static

Definition at line 504 of file voip.cpp.

bool sipwitch::voip::make_response_message ( context_t  ctx,
tid_t  tid,
int  status,
msg_tmsg 
)
static

Definition at line 519 of file voip.cpp.

void sipwitch::voip::option ( voip::context_t  ctx,
int  opt,
const void *  value 
)
static

Definition at line 479 of file voip.cpp.

bool sipwitch::voip::publish ( voip::context_t  ctx,
const char *  uri,
const char *  contact,
const char *  event,
const char *  duration,
const char *  type,
const char *  body 
)
static

Definition at line 457 of file voip.cpp.

void sipwitch::voip::release ( context_t  ctx )
static

Definition at line 877 of file voip.cpp.

void sipwitch::voip::release_call ( context_t  ctx,
call_t  cid,
did_t  did 
)
static

Definition at line 653 of file voip.cpp.

void sipwitch::voip::release_event ( event_t  ev )
static

Definition at line 888 of file voip.cpp.

bool sipwitch::voip::release_registry ( context_t  ctx,
reg_t  rid 
)
static

Definition at line 639 of file voip.cpp.

void sipwitch::voip::send_ack_message ( context_t  ctx,
did_t  did,
msg_t  msg = NULL 
)
static

Definition at line 675 of file voip.cpp.

void sipwitch::voip::send_answer_response ( context_t  ctx,
tid_t  tid,
int  status,
msg_t  msg = NULL 
)
static

Definition at line 601 of file voip.cpp.

void sipwitch::voip::send_dialog_message ( context_t  ctx,
did_t  did,
msg_t  msg 
)
static

Definition at line 802 of file voip.cpp.

voip::call_t sipwitch::voip::send_invite_request ( context_t  ctx,
msg_t  msg 
)
static

Definition at line 555 of file voip.cpp.

void sipwitch::voip::send_options_response ( context_t  ctx,
tid_t  tid,
int  status,
msg_t  msg = NULL 
)
static

Definition at line 579 of file voip.cpp.

void sipwitch::voip::send_prack_message ( context_t  ctx,
tid_t  tid,
msg_t  msg 
)
static

Definition at line 698 of file voip.cpp.

void sipwitch::voip::send_registry_request ( context_t  ctx,
reg_t  rid,
msg_t  msg 
)
static

Definition at line 631 of file voip.cpp.

void sipwitch::voip::send_request_message ( context_t  ctx,
msg_t  msg 
)
static

Definition at line 609 of file voip.cpp.

void sipwitch::voip::send_response_message ( context_t  ctx,
tid_t  tid,
int  status,
msg_t  msg = NULL 
)
static

Definition at line 534 of file voip.cpp.

void sipwitch::voip::server_accepts ( voip::msg_t  msg )
static

Definition at line 907 of file voip.cpp.

void sipwitch::voip::server_allows ( voip::msg_t  msg )
static

Definition at line 912 of file voip.cpp.

void sipwitch::voip::server_requires ( voip::msg_t  msg,
const char *  txt 
)
static

Definition at line 918 of file voip.cpp.

void sipwitch::voip::server_supports ( voip::msg_t  msg,
const char *  txt 
)
static

Definition at line 923 of file voip.cpp.

void sipwitch::voip::show ( msg_t  msg )
static

Definition at line 894 of file voip.cpp.

static void sipwitch::voip::unlock ( context_t  ctx )
inlinestatic

Definition at line 55 of file voip.h.


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

Generated on Dec 21, 2017 for sipwitch-1.9.15 (*.h and *.cpp), libosip2-5.0.0 (*.h) and libeXosip2-4.0.0 (*.h), by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /