mirror of https://github.com/sipwise/rtpengine.git
During an offer, we update the codecs from the given list not only on the side of the offerer, but also on the answerer's side, in order to perform the codec answer routine during the answer phase. While doing this, we empty out the existing list of codecs (on both sides) and repopulate it fresh from the given list. This can cause problems during a reverse re-invite, when the list of codecs on the answerer's side already contained the codecs that had been offered before. When setting up the new re-invite offer, we want to retain codecs (and their payload types and format parameters) that were already in place, instead of recreating a new list from scratch. Improve this by adding a `merge_cs` option to the populating functions, which points back to the stream_params codec_store. Codecs that would have been removed from the codec_store during the repopulation are then moved back into the stream_params codec_store instead. This then allows the functions adding new codecs to the list (offer/transcode) to reference these codecs that were previously in place, and so they can be added back with the same options as they had existed before, instead of recreating them from scratch. Change-Id: I53e7ab10e9144a308a5c36be5ebfddd73c212f06pull/1772/head
parent
83140f60df
commit
a1d8bf2590
Loading…
Reference in new issue