BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJSIP Reference

sip_types.h File Reference

Basic PJSIP types. More...

#include <pjsip/sip_config.h>
#include <pj/types.h>

Data Structures

struct  pjsip_buffer
 
struct  pjsip_host_port
 
struct  pjsip_host_info
 

Macros

#define PJSIP_RETURN_EXCEPTION()   pjsip_exception_to_status(PJ_GET_EXCEPTION())
 
#define PJSIP_THROW_SPEC(list)
 

Typedefs

typedef struct pjsip_tpmgr pjsip_tpmgr
 
typedef struct pjsip_endpoint pjsip_endpoint
 
typedef struct pjsip_resolver_t pjsip_resolver_t
 
typedef pjsip_module pjsip_user_agent
 

Enumerations

enum  pjsip_transport_type_e {
  PJSIP_TRANSPORT_UNSPECIFIED, PJSIP_TRANSPORT_UDP, PJSIP_TRANSPORT_TCP, PJSIP_TRANSPORT_TLS,
  PJSIP_TRANSPORT_SCTP, PJSIP_TRANSPORT_LOOP, PJSIP_TRANSPORT_LOOP_DGRAM, PJSIP_TRANSPORT_START_OTHER,
  PJSIP_TRANSPORT_IPV6 = 128, PJSIP_TRANSPORT_UDP6 = PJSIP_TRANSPORT_UDP + PJSIP_TRANSPORT_IPV6, PJSIP_TRANSPORT_TCP6 = PJSIP_TRANSPORT_TCP + PJSIP_TRANSPORT_IPV6, PJSIP_TRANSPORT_TLS6 = PJSIP_TRANSPORT_TLS + PJSIP_TRANSPORT_IPV6
}
 
enum  pjsip_role_e { PJSIP_ROLE_UAC, PJSIP_ROLE_UAS, PJSIP_UAC_ROLE = PJSIP_ROLE_UAC, PJSIP_UAS_ROLE = PJSIP_ROLE_UAS }
 

Functions

pj_status_t pjsip_exception_to_status (int exception_id)
 

Macro Definition Documentation

#define PJSIP_RETURN_EXCEPTION ( )    pjsip_exception_to_status(PJ_GET_EXCEPTION())

Return standard pj_status_t status from current exception.

#define PJSIP_THROW_SPEC (   list)

Attributes to inform that the function may throw exceptions.

Typedef Documentation

typedef struct pjsip_tpmgr pjsip_tpmgr

Forward declaration for transport manager.

Forward declaration for endpoint (sip_endpoint.h).

Opaque data type for the resolver engine (sip_resolve.h).

Forward declaration for user agent type (sip_ua_layer.h).

Enumeration Type Documentation

Transport types.

Enumerator
PJSIP_TRANSPORT_UNSPECIFIED 

Unspecified.

PJSIP_TRANSPORT_UDP 

UDP.

PJSIP_TRANSPORT_TCP 

TCP.

PJSIP_TRANSPORT_TLS 

TLS.

PJSIP_TRANSPORT_SCTP 

SCTP.

PJSIP_TRANSPORT_LOOP 

Loopback (stream, reliable)

PJSIP_TRANSPORT_LOOP_DGRAM 

Loopback (datagram, unreliable)

PJSIP_TRANSPORT_START_OTHER 

Start of user defined transport

PJSIP_TRANSPORT_IPV6 

Start of IPv6 transports

PJSIP_TRANSPORT_UDP6 

UDP over IPv6

PJSIP_TRANSPORT_TCP6 

TCP over IPv6

PJSIP_TRANSPORT_TLS6 

TLS over IPv6

Transaction role.

Enumerator
PJSIP_ROLE_UAC 

Role is UAC.

PJSIP_ROLE_UAS 

Role is UAS.

PJSIP_UAC_ROLE 

Role is UAC.

PJSIP_UAS_ROLE 

Role is UAS.

Function Documentation

pj_status_t pjsip_exception_to_status ( int  exception_id)

Convert exception ID into pj_status_t status.

Parameters
exception_idException Id.
Returns
Error code for the specified exception Id.

 


PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.