oSIP sdp negotiation facility.
[The SDP modules]
Classes
Defines
Functions
Define Documentation
#define MAX_APP_CODECS 100
Maximum number of supported application config.
#define MAX_AUDIO_CODECS 100
Maximum number of supported audio payload.
Maximum number of supported t38 config.
#define MAX_VIDEO_CODECS 100
Maximum number of supported video payload.
Function Documentation
int __osip_rfc3264_print_codecs
(
struct
osip_rfc3264 *
config
)
List supported codecs. (for debugging purpose only)
- Parameters:
-
config The element to work on.
int osip_rfc3264_accept_codec
(
struct
osip_rfc3264 *
config,
)
Agree to support a specific codec. This method should be called for each codec returned by osip_rfc3264_match(...)
- Parameters:
-
config The element to work on.
med One of the media returned by osip_rfc3264_match
remote_sdp The remote SDP packet.
local_sdp The local SDP packet to prepare.
int osip_rfc3264_add_audio_media
(
struct
osip_rfc3264 *
config,
int
pos
)
Add a media (for audio) in the configuration.
- Parameters:
-
config The element to work on.
med The media element to add.
pos The index of the media element to add.
int osip_rfc3264_add_t38_media
(
struct
osip_rfc3264 *
config,
int
pos
)
Add a media (for t38) in the configuration.
- Parameters:
-
config The element to work on.
med The media element to add.
pos The index of the media element to add.
int osip_rfc3264_add_video_media
(
struct
osip_rfc3264 *
config,
int
pos
)
Add a media (for video) in the configuration.
- Parameters:
-
config The element to work on.
med The media element to add.
pos The index of the media element to add.
int osip_rfc3264_complete_answer
(
struct
osip_rfc3264 *
config,
int
mline
)
Agree to support a specific codec. This method should be called for each codec returned by osip_rfc3264_match(...) that the calle agree to support.
- Parameters:
-
config The element to work on.
remote_sdp The remote SDP packet.
local_sdp The local SDP packet to complete.
med One of the media returned by osip_rfc3264_match.
mline The position of the media line to complete.
int osip_rfc3264_del_audio_media
(
struct
osip_rfc3264 *
config,
int
pos
)
Remove a media in the configuration.
- Parameters:
-
config The element to work on.
pos The index of the media element to remove.
int osip_rfc3264_del_t38_media
(
struct
osip_rfc3264 *
config,
int
pos
)
Remove a media in the configuration.
- Parameters:
-
config The element to work on.
pos The index of the media element to remove.
int osip_rfc3264_del_video_media
(
struct
osip_rfc3264 *
config,
int
pos
)
Remove a media in the configuration.
- Parameters:
-
config The element to work on.
pos The index of the media element to remove.
int osip_rfc3264_endof_media
(
struct
osip_rfc3264 *
config,
int
pos
)
Test if a media exist in the configuration.
- Parameters:
-
config The element to work on.
pos The index of the media element.
Search for support of a special codec.
- Parameters:
-
config The element to work on.
payload The payload to find.
char *
payload,
char *
rtpmap
)
Search for support of a special codec.
- Parameters:
-
config The element to work on.
payload The payload to find.
rtpmap The rtpmap for the payload.
Search for support of a special codec.
- Parameters:
-
config The element to work on.
payload The payload to find.
char *
payload,
char *
rtpmap
)
Search for support of a special codec.
- Parameters:
-
config The element to work on.
payload The payload to find.
rtpmap The rtpmap for the payload.
Free negotiation facility.
- Parameters:
-
config The element to work on.
Get a media from the configuration.
- Parameters:
-
config The element to work on.
pos The index of the media element to get.
Initialize negotiation facility..
- Parameters:
-
config The element to work on.
Compare remote sdp packet against local supported media. Only one media line is checked.
- Parameters:
-
config The element to work on.
remote_sdp The remote SDP packet.
audio_tab The local list of media supported by both side.
video_tab The local list of media supported by both side.
t38_tab The local list of media supported by both side.
app_tab The local list of media supported by both side.
pos_media The position of the media line to match.
Compare remote sdp packet against local supported media for application.
- Parameters:
-
config The element to work on.
remote_sdp The remote SDP packet.
remote_med The remote Media SDP line.
app_tab The local list of media supported by both side.
int osip_rfc3264_match_audio
(
struct
osip_rfc3264 *
config,
)
Compare remote sdp packet against local supported media for audio.
- Parameters:
-
config The element to work on.
remote_sdp The remote SDP packet.
remote_med The remote Media SDP line.
audio_tab The local list of media supported by both side.
Compare remote sdp packet against local supported media for t38.
- Parameters:
-
config The element to work on.
remote_sdp The remote SDP packet.
remote_med The remote Media SDP line.
t38_tab The local list of media supported by both side.
int osip_rfc3264_match_video
(
struct
osip_rfc3264 *
config,
)
Compare remote sdp packet against local supported media for video.
- Parameters:
-
config The element to work on.
remote_sdp The remote SDP packet.
remote_med The remote Media SDP line.
video_tab The local list of media supported by both side.
int osip_rfc3264_prepare_answer
(
struct
osip_rfc3264 *
config,
char *
local_sdp,
int
length
)
Prepare an uncomplete answer.
- Parameters:
-
config The element to work on.
remote_sdp The remote SDP packet.
local_sdp The local SDP packet to prepare.
length The local SDP packet's length.
Remove a media from the configuration.
- Parameters:
-
config The element to work on.
pos The index of the media element to remove.
int osip_rfc3264_reset_media
(
struct
osip_rfc3264 *
config
)
Remove all medias from the configuration.
- Parameters:
-
config The element to work on.
Generated on Tue Feb 22 00:59:48 2005 for libosip by
doxygen 1.4.1