FreeCalypso > hg > themwi-system-sw
diff sip-in/call_list.c @ 68:709b78a4ebf0
sip-in: implement retransmission of INVITE responses
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 18 Sep 2022 21:56:20 -0800 |
parents | e5aee661e3b2 |
children | 915f0f397fb6 |
line wrap: on
line diff
--- a/sip-in/call_list.c Sun Sep 18 16:55:01 2022 -0800 +++ b/sip-in/call_list.c Sun Sep 18 21:56:20 2022 -0800 @@ -52,3 +52,19 @@ } } } + +void +scan_call_list_for_timeouts(retrans) + int *retrans; +{ + struct call *call; + + for (call = call_list; call; call = call->next) { + switch (call->sip_state) { + case SIP_STATE_INVITE_200: + case SIP_STATE_INVITE_ERR: + *retrans = 1; + break; + } + } +}