BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJSIP Reference

SIP URI Scheme and Name address

SIP URL structure ("sip:" and "sips:") More...

Data Structures

struct  pjsip_sip_uri
 
struct  pjsip_name_addr
 

Functions

pjsip_sip_uripjsip_sip_uri_create (pj_pool_t *pool, pj_bool_t secure)
 
void pjsip_sip_uri_set_secure (pjsip_sip_uri *uri, pj_bool_t secure)
 
void pjsip_sip_uri_init (pjsip_sip_uri *url, pj_bool_t secure)
 
void pjsip_sip_uri_assign (pj_pool_t *pool, pjsip_sip_uri *url, const pjsip_sip_uri *rhs)
 
pjsip_name_addrpjsip_name_addr_create (pj_pool_t *pool)
 
void pjsip_name_addr_init (pjsip_name_addr *name_addr)
 
void pjsip_name_addr_assign (pj_pool_t *pool, pjsip_name_addr *addr, const pjsip_name_addr *rhs)
 

Detailed Description

Function Documentation

◆ pjsip_sip_uri_create()

pjsip_sip_uri * pjsip_sip_uri_create ( pj_pool_t pool,
pj_bool_t  secure 
)

Create new SIP URL and initialize all fields with zero or NULL.

Parameters
poolThe pool.
secureFlag to indicate whether secure transport should be used.
Returns
SIP URL.

◆ pjsip_sip_uri_set_secure()

void pjsip_sip_uri_set_secure ( pjsip_sip_uri uri,
pj_bool_t  secure 
)

Change the SIP URI scheme to sip or sips based on the secure flag. This would not change anything except the scheme.

Parameters
uriThe URI
secureNon-zero if sips is wanted.

◆ pjsip_sip_uri_init()

void pjsip_sip_uri_init ( pjsip_sip_uri url,
pj_bool_t  secure 
)

Initialize SIP URL (all fields are set to NULL or zero).

Parameters
urlThe URL.
secureCreate sips URI?

◆ pjsip_sip_uri_assign()

void pjsip_sip_uri_assign ( pj_pool_t pool,
pjsip_sip_uri url,
const pjsip_sip_uri rhs 
)

Perform full assignment to the SIP URL.

Parameters
poolThe pool.
urlDestination URL.
rhsThe source URL.

◆ pjsip_name_addr_create()

pjsip_name_addr * pjsip_name_addr_create ( pj_pool_t pool)

Create new instance of name address and initialize all fields with zero or NULL.

Parameters
poolThe pool.
Returns
New SIP name address.

◆ pjsip_name_addr_init()

void pjsip_name_addr_init ( pjsip_name_addr name_addr)

Initialize with default value.

Parameters
name_addrThe name address.

◆ pjsip_name_addr_assign()

void pjsip_name_addr_assign ( pj_pool_t pool,
pjsip_name_addr addr,
const pjsip_name_addr rhs 
)

Perform full assignment to the name address.

Parameters
poolThe pool.
addrThe destination name address.
rhsThe source name address.

 


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