[asterisk-commits] mjordan: branch 13 r434314 - /branches/13/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 8 07:33:51 CDT 2015


Author: mjordan
Date: Wed Apr  8 07:33:49 2015
New Revision: 434314

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=434314
Log:
chan_iax2: Fix compilation issue due to funky merge

Don't mix declarations and code

Modified:
    branches/13/channels/chan_iax2.c

Modified: branches/13/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/channels/chan_iax2.c?view=diff&rev=434314&r1=434313&r2=434314
==============================================================================
--- branches/13/channels/chan_iax2.c (original)
+++ branches/13/channels/chan_iax2.c Wed Apr  8 07:33:49 2015
@@ -12366,14 +12366,15 @@
 	/* And send the poke */
 	ast_mutex_lock(&iaxsl[callno]);
 	if (iaxs[callno]) {
-		/* Speed up retransmission times for this qualify call */
-		iaxs[callno]->pingtime = peer->maxms / 4 + 1;
-		iaxs[callno]->peerpoke = peer;
-
 		struct iax_ie_data ied = {
 			.buf = { 0 },
 			.pos = 0,
 		};
+
+		/* Speed up retransmission times for this qualify call */
+		iaxs[callno]->pingtime = peer->maxms / 4 + 1;
+		iaxs[callno]->peerpoke = peer;
+
 		add_empty_calltoken_ie(iaxs[callno], &ied); /* this _MUST_ be the last ie added */
 		send_command(iaxs[callno], AST_FRAME_IAX, IAX_COMMAND_POKE, 0, ied.buf, ied.pos, -1);
 	}




More information about the asterisk-commits mailing list