[sr-dev] git:master:fe7d7c57: core: improve an existing data structures cloning in the SDP parser
Victor Seva
linuxmaniac at torreviejawireless.org
Mon Feb 28 09:13:27 CET 2022
Module: kamailio
Branch: master
Commit: fe7d7c571b6c8d446cf66a1cf27d335d98f5f945
URL: https://github.com/kamailio/kamailio/commit/fe7d7c571b6c8d446cf66a1cf27d335d98f5f945
Author: Donat Zenichev <dzenichev at sipwise.com>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2022-02-28T09:13:21+01:00
core: improve an existing data structures cloning in the SDP parser
It's been noticed that the cloning of SDP session(s) and
SDP stream(s) structures doesn't allocate the ICE candidate attributes,
nor it allocates (recently introduced) ICE media stream options.
In order to target this a couple of new functions have been introduced:
- clone_sdp_opt_attr()
- clone_sdp_ice_attr()
And additionally the following functions have been improved, in order to
properly clone/free ICE candidate attributes and (recently introduced)
ICE media stream options:
- clone_sdp_stream_cell()
- free_cloned_sdp_stream()
- free_sdp()
- print_sdp_stream()
Additionally for a proper new structure length calculation, the following
function is fixed:
- clone_sdp_session_cell()
---
Modified: src/core/parser/sdp/sdp.c
---
Diff: https://github.com/kamailio/kamailio/commit/fe7d7c571b6c8d446cf66a1cf27d335d98f5f945.diff
Patch: https://github.com/kamailio/kamailio/commit/fe7d7c571b6c8d446cf66a1cf27d335d98f5f945.patch
More information about the sr-dev
mailing list