diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index cf758c49ee1a123bc98adf8ac648c9c0519f9e22..52bca55bfa45ae2efd95a8437ba1eedcd6eef9c1 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -6896,7 +6896,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action
 	}
 	if (!newjointcapability) {
 		/* If T.38 was not negotiated either, totally bail out... */
-		if (!p->t38.jointcapability || !p->t38.peercapability) {
+		if (!p->t38.jointcapability || !udptlportno) {
 			ast_log(LOG_NOTICE, "No compatible codecs, not accepting this offer!\n");
 			/* Do NOT Change current setting */
 			return -1;