<p>Hello, just for the record - the 5.1 branch is end of life, you should upgrade to a newer supported stable branch.<br>
Are your errors only related to the MY_CUSTOM_FLAG variable injection? Does it work reliable if you build directly from source in your CI/CD environment, or fails at well? I would try to tackle this issue by the usual process, step by step trying to change different points in the environment to find the one that causes the problem.</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/2228?email_source=notifications&email_token=ABO7UZJI53GI2SQ26IVV2RDREVUWJA5CNFSM4K2KDUOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM5D3HI#issuecomment-591019421">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZK5HLADQ6R4DU6RAYLREVUWJANCNFSM4K2KDUOA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZIJJSGO5AHSWAS2MBLREVUWJA5CNFSM4K2KDUOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM5D3HI.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/2228?email_source=notifications\u0026email_token=ABO7UZJI53GI2SQ26IVV2RDREVUWJA5CNFSM4K2KDUOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM5D3HI#issuecomment-591019421",
"url": "https://github.com/kamailio/kamailio/issues/2228?email_source=notifications\u0026email_token=ABO7UZJI53GI2SQ26IVV2RDREVUWJA5CNFSM4K2KDUOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM5D3HI#issuecomment-591019421",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>