Fixed CDR writing for replicated dialogs
(cherry picked from commit 128d3777f4a11a21eabb3e94a720c223bf0cf654)