Skip to content
Snippets Groups Projects
Commit c2b4c7a9 authored by Olle Johansson's avatar Olle Johansson
Browse files

Issue #8272 imported from 1.2/1.4 - Let the peerpoke system destroy it's own packets, please.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47598 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent fb211aa6
Branches
Tags
No related merge requests found
...@@ -1925,7 +1925,10 @@ static int retrans_pkt(void *data) ...@@ -1925,7 +1925,10 @@ static int retrans_pkt(void *data)
ast_channel_unlock(pkt->owner->owner); ast_channel_unlock(pkt->owner->owner);
} else { } else {
/* If no channel owner, destroy now */ /* If no channel owner, destroy now */
ast_set_flag(&pkt->owner->flags[0], SIP_NEEDDESTROY);
/* Let the peerpoke system expire packets when the timer expires for poke_noanswer */
if (pkt->method != SIP_OPTIONS)
ast_set_flag(&pkt->owner->flags[0], SIP_NEEDDESTROY);
} }
} }
/* Remove the packet */ /* Remove the packet */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment