|
|
@ -10103,6 +10103,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
|
|
|
|
if (required_profile) { /* They require something */
|
|
|
|
if (required_profile) { /* They require something */
|
|
|
|
/* At this point we support no extensions, so fail */
|
|
|
|
/* At this point we support no extensions, so fail */
|
|
|
|
transmit_response_with_unsupported(p, "420 Bad extension", req, required);
|
|
|
|
transmit_response_with_unsupported(p, "420 Bad extension", req, required);
|
|
|
|
|
|
|
|
if (!p->lastinvite)
|
|
|
|
ast_set_flag(p, SIP_NEEDDESTROY);
|
|
|
|
ast_set_flag(p, SIP_NEEDDESTROY);
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
|
|
@ -10136,6 +10137,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
|
|
|
|
if (!strcasecmp(get_header(req, "Content-Type"), "application/sdp")) {
|
|
|
|
if (!strcasecmp(get_header(req, "Content-Type"), "application/sdp")) {
|
|
|
|
if (process_sdp(p, req)) {
|
|
|
|
if (process_sdp(p, req)) {
|
|
|
|
transmit_response(p, "488 Not acceptable here", req);
|
|
|
|
transmit_response(p, "488 Not acceptable here", req);
|
|
|
|
|
|
|
|
if (!p->lastinvite)
|
|
|
|
ast_set_flag(p, SIP_NEEDDESTROY);
|
|
|
|
ast_set_flag(p, SIP_NEEDDESTROY);
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|