00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef _SDP_HLPR_FUNCS_H
00034 #define _SDP_HLPR_FUNCS_H
00035
00036 #include "../../str.h"
00037 #include "../msg_parser.h"
00038
00045 int get_mixed_part_delimiter(str * body, str * mp_delimiter);
00046
00047 int extract_rtpmap(str *body, str *rtpmap_payload, str *rtpmap_encoding, str *rtpmap_clockrate, str *rtpmap_parmas);
00048 int extract_fmtp( str *body, str *fmtp_payload, str *fmtp_string );
00049 int extract_ptime(str *body, str *ptime);
00050 int extract_sendrecv_mode(str *body, str *sendrecv_mode, int *is_on_hold);
00051 int extract_mediaip(str *body, str *mediaip, int *pf, char *line);
00052 int extract_media_attr(str *body, str *mediamedia, str *mediaport, str *mediatransport, str *mediapayload, int *is_rtp);
00053 int extract_bwidth(str *body, str *bwtype, str *bwwitdth);
00054
00055
00056 int extract_rtcp(str *body, str *rtcp);
00057
00058
00059 int extract_accept_types(str *body, str *accept_types);
00060 int extract_accept_wrapped_types(str *body, str *accept_wrapped_types);
00061 int extract_max_size(str *body, str *max_size);
00062 int extract_path(str *body, str *path);
00063
00064 char *find_sdp_line(char *p, char *plimit, char linechar);
00065 char *find_next_sdp_line(char *p, char *plimit, char linechar, char *defptr);
00066
00067 char* get_sdp_hdr_field(char* , char* , struct hdr_field* );
00068
00069 char *find_sdp_line_delimiter(char *p, char *plimit, str delimiter);
00070 char *find_next_sdp_line_delimiter(char *p, char *plimit, str delimiter, char *defptr);
00071 char * find_first_sdp_line(char* pstart, char* plimit, char linechar,
00072 char* defptr);
00073 #endif