mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
chan_iax2: Fix compilation issue due to funky merge
Don't mix declarations and code git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@434314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -12366,14 +12366,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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user