[svn-commits] bbryant: branch bbryant/iax2_rotation r115355 - /team/bbryant/iax2_rotation/c...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue May 6 12:41:24 CDT 2008
Author: bbryant
Date: Tue May 6 12:41:24 2008
New Revision: 115355
URL: http://svn.digium.com/view/asterisk?view=rev&rev=115355
Log:
Oops. It's always good to terminate recursion.
Modified:
team/bbryant/iax2_rotation/channels/chan_iax2.c
Modified: team/bbryant/iax2_rotation/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/team/bbryant/iax2_rotation/channels/chan_iax2.c?view=diff&rev=115355&r1=115354&r2=115355
==============================================================================
--- team/bbryant/iax2_rotation/channels/chan_iax2.c (original)
+++ team/bbryant/iax2_rotation/channels/chan_iax2.c Tue May 6 12:41:24 2008
@@ -4603,6 +4603,8 @@
char dgststr[33] = "";
int res = 0, i;
+ pvt->rotateid = iax2_sched_add(sched, ((ast_random() % 4) + 2) * 3600000, iax2_send_rotate, pvt);
+
memset(&ied, 0, sizeof(ied));
snprintf(challenge, sizeof(challenge), "%x", (int)ast_random());
@@ -4620,8 +4622,6 @@
ast_log(LOG_NOTICE, "iax2_send_rotate: sending new ecx key '%s'", dgststr);
ast_aes_encrypt_key(digest, &pvt->ecx);
-
- pvt->rotateid = iax2_sched_add(sched, ((ast_random() % 4) + 2) * 3600000, iax2_send_rotate, pvt);
return res;
}
More information about the svn-commits
mailing list