libamsip  5.2.1
Functions
amsip sdp session interface

Functions

int am_sdpsession_create_offer (int conf_id, sdp_message_t **sdp_request, enum am_media_type *media_types)
 
int am_sdpsession_create_answer (int conf_id, sdp_message_t *sdp_remote, sdp_message_t **sdp_answer, enum am_media_type *media_types)
 
int am_sdpsession_process_answer (int conf_id, int did, sdp_message_t *sdp_offer, sdp_message_t *sdp_remote)
 
int am_sdpsession_stop (int did, int code)
 

Detailed Description

Function Documentation

◆ am_sdpsession_create_offer()

int am_sdpsession_create_offer ( int  conf_id,
sdp_message_t **  sdp_request,
enum am_media_type *  media_types 
)

Configure amsip to start a SDP session with media (audio, video, text, udpftp).

Parameters
conf_idConference room number (below #define AMSIP_CONF_MAX)
sdp_requestSDP request.
media_typesmedia_types list

◆ am_sdpsession_create_answer()

int am_sdpsession_create_answer ( int  conf_id,
sdp_message_t *  sdp_remote,
sdp_message_t **  sdp_answer,
enum am_media_type *  media_types 
)

Configure amsip to establish a SIP session from an received offer.

Parameters
conf_idConference room number (below #define AMSIP_CONF_MAX)
sdp_remoteSDP remote.
sdp_answerSDP answer.
media_typesmedia_types list

◆ am_sdpsession_process_answer()

int am_sdpsession_process_answer ( int  conf_id,
int  did,
sdp_message_t *  sdp_offer,
sdp_message_t *  sdp_remote 
)

Configure amsip to establish a SIP session from a received answer.

Parameters
conf_idConference room number (below #define AMSIP_CONF_MAX)
didSession identifier.
sdp_offerSDP offer.
sdp_remoteSDP remote.

◆ am_sdpsession_stop()

int am_sdpsession_stop ( int  did,
int  code 
)

Configure amsip to stop a SIP session.

Parameters
didSession identifier.
codeCode to use (if answer needed).