History-Info to Diversion conversion using spl-plugin
Hi all,
Has anyone tried converting the History-Info header into Diversion by using the recent SPL plugin?
I have plugin version 1.1 configured but I'm a bit confused about the result. Here's an example:
History-Info: <sip:+xxxxxxxxx74@lab.local;user=phone?reason=sip%3bcause%3d302%3btext%3d%22Moved%20Temporarily%22>;index=1,<sip:+yyyyyyyyy22@lab.local;user=phone>;index=2
gets converted to:
Diversion: <sip:+yyyyyyyyy22@10.10.10.20;user=phone>;index=2;reason;counter=1;privacy=off
Diversion: <sip:+xxxxxxxxx74@10.10.10.20;user=phone?reason=sip%3bcause%3d302%3btext%3d%22Moved%20Temporarily%22>;index=1;reason=unconditional;counter=1;privacy=off
I already went through RFC6044 but it does not help a lot.