#include <voip.h>
 
Public Types
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 
Static Public Member Functions
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 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 bool  
listen (
context_t ctx, int proto=IPPROTO_UDP, const char *iface=NULL, unsigned port=5060, bool tls=false)
 
  
  
  
  
  
 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)
 
  
  
  
  
  
 Detailed Description
Member Typedef Documentation
Member Function Documentation
  
 
  void sipwitch::voip::add_authentication 
 (
 
context_t 
 ctx, 
 
 
  
 
 const char * 
 user, 
 
  
 
 const char * 
 secret, 
 
  
 
 const char * 
 realm, 
 
  
 
 bool 
 automatic = false 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::attach 
 (
 
msg_t 
 msg, 
 
 
  
 
 const char * 
 type, 
 
  
 
 const char * 
 body 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::attach 
 (
 
msg_t 
 msg, 
 
 
  
 
 const char * 
 type, 
 
  
 
 const char * 
 body, 
 
  
 
 size_t 
 size 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::automatic_action 
 (
 
context_t 
 ctx )
 
 
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::call_reference 
 (
 
context_t 
 ctx, 
 
 
 
  
 
 void * 
 route 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::create 
 (
 
context_t * 
 
ctx, 
 
 
  
 
 const char * 
 agent, 
 
  
 
 int 
 family = AF_INET 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::default_action 
 (
 
context_t 
 ctx, 
 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::free_message_request 
 (
 
context_t 
 ctx, 
 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
 
  
 
 const char * 
 key, 
 
  
 
 const char * 
 value 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
 
  
 
 int 
 proto = IPPROTO_UDP, 
 
  
 
 const char * 
 iface = NULL, 
 
  
 
 unsigned 
 port = 5060, 
 
  
 
 bool 
 tls = false 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  static void sipwitch::voip::lock 
 (
 
context_t 
 ctx )
 
 
 
 
 
 
inlinestatic 
  
 
 
  
 
  bool sipwitch::voip::make_ack_message 
 (
 
context_t 
 ctx, 
 
 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  bool sipwitch::voip::make_answer_response 
 (
 
context_t 
 ctx, 
 
 
 
  
 
 int 
 status, 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  bool sipwitch::voip::make_dialog_info 
 (
 
context_t 
 ctx, 
 
 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  bool sipwitch::voip::make_dialog_notify 
 (
 
context_t 
 ctx, 
 
 
 
  
 
 int 
 status, 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  bool sipwitch::voip::make_dialog_options 
 (
 
context_t 
 ctx, 
 
 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  bool sipwitch::voip::make_dialog_refer 
 (
 
context_t 
 ctx, 
 
 
 
  
 
 const char * 
 to, 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  bool sipwitch::voip::make_dialog_request 
 (
 
context_t 
 ctx, 
 
 
 
  
 
 const char * 
 method, 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  bool sipwitch::voip::make_dialog_update 
 (
 
context_t 
 ctx, 
 
 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  bool sipwitch::voip::make_invite_request 
 (
 
context_t 
 ctx, 
 
 
  
 
 const char * 
 to, 
 
  
 
 const char * 
 from, 
 
  
 
 const char * 
 subject, 
 
 
  
 
 const char * 
 route = NULL 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  bool sipwitch::voip::make_options_response 
 (
 
context_t 
 ctx, 
 
 
 
  
 
 int 
 status, 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  bool sipwitch::voip::make_prack_message 
 (
 
context_t 
 ctx, 
 
 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
 
  
 
 const char * 
 uri, 
 
  
 
 const char * 
 s, 
 
  
 
 const char * 
 c, 
 
  
 
 unsigned 
 exp, 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  bool sipwitch::voip::make_request_message 
 (
 
context_t 
 ctx, 
 
 
  
 
 const char * 
 method, 
 
  
 
 const char * 
 to, 
 
  
 
 const char * 
 from, 
 
 
  
 
 const char * 
 route = NULL 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  bool sipwitch::voip::make_response_message 
 (
 
context_t 
 ctx, 
 
 
 
  
 
 int 
 status, 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
 
  
 
 int 
 opt, 
 
  
 
 const void * 
 value 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
 
  
 
 const char * 
 uri, 
 
  
 
 const char * 
 contact, 
 
  
 
 const char * 
 event, 
 
  
 
 const char * 
 duration, 
 
  
 
 const char * 
 type, 
 
  
 
 const char * 
 body 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::release 
 (
 
context_t 
 ctx )
 
 
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::release_call 
 (
 
context_t 
 ctx, 
 
 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::release_event 
 (
 
event_t 
 ev )
 
 
 
 
 
 
static 
  
 
 
  
 
  bool sipwitch::voip::release_registry 
 (
 
context_t 
 ctx, 
 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::send_ack_message 
 (
 
context_t 
 ctx, 
 
 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::send_answer_response 
 (
 
context_t 
 ctx, 
 
 
 
  
 
 int 
 status, 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::send_dialog_message 
 (
 
context_t 
 ctx, 
 
 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::send_options_response 
 (
 
context_t 
 ctx, 
 
 
 
  
 
 int 
 status, 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::send_prack_message 
 (
 
context_t 
 ctx, 
 
 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::send_registry_request 
 (
 
context_t 
 ctx, 
 
 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::send_request_message 
 (
 
context_t 
 ctx, 
 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::send_response_message 
 (
 
context_t 
 ctx, 
 
 
 
  
 
 int 
 status, 
 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::server_accepts 
 (
 
voip::msg_t 
 msg )
 
 
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::server_requires 
 (
 
voip::msg_t 
 msg, 
 
 
  
 
 const char * 
 txt 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::server_supports 
 (
 
voip::msg_t 
 msg, 
 
 
  
 
 const char * 
 txt 
 
  
 )
  
 
 
 
 
static 
  
 
 
  
 
  void sipwitch::voip::show 
 (
 
msg_t 
 msg )
 
 
 
 
 
 
static 
  
 
 
  
 
  static void sipwitch::voip::unlock 
 (
 
context_t 
 ctx )
 
 
 
 
 
 
inlinestatic 
  
 
 
The documentation for this class was generated from the following files: