} else if ((resp >= 100) && (resp < 200)) {
if (sipmethod == SIP_INVITE) {
sip_cancel_destroy(p);
- if (!ast_strlen_zero(get_header(req, "Content-Type")))
+ if (find_sdp(req))
process_sdp(p, req);
if (p->owner) {
/* Queue a progress frame */
return 0;
}
/* Process the SDP portion */
- if (!ast_strlen_zero(get_header(req, "Content-Type"))) {
+ if (find_sdp(req)) {
if (process_sdp(p, req)) {
transmit_response(p, "488 Not acceptable here", req);
ast_set_flag(p, SIP_NEEDDESTROY);
if (seqno == p->pendinginvite) {
p->pendinginvite = 0;
__sip_ack(p, seqno, FLAG_RESPONSE, 0);
- if (!ast_strlen_zero(get_header(req, "Content-Type"))) {
+ if (find_sdp(req)) {
if (process_sdp(p, req))
return -1;
}