Author: mjordan
Date: Wed Apr  8 09:53:43 2015
New Revision: 434334

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=434334
Log:
chan_iax2: Fix mixup of code/declarations

Interestingly enough, clang doesn't care about this.

Modified:
    branches/11/channels/chan_iax2.c

Modified: branches/11/channels/chan_iax2.c
URL: 
http://svnview.digium.com/svn/asterisk/branches/11/channels/chan_iax2.c?view=diff&rev=434334&r1=434333&r2=434334
==============================================================================
--- branches/11/channels/chan_iax2.c (original)
+++ branches/11/channels/chan_iax2.c Wed Apr  8 09:53:43 2015
@@ -12472,14 +12472,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);
        }


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to