FreeCalypso > hg > themwi-system-sw
comparison sip-in/call_clear.c @ 111:7a4d4b8d5f04
sip-in call clearing: unlink and free implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 28 Sep 2022 18:45:16 -0800 |
parents | c1c94b7fc2e2 |
children | bfc97065bf51 |
comparison
equal
deleted
inserted
replaced
110:c1c94b7fc2e2 | 111:7a4d4b8d5f04 |
---|---|
42 return; | 42 return; |
43 if (call->mgw_xact) | 43 if (call->mgw_xact) |
44 return; | 44 return; |
45 call->overall_state = OVERALL_STATE_DEAD_SIP; | 45 call->overall_state = OVERALL_STATE_DEAD_SIP; |
46 } | 46 } |
47 | |
48 void | |
49 clear_dead_sip_calls() | |
50 { | |
51 struct call *call, **pp; | |
52 | |
53 for (pp = &call_list; *pp; ) { | |
54 call = *pp; | |
55 if (call->overall_state == OVERALL_STATE_DEAD_SIP && | |
56 call->sip_clear_time >= cur_event_time.tv_sec) { | |
57 *pp = call->next; | |
58 free(call); | |
59 continue; | |
60 } | |
61 pp = &call->next; | |
62 } | |
63 } |