when I make the asterisk 16, met follows error:
[CC] res_pjsip_caller_id.c -> res_pjsip_caller_id.o
[LD] res_pjsip_caller_id.o -> res_pjsip_caller_id.so
[CC] res_srtp.c -> res_srtp.o
res_srtp.c: In function ‘srtp_errstr’:
res_srtp.c:125:7: error: ‘err_status_ok’ undeclared (first use in this function)
case err_status_ok:
^
res_srtp.c:125:7: note: each undeclared identifier is reported only once for each function it appears in
res_srtp.c:127:7: error: ‘err_status_fail’ undeclared (first use in this function)
case err_status_fail:
^
res_srtp.c:129:7: error: ‘err_status_bad_param’ undeclared (first use in this function)
case err_status_bad_param:
^
res_srtp.c:131:7: error: ‘err_status_alloc_fail’ undeclared (first use in this function)
case err_status_alloc_fail:
^
res_srtp.c:133:7: error: ‘err_status_dealloc_fail’ undeclared (first use in this function)
case err_status_dealloc_fail:
^
res_srtp.c:135:7: error: ‘err_status_init_fail’ undeclared (first use in this function)
case err_status_init_fail:
^
res_srtp.c:137:7: error: ‘err_status_terminus’ undeclared (first use in this function)
case err_status_terminus:
^
res_srtp.c:139:7: error: ‘err_status_auth_fail’ undeclared (first use in this function)
case err_status_auth_fail:
^
res_srtp.c:141:7: error: ‘err_status_cipher_fail’ undeclared (first use in this function)
case err_status_cipher_fail:
^
res_srtp.c:143:7: error: ‘err_status_replay_fail’ undeclared (first use in this function)
case err_status_replay_fail:
^
res_srtp.c:145:7: error: ‘err_status_replay_old’ undeclared (first use in this function)
case err_status_replay_old:
^
res_srtp.c:147:7: error: ‘err_status_algo_fail’ undeclared (first use in this function)
case err_status_algo_fail:
^
res_srtp.c:149:7: error: ‘err_status_no_such_op’ undeclared (first use in this function)
case err_status_no_such_op:
^
res_srtp.c:151:7: error: ‘err_status_no_ctx’ undeclared (first use in this function)
case err_status_no_ctx:
^
res_srtp.c:153:7: error: ‘err_status_cant_check’ undeclared (first use in this function)
case err_status_cant_check:
^
res_srtp.c:155:7: error: ‘err_status_key_expired’ undeclared (first use in this function)
case err_status_key_expired:
^
res_srtp.c: At top level:
res_srtp.c:267:29: error: unknown type name ‘crypto_policy_t’
static int policy_set_suite(crypto_policy_t *p, enum ast_srtp_suite suite)
^
res_srtp.c: In function ‘ast_srtp_policy_set_suite’:
res_srtp.c:322:2: warning: implicit declaration of function ‘policy_set_suite’ [-Wimplicit-function-declaration]
return policy_set_suite(&policy->sp.rtp, suite) | policy_set_suite(&policy->sp.rtcp, suite);
^
res_srtp.c: In function ‘ast_srtp_unprotect’:
res_srtp.c:385:14: error: ‘err_status_no_ctx’ undeclared (first use in this function)
if (res != err_status_no_ctx) {
^
res_srtp.c:401:28: error: ‘err_status_replay_old’ undeclared (first use in this function)
if (retry == 0 && res == err_status_replay_old) {
^
res_srtp.c:423:28: error: ‘err_status_ok’ undeclared (first use in this function)
if (res_srtp_create == err_status_ok) {
^
res_srtp.c:457:37: error: ‘err_status_replay_fail’ undeclared (first use in this function)
if (res != err_status_ok && res != err_status_replay_fail ) {
^
res_srtp.c: In function ‘ast_srtp_protect’:
res_srtp.c:505:117: error: ‘err_status_ok’ undeclared (first use in this function)
if ((res = rtcp ? srtp_protect_rtcp(srtp->session, localbuf, len) : srtp_protect(srtp->session, localbuf, len)) != err_status_ok && res != err_status_replay_fail) {
^
res_srtp.c:505:141: error: ‘err_status_replay_fail’ undeclared (first use in this function)
if ((res = rtcp ? srtp_protect_rtcp(srtp->session, localbuf, len) : srtp_protect(srtp->session, localbuf, len)) != err_status_ok && res != err_status_replay_fail) {
^
res_srtp.c: In function ‘ast_srtp_create’:
res_srtp.c:526:16: error: ‘err_status_ok’ undeclared (first use in this function)
if (status != err_status_ok) {
^
res_srtp.c: In function ‘ast_srtp_add_stream’:
res_srtp.c:584:67: error: ‘err_status_ok’ undeclared (first use in this function)
if (srtp_remove_stream(srtp->session, match->sp.ssrc.value) != err_status_ok) {
^
res_srtp.c: In function ‘ast_srtp_change_source’:
res_srtp.c:614:2: error: unknown type name ‘err_status_t’
err_status_t status;
^
res_srtp.c: In function ‘res_srtp_init’:
res_srtp.c:1224:21: error: ‘err_status_ok’ undeclared (first use in this function)
if (srtp_init() != err_status_ok) {
^
make[1]: *** [res_srtp.o] Error 1
make: *** [res] Error 2