<p>Yes. As long as the script actually expects OPTIONS to an external domain, calling a loose_route() will route it properly.<br>
I usually do not allow OPTIONS passing through my Kamailio to external users but had to add this exception for this case, reason why I think a flag can be added to avoid this local loop and the extra logic in the script.</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/2011?email_source=notifications&email_token=ABO7UZO6PLZVWTXG2OM4DQTQAT43FA5CNFSM4IELLGRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2OO22I#issuecomment-513600873">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZM5OCLJ3VSY6U32TODQAT43FANCNFSM4IELLGRA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZLG5ZDY3MVMLKR5PUDQAT43FA5CNFSM4IELLGRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2OO22I.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/2011?email_source=notifications\u0026email_token=ABO7UZO6PLZVWTXG2OM4DQTQAT43FA5CNFSM4IELLGRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2OO22I#issuecomment-513600873",
"url": "https://github.com/kamailio/kamailio/issues/2011?email_source=notifications\u0026email_token=ABO7UZO6PLZVWTXG2OM4DQTQAT43FA5CNFSM4IELLGRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2OO22I#issuecomment-513600873",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>