On 25 Apr 2023, at 18:00, Richard Fuchs rfuchs@sipwise.com wrote:
On 25/04/2023 10.59, [EXT] Olle E. Johansson wrote:
One workaround (kludge/hack) I've seen is to store the last successful SDP somewhere, then intercept and drop the 488 and replay the last offer/answer with the stored SDPs. (Absolutely not something I would consider a proper solution…)
That will break more than it helps. But is there a way to “revert” back. Let’s say I store the last successful SDPs - can I transmit them to RTPengine to revert. If I have the dialog module I could very well save them within the context of the dialog.
Yeah that's exactly what I was talking about. You can replay the last successful rtpengine_offer()/_answer() with a stored SDP, and that would revert the call to the last state. That's what read_sdp_pv and write_sdp_pv config params are for.
Beautiful
Would be nice to have a “rtpengine_revert()” command that resets back to the state before the last INVITE, the last successful state with complete offer and answer.
That's what a theoretical handling of 488 etc would entail, yes…
Thank you for the quick answers. And thank you for all your work on RTPengine!
/O