comparison sip-in/retrans.c @ 143:bf3b19bf57e9

sip-in: bug in last commit
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 08 Oct 2022 19:05:53 -0800
parents bb9a75557f59
children
comparison
equal deleted inserted replaced
142:bb9a75557f59 143:bf3b19bf57e9
38 out_msg_finish(&msg); 38 out_msg_finish(&msg);
39 sip_tx_packet(&msg, &call->udp_sin); 39 sip_tx_packet(&msg, &call->udp_sin);
40 call->sip_tx_count++; 40 call->sip_tx_count++;
41 } else { 41 } else {
42 syslog(LOG_ERR, 42 syslog(LOG_ERR,
43 "Call in%06u: 100rel retrans timeout"); 43 "Call in%06u: 100rel retrans timeout",
44 call->in_tag_num);
44 call->overall_state = OVERALL_STATE_TEARDOWN; 45 call->overall_state = OVERALL_STATE_TEARDOWN;
45 disconnect_mncc(call, GSM48_CAUSE_LOC_PRN_S_LU, 46 disconnect_mncc(call, GSM48_CAUSE_LOC_PRN_S_LU,
46 GSM48_CC_CAUSE_INTERWORKING); 47 GSM48_CC_CAUSE_INTERWORKING);
47 disconnect_tmgw(call); 48 disconnect_tmgw(call);
48 strcpy(call->invite_fail, 49 strcpy(call->invite_fail,
55 fill_invite_200_resp(&msg, call); 56 fill_invite_200_resp(&msg, call);
56 sip_tx_packet(&msg, &call->udp_sin); 57 sip_tx_packet(&msg, &call->udp_sin);
57 call->sip_tx_count++; 58 call->sip_tx_count++;
58 } else { 59 } else {
59 syslog(LOG_ERR, 60 syslog(LOG_ERR,
60 "Call in%06u: 200 retrans timeout"); 61 "Call in%06u: 200 retrans timeout",
62 call->in_tag_num);
61 call->overall_state = OVERALL_STATE_TEARDOWN; 63 call->overall_state = OVERALL_STATE_TEARDOWN;
62 disconnect_mncc(call, GSM48_CAUSE_LOC_PRN_S_LU, 64 disconnect_mncc(call, GSM48_CAUSE_LOC_PRN_S_LU,
63 GSM48_CC_CAUSE_INTERWORKING); 65 GSM48_CC_CAUSE_INTERWORKING);
64 disconnect_tmgw(call); 66 disconnect_tmgw(call);
65 initiate_bye(call); 67 initiate_bye(call);
72 out_msg_finish(&msg); 74 out_msg_finish(&msg);
73 sip_tx_packet(&msg, &call->udp_sin); 75 sip_tx_packet(&msg, &call->udp_sin);
74 call->sip_tx_count++; 76 call->sip_tx_count++;
75 } else { 77 } else {
76 syslog(LOG_ERR, 78 syslog(LOG_ERR,
77 "Call in%06u: late error retrans timeout"); 79 "Call in%06u: late error retrans timeout",
80 call->in_tag_num);
78 call->sip_state = SIP_STATE_ENDED; 81 call->sip_state = SIP_STATE_ENDED;
79 sip_mark_end_time(call, sip_linger_error); 82 sip_mark_end_time(call, sip_linger_error);
80 transition_dead_sip(call); 83 transition_dead_sip(call);
81 } 84 }
82 break; 85 break;
85 fill_bye_out_msg(&msg, call); 88 fill_bye_out_msg(&msg, call);
86 sip_tx_packet(&msg, &call->udp_sin); 89 sip_tx_packet(&msg, &call->udp_sin);
87 call->sip_tx_count++; 90 call->sip_tx_count++;
88 } else { 91 } else {
89 syslog(LOG_ERR, 92 syslog(LOG_ERR,
90 "Call in%06u: BYE-out retrans timeout"); 93 "Call in%06u: BYE-out retrans timeout",
94 call->in_tag_num);
91 call->sip_state = SIP_STATE_ENDED; 95 call->sip_state = SIP_STATE_ENDED;
92 sip_mark_end_time(call, sip_linger_error); 96 sip_mark_end_time(call, sip_linger_error);
93 transition_dead_sip(call); 97 transition_dead_sip(call);
94 } 98 }
95 break; 99 break;