- useful in multi-part bodies and sdp operations
@@ -371,6 +371,11 @@ static int parse_sdp_session(str *sdp_body, int session_num, str *cnt_disp, sdp_
int parse_payload_attr;
str fmtp_string;
+ /* hook the start and lenght of sdp body inside structure
+ * - shorcut useful for multi-part bodies and sdp operations
+ */
+ _sdp->text = *sdp_body;
+
/*
* Parsing of SDP body.
* Each session starts with v-line and each session may contain a few
@@ -101,6 +101,7 @@ typedef struct sdp_session_cell {
typedef struct sdp_info {
msg_body_type_t type;
free_msg_body_f free;
+ str text; /**< link to start of sdp and its length */
int sessions_num; /**< number of SDP sessions */
int streams_num; /**< total number of streams for all SDP sessions */
struct sdp_session_cell *sessions;