<p>I worked around this issue (it's more a sql azure thing than kamailio) by creating a user on the dB and setting default language, db and schema on the login that was enough to get it to connect.</p>
<p>Be warned though using sql azure with either freetds or the ms Linux driver I experienced random hangs of kamailio related to odbc handling, was unable to find root cause and it seemed unique to sql azure as a local sql server instance worked without issue. My working theory was that the sql azure drops a connection to a node from its load balancer somewhere inside that black box but kamailio attempts to reuse that connection and hangs. Also due to how sql azure works I found query time to variable as well and based on dB size the number of open connections seems limiting.  To overcome this I ended up writing a simple proxy Web API in. Net core which ran on local host And cached results to a local redis instance which gave consistent sub 10ms responses</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/1993?email_source=notifications&email_token=ABO7UZOICXFBBG3CYOEDM3DP4MQWRA5CNFSM4H3LN6E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYSXLCI#issuecomment-505771401">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNI4JAJPJJP7LBHDPDP4MQWRANCNFSM4H3LN6EQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZMQIUQ3F6K2LN5TDPDP4MQWRA5CNFSM4H3LN6E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYSXLCI.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/1993?email_source=notifications\u0026email_token=ABO7UZOICXFBBG3CYOEDM3DP4MQWRA5CNFSM4H3LN6E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYSXLCI#issuecomment-505771401",
"url": "https://github.com/kamailio/kamailio/issues/1993?email_source=notifications\u0026email_token=ABO7UZOICXFBBG3CYOEDM3DP4MQWRA5CNFSM4H3LN6E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYSXLCI#issuecomment-505771401",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>