comparison sip-in/bye_out.c @ 144:4e16aeafbfbf

sip-in: syslog non-200 responses to BYE
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 08 Oct 2022 19:06:24 -0800
parents c1c94b7fc2e2
children
comparison
equal deleted inserted replaced
143:bf3b19bf57e9 144:4e16aeafbfbf
107 syslog(LOG_ERR, 107 syslog(LOG_ERR,
108 "UAC received %03u response with unknown CSeq %u %.32s", 108 "UAC received %03u response with unknown CSeq %u %.32s",
109 msg->status_code, rid.cseq_num, rid.cseq_method); 109 msg->status_code, rid.cseq_num, rid.cseq_method);
110 return; 110 return;
111 } 111 }
112 if (msg->status_code != 200)
113 syslog(LOG_ERR, "Call in%06u: non-200 response to BYE: %.64s",
114 call->in_tag_num, msg->status_str);
112 if (msg->status_code < 200) 115 if (msg->status_code < 200)
113 return; 116 return;
114 if (call->sip_state == SIP_STATE_BYE_SENT) { 117 if (call->sip_state == SIP_STATE_BYE_SENT) {
115 call->sip_state = SIP_STATE_ENDED; 118 call->sip_state = SIP_STATE_ENDED;
116 if (msg->status_code <= 299) 119 if (msg->status_code <= 299)