amsip sdp interface
[internal API for amsip (DO NOT USE)]


Functions

int sdp_complete_message (am_call_t *ca, sdp_message_t *remote_sdp, osip_message_t *ack_or_183)
int sdp_complete_200ok (am_call_t *ca, osip_message_t *answer)
int _sdp_hold_call (sdp_message_t *local_sdp)
int _sdp_off_hold_call (sdp_message_t *local_sdp)
int _sdp_analyse_attribute (sdp_message_t *sdp, sdp_media_t *med)
int _sdp_analyse_attribute_setup (sdp_message_t *sdp, sdp_media_t *med, char *setup)
int _sdp_switch_to_codec (sdp_message_t *local_sdp, char *preferred_codec, int compress_more)
int _sdp_add_video (am_call_t *ca, sdp_message_t *local_sdp)

Function Documentation

int sdp_complete_message ( am_call_t *  ca,
sdp_message_t *  remote_sdp,
osip_message_t *  ack_or_183 
)

Complete message with SDP.

Parameters:
ca call context.
remote_sdp sdp offer of negotiation.
ack_or_183 SIP message where to add sdp answer

int sdp_complete_200ok ( am_call_t *  ca,
osip_message_t *  answer 
)

Complete message with SDP.

Parameters:
ca call context.
answer SIP message where to add sdp answer.

int _sdp_hold_call ( sdp_message_t *  local_sdp  ) 

Modify SDP to put audio stream on hold (sendonly).

Parameters:
local_sdp SDP message to modify.

int _sdp_off_hold_call ( sdp_message_t *  local_sdp  ) 

Modify SDP to put audio stream off hold (sendrecv).

Parameters:
local_sdp SDP message to modify.

int _sdp_analyse_attribute ( sdp_message_t *  sdp,
sdp_media_t *  med 
)

Get information on audio stream (sendonly, recvonly, sendrecv)

Parameters:
sdp SDP message.
med audio media.

int _sdp_analyse_attribute_setup ( sdp_message_t *  sdp,
sdp_media_t *  med,
char *  setup 
)

Get setup attribute on audio stream (active, both, passive)

Parameters:
sdp SDP message.
med audio media.
setup string to receive attribute value.

int _sdp_switch_to_codec ( sdp_message_t *  local_sdp,
char *  preferred_codec,
int  compress_more 
)

Modify SDP prefered media and parameter to increase/decrease compression.

ALPHA method: use with care!

Parameters:
local_sdp SDP message.
preferred_codec New prefered codec.
compress_more 0 or 1.

int _sdp_add_video ( am_call_t *  ca,
sdp_message_t *  local_sdp 
)

Modify SDP and add video media proposal.

ALPHA method: NOT IMPLEMENTED!

Parameters:
ca call context
local_sdp SDP message.


Generated on Sun Dec 10 18:54:29 2006 for libamsip by  doxygen 1.4.7