Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
SIP diversion header available in RVD #1201
It allows to have the value of SIP DIversion Header in a new RVD variable named $core_diversion. Also, it publish the variable $core_ForwardedFrom with the number so it may be used (only if the variable is empty).
We have tested with Voxbone, returning the following values:
A sipp scenario I've used to test it: https://gist.github.com/antonmry/cbb9383e4199fe294cbcb01d6ba1e573
@antonmry, indeed the direction SipHeader_diversion is forwarded to RVD nicely as you describe. The behaviour was not really expected since it relies on the fact that we don't do much of sanitization for SipHeader_* paramaters from the RVD side.
Anyway, let's not bother now about it. It's clear from my side (RVD). @gvagenas , please proceed to reviewing.