Remove hack: VoLTE support for Asterisk

This commit is contained in:
Andreas Eversberg 2024-04-23 12:11:25 +02:00
parent ce602d5264
commit 302754c049
1 changed files with 1 additions and 6 deletions

View File

@ -313,12 +313,7 @@ static pj_status_t set_outbound_authentication_credentials(pjsip_auth_clt_sess *
pj_cstr(&auth_cred.scheme, "digest");
switch (auth->type) {
case AST_SIP_AUTH_TYPE_USER_PASS:
if (volte_auth == (void *)0x1)
pj_cstr(&auth_cred.data, "");
else if (volte_auth)
pj_strset(&auth_cred.data, (char *)volte_auth, 8);
else
pj_cstr(&auth_cred.data, auth->auth_pass);
pj_cstr(&auth_cred.data, auth->auth_pass);
auth_cred.data_type = PJSIP_CRED_DATA_PLAIN_PASSWD;
break;
case AST_SIP_AUTH_TYPE_MD5: