diff sip-in/bye_out.c @ 110:c1c94b7fc2e2

sip-in call clearing: DEAD_SIP transition implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 28 Sep 2022 18:37:19 -0800
parents 9b87894704eb
children 4e16aeafbfbf
line wrap: on
line diff
--- a/sip-in/bye_out.c	Wed Sep 28 16:32:13 2022 -0800
+++ b/sip-in/bye_out.c	Wed Sep 28 18:37:19 2022 -0800
@@ -73,7 +73,8 @@
 	if (rc < 0) {
 		syslog(LOG_ERR, "outgoing BYE request msg length exceeded");
 		call->sip_state = SIP_STATE_MSG_SIZE_ERR;
-		/* TODO: transition from TEARDOWN to DEAD_SIP */
+		sip_mark_end_time(call, sip_linger_error);
+		transition_dead_sip(call);
 		return;
 	}
 	sip_tx_packet(&msg, &call->udp_sin);
@@ -116,5 +117,6 @@
 			sip_mark_end_time(call, sip_linger_acked);
 		else
 			sip_mark_end_time(call, sip_linger_error);
+		transition_dead_sip(call);
 	}
 }