Logo Search packages:      
Sourcecode: linphone version File versions  Download package

eXosip.h File Reference


Detailed Description

eXosip API

eXosip is a high layer library for rfc3261: the SIP protocol. It has limited API and functionnalities to make it easy to use. If you need complexity in your SIP applications, you may prefer to use directly osip.

eXosip capabilities: REGISTER to handle mobility. INVITE/BYE/OPTIONS to start/stop VoIP sessions. re-INVITE to modify VoIP sessions (On-hold/Off-hold) MESSAGE to send Instant Message. SUBSCRIBE/NOTIFY to handle presence capabilities.

Definition in file eXosip.h.

#include <osipparser2/osip_parser.h>
#include <osip2/osip_negotiation.h>
#include <time.h>

Go to the source code of this file.

Classes

struct  eXosip_event

Defines

#define CALLBACK_MODE   1
#define DEFAULT_MODE   2
#define EVENT_MODE   2
#define NORESSOURCE   NORESOURCE

Typedefs

typedef struct eXosip_event eXosip_event_t
typedef enum eXosip_ss_reason eXosip_ss_reason_t
typedef enum eXosip_ss_status eXosip_ss_status_t
typedef enum eXosip_ss eXosip_ss_t

Enumerations

enum  eXosip_event_type_t {
  EXOSIP_REGISTRATION_NEW, EXOSIP_REGISTRATION_SUCCESS, EXOSIP_REGISTRATION_FAILURE, EXOSIP_REGISTRATION_REFRESHED,
  EXOSIP_REGISTRATION_TERMINATED, EXOSIP_CALL_NOANSWER, EXOSIP_CALL_PROCEEDING, EXOSIP_CALL_RINGING,
  EXOSIP_CALL_ANSWERED, EXOSIP_CALL_REDIRECTED, EXOSIP_CALL_REQUESTFAILURE, EXOSIP_CALL_SERVERFAILURE,
  EXOSIP_CALL_GLOBALFAILURE, EXOSIP_CALL_NEW, EXOSIP_CALL_ACK, EXOSIP_CALL_CANCELLED,
  EXOSIP_CALL_TIMEOUT, EXOSIP_CALL_HOLD, EXOSIP_CALL_OFFHOLD, EXOSIP_CALL_CLOSED,
  EXOSIP_CALL_STARTAUDIO, EXOSIP_CALL_RELEASED, EXOSIP_OPTIONS_NOANSWER, EXOSIP_OPTIONS_PROCEEDING,
  EXOSIP_OPTIONS_ANSWERED, EXOSIP_OPTIONS_REDIRECTED, EXOSIP_OPTIONS_REQUESTFAILURE, EXOSIP_OPTIONS_SERVERFAILURE,
  EXOSIP_OPTIONS_GLOBALFAILURE, EXOSIP_INFO_NOANSWER, EXOSIP_INFO_PROCEEDING, EXOSIP_INFO_ANSWERED,
  EXOSIP_INFO_REDIRECTED, EXOSIP_INFO_REQUESTFAILURE, EXOSIP_INFO_SERVERFAILURE, EXOSIP_INFO_GLOBALFAILURE,
  EXOSIP_OPTIONS_NEW, EXOSIP_INFO_NEW, EXOSIP_MESSAGE_NEW, EXOSIP_MESSAGE_SUCCESS,
  EXOSIP_MESSAGE_FAILURE, EXOSIP_SUBSCRIPTION_NEW, EXOSIP_SUBSCRIPTION_UPDATE, EXOSIP_SUBSCRIPTION_CLOSED,
  EXOSIP_SUBSCRIPTION_NOANSWER, EXOSIP_SUBSCRIPTION_PROCEEDING, EXOSIP_SUBSCRIPTION_ANSWERED, EXOSIP_SUBSCRIPTION_REDIRECTED,
  EXOSIP_SUBSCRIPTION_REQUESTFAILURE, EXOSIP_SUBSCRIPTION_SERVERFAILURE, EXOSIP_SUBSCRIPTION_GLOBALFAILURE, EXOSIP_SUBSCRIPTION_NOTIFY,
  EXOSIP_SUBSCRIPTION_RELEASED, EXOSIP_IN_SUBSCRIPTION_NEW, EXOSIP_IN_SUBSCRIPTION_RELEASED, EXOSIP_CALL_REFERED,
  EXOSIP_CALL_REFER_STATUS, EXOSIP_CALLBACK_COUNT
}
enum  eXosip_ss { EXOSIP_SUBCRSTATE_UNKNOWN, EXOSIP_SUBCRSTATE_PENDING, EXOSIP_SUBCRSTATE_ACTIVE, EXOSIP_SUBCRSTATE_TERMINATED }
enum  eXosip_ss_reason {
  DEACTIVATED, PROBATION, REJECTED, TIMEOUT,
  GIVEUP, NORESOURCE
}
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
}

Functions

void __eXosip_wakeup_event (void)
int eXosip2_answer (int jid, int status, osip_message_t **answer)
int eXosip2_answer_send (int jid, osip_message_t *answer)
int eXosip_add_authentication_info (const char *username, const char *userid, const char *passwd, const char *ha1, const char *realm)
int eXosip_answer_call (int jid, int status, char *local_sdp_port)
int eXosip_answer_call_with_body (int jid, int status, const char *body_type, const char *body)
int eXosip_answer_options (int cid, int jid, int status)
void eXosip_automatic_refresh (void)
int eXosip_build_initial_invite (osip_message_t **invite, char *to, char *from, char *route, char *subject)
int eXosip_build_publish (osip_message_t **message, char *to, char *from, char *route, const char *event, const char *expires, const char *ctype, const char *body)
int eXosip_clear_authentication_info (void)
void eXosip_enable_ipv6 (int ipv6_enable)
void eXosip_event_free (eXosip_event_t *je)
eXosip_event_t * eXosip_event_get (void)
eXosip_event_t * eXosip_event_wait (int tv_s, int tv_ms)
int eXosip_force_localip (const char *localip)
void eXosip_force_proxy (const char *proxyurl)
void eXosip_get_localip (char *ip)
void eXosip_get_localip_for (char *host, char **localip)
void eXosip_guess_contact_uri (const char *url, char *strbuf, int bufsize, int public_net)
int eXosip_guess_localip (int family, char *address, int size)
int eXosip_info_call (int jid, char *content_type, char *body)
int eXosip_init (FILE *input, FILE *output, int port)
int eXosip_initiate_call (osip_message_t *invite, void *reference, void *sdp_context_reference, char *local_sdp_port)
int eXosip_initiate_call_with_body (osip_message_t *invite, const char *body_type, const char *body, void *reference)
int eXosip_lock (void)
int eXosip_message (char *to, char *from, char *route, char *buff)
int eXosip_notify (int nid, int subscription_status, int online_status)
int eXosip_notify_accept_subscribe (int nid, int code, int subscription_status, int online_status)
int eXosip_off_hold_call (int jid, char *rtp_ip, int port)
int eXosip_on_hold_call (int jid)
int eXosip_options_call (int jid)
int eXosip_publish (osip_message_t *message, const char *sip_if_match)
void eXosip_quit (void)
int eXosip_register (int rid, int expires)
int eXosip_register_init (char *from, char *proxy, char *contact)
int eXosip_retrieve_negotiated_payload (int jid, int *payload, char *payload_name, int pnsize)
int eXosip_retry_call (int cid)
void eXosip_sdp_negotiation_add_codec (char *payload, char *number_of_port, char *proto, char *c_nettype, char *c_addrtype, char *c_addr, char *c_addr_multicast_ttl, char *c_addr_multicast_int, char *a_rtpmap)
void eXosip_sdp_negotiation_ctx_set_mycontext (struct eXosip_call_t *jc, void *arg)
void eXosip_sdp_negotiation_remove_audio_payloads (void)
int eXosip_sdp_negotiation_replace (osip_negotiation_t *sn)
void eXosip_set_answer_contact (const char *contacturl)
int eXosip_set_call_reference (int jid, void *reference)
void eXosip_set_firewallip (const char *firewall_address)
void eXosip_set_mode (int mode)
void eXosip_set_nattype (const char *nat_type)
int eXosip_set_redirection_address (int jid, char *contact)
void eXosip_set_user_agent (const char *user_agent)
int eXosip_subscribe (char *to, char *from, char *route)
int eXosip_subscribe_close (int sid)
int eXosip_subscribe_refresh (int sid, char *expires)
int eXosip_terminate_call (int cid, int jid)
int eXosip_transfer_call (int jid, char *refer_to)
int eXosip_transfer_call_out_of_dialog (char *refer_to, char *from, char *to, char *route)
int eXosip_transfer_send_notify (int jid, int subscription_status, char *body)
int eXosip_unlock (void)


Generated by  Doxygen 1.6.0   Back to index