aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-18 20:43:42 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-18 20:43:42 +0000
commit6e053a7aa604c833128d72efbcbf9901592ffeb0 (patch)
treea912b03900f887febfb5029b49a86a98669728fe /channels/chan_sip.c
parentf4f91d667ade903af0b2bcb713ba09cfdd12c921 (diff)
fix up a few more places to find the SDP properly (fallout from fix for #7124)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@28384 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index da18e06f9..6c4091c16 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -10045,7 +10045,7 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
} 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 */
@@ -10425,7 +10425,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
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);
@@ -11162,7 +11162,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
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;
}