[asterisk-commits] twilson: branch group/srtp_reboot r254004 - /team/group/srtp_reboot/res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 23 14:38:43 CDT 2010
Author: twilson
Date: Tue Mar 23 14:38:40 2010
New Revision: 254004
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=254004
Log:
It is ok to resend dtmf, in fact it is recommended
Modified:
team/group/srtp_reboot/res/res_srtp.c
Modified: team/group/srtp_reboot/res/res_srtp.c
URL: http://svnview.digium.com/svn/asterisk/team/group/srtp_reboot/res/res_srtp.c?view=diff&rev=254004&r1=254003&r2=254004
==============================================================================
--- team/group/srtp_reboot/res/res_srtp.c (original)
+++ team/group/srtp_reboot/res/res_srtp.c Tue Mar 23 14:38:40 2010
@@ -302,7 +302,7 @@
}
}
- if (res != err_status_ok) {
+ if (res != err_status_ok && res != err_status_replay_fail ) {
ast_debug(1, "SRTP unprotect: %s\n", srtp_errstr(res));
return -1;
}
@@ -320,7 +320,7 @@
memcpy(srtp->buf, *buf, *len);
- if ((res = srtp_protect(srtp->session, srtp->buf, len)) != err_status_ok) {
+ if ((res = srtp_protect(srtp->session, srtp->buf, len)) != err_status_ok && res != err_status_replay_fail) {
ast_debug(1, "SRTP protect: %s\n", srtp_errstr(res));
return -1;
}
More information about the asterisk-commits
mailing list