This commit is contained in:
trimill 2023-12-14 13:05:17 -05:00
parent 19ae6e9dcb
commit b2ca9fb81a
No known key found for this signature in database
GPG key ID: 5FCAB0BC7C851657

5
teld.c
View file

@ -157,6 +157,7 @@ void client_pickup(struct call_buf *call_buf, int stream) {
union tel_sa_any remote_addr;
socklen_t remote_addr_len = sizeof(union tel_sa_any);
res = tel_read_sockaddr(stream, &remote_addr, &remote_addr_len);
if(res < 0) goto err;
int idx = call_buf_search(call_buf, &remote_addr);
if(idx < 0) {
@ -175,6 +176,10 @@ void client_pickup(struct call_buf *call_buf, int stream) {
};
close(fd);
return;
err:
printf("error picking up call: %s\n", strerror(errno));
tel_write_err(stream, strerror(errno));
}
void client_call(int stream, struct config cfg) {