diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3118d60688c6bda304f6811f2566aae7e9756f88..66b1fced710924f25b70deff3f37b00f92447d37 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4542,9 +4542,9 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
 					ast_verbose("Found RTP video format %d\n", codec);
 				ast_rtp_set_m_type(newvideortp, codec);
 			}
-		} else if (p->udptl && (sscanf(m, "image %d udptl t38 %n", &x, &len) == 1)) {
+		} else if (p->udptl && ((sscanf(m, "image %d udptl t38%n", &x, &len) == 1)) {
 			if (debug)
-				ast_verbose("Got T.38 offer in SDP\n");
+				ast_verbose("Got T.38 offer in SDP in dialog %s\n", p->callid);
 			udptlportno = x;
 			
 			if (p->owner && p->lastinvite) {