/* 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 */