Hello, thanks, which version of Kamailio do you use?
Cheers, Henning -----Original Message----- From: whglee--- via sr-users <[email protected]> Sent: Tuesday, October 7, 2025 8:22 PM To: [email protected] Cc: [email protected] Subject: [SR-Users] Re: dynamic selection of authentication algorithm The auth_algorithm("SHA-256") appears to be not working. Here is the auth debug logs: Oct 6 12:34:16 mfr-1-lv-104 /usr/sbin/kamailio[3803991]: DEBUG: auth [api.c:87]: pre_auth(): digest-algo: SHA-256 parsed value: 4 Oct 6 12:34:16 mfr-1-lv-104 /usr/sbin/kamailio[3803991]: DEBUG: <core> [core/mem/q_malloc.c:402]: qm_malloc(): qm_malloc(0x7fa3f15ff010, 8) called from auth_db: authorize.c: get_ha1(143) Oct 6 12:34:16 mfr-1-lv-104 /usr/sbin/kamailio[3803991]: DEBUG: <core> [core/mem/q_malloc.c:515]: qm_free(): qm_free(0x7fa3f15ff010, 0x7fa3f1783470), called from auth_db: authorize.c: get_ha1(184) Oct 6 12:34:16 mfr-1-lv-104 /usr/sbin/kamailio[3803991]: DEBUG: <core> [core/mem/q_malloc.c:562]: qm_free(): freeing frag. 0x7fa3f1783430 alloc'ed from auth_db: authorize.c: get_ha1(143) Oct 6 12:34:16 mfr-1-lv-104 /usr/sbin/kamailio[3803991]: DEBUG: auth_db [authorize.c:201]: get_ha1(): HA1 string calculated: 41a542bc50d112b389d228a7684c60f9 Oct 6 12:34:16 mfr-1-lv-104 /usr/sbin/kamailio[3803991]: DEBUG: auth [api.c:292]: auth_check_response(): Our result = '8c2b15a4041ca0855c3d01b592f860d2786ce7d2f661480ccee214105ff4ba4f' Notice the "HA1 string calculated" value is only 32 bytes long. So it looks like it's still using MD5 to calculate the hash string. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender! __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
