chan_iax2: Fix mixup of code/declarations

Interestingly enough, clang doesn't care about this.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@434334 65c4cc65-6c06-0410-ace0-fbb531ad65f3
changes/61/61/1
Matthew Jordan 10 years ago
parent e61628db7b
commit ed191ca32c

@ -12472,14 +12472,15 @@ static int iax2_poke_peer(struct iax2_peer *peer, int heldcall)
/* 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);
}

Loading…
Cancel
Save