BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJSIP Reference

Basic data types. More...

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_DTLS , 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 , PJSIP_TRANSPORT_DTLS6 = PJSIP_TRANSPORT_DTLS + 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)
 

Detailed Description

Macro Definition Documentation

◆ PJSIP_RETURN_EXCEPTION

#define PJSIP_RETURN_EXCEPTION ( )    pjsip_exception_to_status(PJ_GET_EXCEPTION())

Return standard pj_status_t status from current exception.

◆ PJSIP_THROW_SPEC

#define PJSIP_THROW_SPEC (   list)

Attributes to inform that the function may throw exceptions.

Typedef Documentation

◆ pjsip_tpmgr

typedef struct pjsip_tpmgr pjsip_tpmgr

Forward declaration for transport manager.

◆ pjsip_endpoint

Forward declaration for endpoint (sip_endpoint.h).

◆ pjsip_resolver_t

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

◆ pjsip_user_agent

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

Enumeration Type Documentation

◆ pjsip_transport_type_e

Transport types.

Enumerator
PJSIP_TRANSPORT_UNSPECIFIED 

Unspecified.

PJSIP_TRANSPORT_UDP 

UDP.

PJSIP_TRANSPORT_TCP 

TCP.

PJSIP_TRANSPORT_TLS 

TLS.

PJSIP_TRANSPORT_DTLS 

DTLS, not implemented yet.

PJSIP_TRANSPORT_SCTP 

SCTP, not implemented yet.

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

PJSIP_TRANSPORT_DTLS6 

DTLS over IPv6, not implemented yet

◆ pjsip_role_e

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

◆ pjsip_exception_to_status()

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.