https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r44819 | file | 2006-10-10 13:21:44 -0400 (Tue, 10 Oct 2006) | 2 lines
Move some stuff around so that a NOTIFY dialog won't hang around until the end of the world under certain circumstances
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44820
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
/* We don't understand this event. */
/* Here's room to implement incoming voicemail notifications :-) */
transmit_response(p, "489 Bad event", req);
- if (!p->lastinvite)
- sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);
- return -1;
+ res = -1;
} else {
/* Save nesting depth for now, since there might be other events we will
support in the future */
/* Confirm that we received this packet */
transmit_response(p, "200 OK", req);
- return res;
};
+
+ if (!p->lastinvite)
+ sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);
+
+ return res;
}
/*! \brief Handle incoming OPTIONS request */