comparison sip-in/main.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 372209628038
children 6aa63cf4620a
comparison
equal deleted inserted replaced
110:c1c94b7fc2e2 111:7a4d4b8d5f04
73 continue; 73 continue;
74 syslog(LOG_CRIT, "select: %m"); 74 syslog(LOG_CRIT, "select: %m");
75 exit(1); 75 exit(1);
76 } 76 }
77 gettimeofday(&cur_event_time, 0); 77 gettimeofday(&cur_event_time, 0);
78 if (rc == 0) { 78 if (rc) {
79 if (gsm_is_connected && FD_ISSET(gsm_socket, &fds))
80 gsm_socket_select();
81 if (mgw_is_connected && FD_ISSET(mgw_socket, &fds))
82 mgw_socket_select();
83 if (FD_ISSET(sip_socket, &fds))
84 sip_socket_select();
85 } else if (need_retrans)
79 run_periodic_retrans(); 86 run_periodic_retrans();
80 continue; 87 clear_dead_sip_calls();
81 }
82 if (gsm_is_connected && FD_ISSET(gsm_socket, &fds))
83 gsm_socket_select();
84 if (mgw_is_connected && FD_ISSET(mgw_socket, &fds))
85 mgw_socket_select();
86 if (FD_ISSET(sip_socket, &fds))
87 sip_socket_select();
88 } 88 }
89 } 89 }