From ccd5fe14a26f1b46e754da10bfb0ab01c07db755 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 23 May 2019 22:36:26 +0200 Subject: [PATCH] Improve --- README.md | 6 ++++-- src/packet.c | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c6cf2d8..2f761ca 100644 --- a/README.md +++ b/README.md @@ -130,12 +130,14 @@ Go to manage account. Add a new SIP proxy. ``` -Username: @127.13.3.7: -Proxy: 127.13.3.7: +Username: @127.13.3.7:5061 +Proxy: 127.13.3.7:5060 Leave the rest empty. Uncheck all the checkboxes. ``` +You also need to say to Linphone that you are behind a NAT and put `127.13.3.7` as your public IP address. + ## Docker build ``` diff --git a/src/packet.c b/src/packet.c index a779984..d9fa404 100644 --- a/src/packet.c +++ b/src/packet.c @@ -102,6 +102,7 @@ enum FD_STATE read_packet_from_udp (int fd, struct buffer_packet* bp, struct udp if ((int)nread > (int)udp_packet_size) return FDS_ERR; if (nread == -1 && errno == EAGAIN) return FDS_AGAIN; + if (nread == -1 && errno == EAGAIN) return FDS_AGAIN; if (nread == -1) return FDS_ERR; udp_t->set = 1;