summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-xchannels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3576e966c..a5fdc4980 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -7918,6 +7918,8 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
receive_message(p, req);
}
transmit_response(p, "200 OK", req);
+ if (!p->lastinvite)
+ ast_set_flag(p, SIP_NEEDDESTROY);
} else if (!strcasecmp(cmd, "SUBSCRIBE")) {
if (!ignore) {
/* Use this as the basis */