summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-06-18 10:31:24 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-06-18 10:31:24 +0200
commit8ef4c56ae0a0d18ceb77a3e62629ac216cab8ebd (patch)
treedd77d9c7e1774ea5ff4ede3838b6170f81bbb989
parent60d015f04980aafcfbbb2f4a436c848ea0c1d0fa (diff)
added some extra logging
-rw-r--r--src/stream.c6
-rw-r--r--src/ua.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/src/stream.c b/src/stream.c
index 9243fe2..9dc572f 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -195,8 +195,12 @@ static int stream_sock_alloc(struct stream *s, int af)
err = rtp_listen(&s->rtp, IPPROTO_UDP, &laddr,
s->cfg.rtp_ports.min, s->cfg.rtp_ports.max,
s->rtcp, rtp_recv, rtcp_handler, s);
- if (err)
+ if (err) {
+ warning("stream: rtp_listen failed: af=%s ports=%u-%u"
+ " (%m)\n", net_af2name(af),
+ s->cfg.rtp_ports.min, s->cfg.rtp_ports.max, err);
return err;
+ }
tos = s->cfg.rtp_tos;
(void)udp_setsockopt(rtp_sock(s->rtp), IPPROTO_IP, IP_TOS,
diff --git a/src/ua.c b/src/ua.c
index 46b63b7..d87f11d 100644
--- a/src/ua.c
+++ b/src/ua.c
@@ -448,6 +448,9 @@ static void handle_options(struct ua *ua, const struct sip_msg *msg)
struct mbuf *desc = NULL;
int err;
+ debug("ua: incoming OPTIONS message from %r (%J)\n",
+ &msg->from.auri, &msg->src);
+
err = ua_call_alloc(&call, ua, VIDMODE_ON, NULL, NULL, NULL);
if (err) {
(void)sip_treply(NULL, uag.sip, msg, 500, "Call Error");