Asterisk 22 trying to activate :aes_256

been trying lately to enable aes_256 that turned to not being enabled by default: unsupported crypto suite error.
so i tried this:

** If you want to enable one of those defines, please, go for**
**			 * CFLAGS='-DENABLE_SRTP_AES_GCM' ./configure && sudo make install**
**			 */**
				{ len, 0, 30 },
#if defined(HAVE_SRTP_GCM) && defined(ENABLE_SRTP_AES_GCM)
				{ AST_SRTP_CRYPTO_TAG_16, 0, AES_128_GCM_KEYSIZE_WSALT },
#endif
#if defined(HAVE_SRTP_256) && defined(ENABLE_SRTP_AES_256)
				{ len, AST_SRTP_CRYPTO_AES_256, 46 },
#endif
#if defined(HAVE_SRTP_GCM) && defined(ENABLE_SRTP_AES_GCM) && defined(ENABLE_SRTP_AES_256)
				{ AST_SRTP_CRYPTO_TAG_16, AST_SRTP_CRYPTO_AES_256, AES_256_GCM_KEYSIZE_WSALT },
#endif
#if defined(HAVE_SRTP_192) && defined(ENABLE_SRTP_AES_192)
				{ len, AST_SRTP_CRYPTO_AES_192, 38 },
#endif

i reconfigured my asterisk with this cflag and then tried to make the call, but it is still not accepted, probably the message of unsupported crypto suite has vanished but i realized that sdp is not accepting my aes_256 from the endpoints.

1 Like