SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Enumerations | Functions
eX_subscribe.h File Reference

eXosip subscribe request API More...

#include <osipparser2/osip_parser.h>
#include <time.h>
Include dependency graph for eX_subscribe.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __EX_SUBSCRIBE_H__
 

Enumerations

enum  eXosip_ss { EXOSIP_SUBCRSTATE_UNKNOWN, EXOSIP_SUBCRSTATE_PENDING, EXOSIP_SUBCRSTATE_ACTIVE, EXOSIP_SUBCRSTATE_TERMINATED }
 Structure for subscription status. More...
 
enum  eXosip_ss_reason {
  DEACTIVATED, PROBATION, REJECTED, TIMEOUT,
  GIVEUP, NORESOURCE
}
 Structure for subscription reason. More...
 
enum  eXosip_ss_status {
  EXOSIP_NOTIFY_UNKNOWN, EXOSIP_NOTIFY_PENDING, EXOSIP_NOTIFY_ONLINE, EXOSIP_NOTIFY_BUSY,
  EXOSIP_NOTIFY_BERIGHTBACK, EXOSIP_NOTIFY_AWAY, EXOSIP_NOTIFY_ONTHEPHONE, EXOSIP_NOTIFY_OUTTOLUNCH,
  EXOSIP_NOTIFY_CLOSED
}
 Structure for notification status. More...
 

Functions

int eXosip_subscribe_build_initial_request (struct eXosip_t *excontext, osip_message_t **subscribe, const char *to, const char *from, const char *route, const char *event, int expires)
 Build a default initial SUBSCRIBE request. More...
 
int eXosip_subscribe_send_initial_request (struct eXosip_t *excontext, osip_message_t *subscribe)
 Send an initial SUBSCRIBE request. More...
 
int eXosip_subscribe_build_refresh_request (struct eXosip_t *excontext, int did, osip_message_t **sub)
 Build a default new SUBSCRIBE message. More...
 
int eXosip_subscribe_send_refresh_request (struct eXosip_t *excontext, int did, osip_message_t *sub)
 Send a new SUBSCRIBE request. More...
 
int eXosip_subscribe_remove (struct eXosip_t *excontext, int did)
 Remove outgoing subscription context. More...
 
int eXosip_insubscription_build_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t **answer)
 Build answer for an SUBSCRIBE request. More...
 
int eXosip_insubscription_send_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t *answer)
 Send answer for an SUBSCRIBE request. More...
 
int eXosip_insubscription_build_request (struct eXosip_t *excontext, int did, const char *method, osip_message_t **request)
 Build a request within subscription. More...
 
int eXosip_insubscription_build_notify (struct eXosip_t *excontext, int did, int subscription_status, int subscription_reason, osip_message_t **request)
 Build a NOTIFY request within subscription. More...
 
int eXosip_insubscription_send_request (struct eXosip_t *excontext, int did, osip_message_t *request)
 Send a request within subscription. More...
 
int eXosip_insubscription_remove (struct eXosip_t *excontext, int did)
 Remove incoming subscription context. More...
 

Detailed Description

eXosip subscribe request API

This file provide the API needed to control SUBSCRIBE requests. You can use it to:

Definition in file eX_subscribe.h.

Macro Definition Documentation

#define __EX_SUBSCRIBE_H__

Definition at line 26 of file eX_subscribe.h.