diff sip-manual-out/uac.c @ 214:10a4b0b0a239

sip-manual-out: parse SDP for all responses, not just 200
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 08 Jul 2023 13:32:32 -0800
parents 6ac96217c442
children
line wrap: on
line diff
--- a/sip-manual-out/uac.c	Sun Jun 25 14:16:53 2023 -0800
+++ b/sip-manual-out/uac.c	Sat Jul 08 13:32:32 2023 -0800
@@ -103,11 +103,12 @@
 		else
 			printf("To tag exceeds length limit!\n");
 	}
+	extract_resp_sdp(msg);
 	if (msg->status_code >= 200) {
 		printf("Sending ACK\n");
 		send_ack(sin);
 		if (msg->status_code <= 299)
-			extract_resp_sdp(msg);
+			invite_200_rtpout();
 	}
 }