diff sip-in/invite.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 bfc97065bf51
line wrap: on
line diff
--- a/sip-in/invite.c	Wed Sep 28 16:32:13 2022 -0800
+++ b/sip-in/invite.c	Wed Sep 28 18:37:19 2022 -0800
@@ -411,7 +411,6 @@
 				GSM48_CC_CAUSE_INTERWORKING);
 		disconnect_tmgw(call);
 		sip_mark_end_time(call, sip_linger_error);
-		/* TODO: transition from TEARDOWN to DEAD_SIP */
 		return;
 	}
 	if (call->use_100rel) {
@@ -447,7 +446,6 @@
 				GSM48_CC_CAUSE_INTERWORKING);
 		disconnect_tmgw(call);
 		sip_mark_end_time(call, sip_linger_error);
-		/* TODO: transition from TEARDOWN to DEAD_SIP */
 		return;
 	}
 	sip_tx_packet(&resp, &call->udp_sin);
@@ -468,7 +466,7 @@
 		syslog(LOG_ERR, "INVITE late error response length exceeded");
 		call->sip_state = SIP_STATE_MSG_SIZE_ERR;
 		sip_mark_end_time(call, sip_linger_error);
-		/* TODO: transition from TEARDOWN to DEAD_SIP */
+		transition_dead_sip(call);
 		return;
 	}
 	out_msg_finish(&resp);