<p>For future reference, I ended up making a PR that will let us copy xavps, I personally felt stuck without a clean and concise way to reorder xavp.<br>
The solution I am proposing will not copy the entire xavp stack and it will not support nested xavp this could probably be added later automatically from the core since I am using the xavp.c clone function. Will see what we find while reviewing.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="496582981" data-permission-text="Issue title is private" data-url="https://github.com/kamailio/kamailio/issues/2070" data-hovercard-type="pull_request" data-hovercard-url="/kamailio/kamailio/pull/2070/hovercard" href="https://github.com/kamailio/kamailio/pull/2070">#2070</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/7?email_source=notifications&email_token=ABO7UZNPE5QXBC4SVOTXWILQKWXBRA5CNFSM4AYZNM5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7IK6BY#issuecomment-533769991">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZM3EXWJGN2JOQ6AUH3QKWXBRANCNFSM4AYZNM5A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZJEDG6ZKUUAE47QNO3QKWXBRA5CNFSM4AYZNM5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7IK6BY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/7?email_source=notifications\u0026email_token=ABO7UZNPE5QXBC4SVOTXWILQKWXBRA5CNFSM4AYZNM5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7IK6BY#issuecomment-533769991",
"url": "https://github.com/kamailio/kamailio/issues/7?email_source=notifications\u0026email_token=ABO7UZNPE5QXBC4SVOTXWILQKWXBRA5CNFSM4AYZNM5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7IK6BY#issuecomment-533769991",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>