On 19.07.17 11:00, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
OK, so it is creating a new branch structure. That could explain why the branch flags from previous INVITE are not there. If it is only the branch flags missing (and the headers changes are already propagated), I expect to be an easy patch. I will look into it very soon if nobody else does it meanwhile.
I did more checking and looks like only branch flags are gone. In addition to adding headers and setting branch flags, branch route adds record-route params using add_rr_param calls and also those params are preserved in the second INVITE.
Sounded rather simple, so I did a quick search in the code and just pushed a patch for it -- very small, but hopefully it fixes this. If all tests are fine for you, then you can backport as needed to stable branches.
Cheers, Daniel