diff options
-rw-r--r-- | src/stream.c | 6 | ||||
-rw-r--r-- | src/ua.c | 3 |
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, @@ -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"); |