diff sip-manual-out/disc_cmd.c @ 192:f8a33603288f

sip-manual-out: generate outgoing RTP stream with PCM silence
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 17 Mar 2023 13:45:31 -0800
parents a36b731bfef9
children 1f9a6cede2c5
line wrap: on
line diff
--- a/sip-manual-out/disc_cmd.c	Fri Mar 17 12:07:17 2023 -0800
+++ b/sip-manual-out/disc_cmd.c	Fri Mar 17 13:45:31 2023 -0800
@@ -14,12 +14,14 @@
 
 extern struct sockaddr_in sip_dest_sin;
 extern char to_uri[];
+extern int rtp_out_enable;
 
 send_cancel_req()
 {
 	struct sip_msg_out msg;
 	int rc;
 
+	rtp_out_enable = 0;
 	rc = start_request_out_msg(&msg, "CANCEL", to_uri);
 	if (rc < 0) {
 msg_size_err:	fprintf(stderr, "composing CANCEL message: size error\n");
@@ -38,6 +40,7 @@
 	struct sip_msg_out msg;
 	int rc;
 
+	rtp_out_enable = 0;
 	rc = start_request_out_msg(&msg, "BYE", to_uri);
 	if (rc < 0) {
 msg_size_err:	fprintf(stderr, "composing BYE message: size error\n");