|
|
@ -25,6 +25,7 @@ |
|
|
#include "bencode.h" |
|
|
#include "bencode.h" |
|
|
#include "sdp.h" |
|
|
#include "sdp.h" |
|
|
#include "str.h" |
|
|
#include "str.h" |
|
|
|
|
|
#include "stun.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -233,6 +234,11 @@ static int stream_packet(struct streamrelay *r, char *b, int l, struct sockaddr_ |
|
|
m = c->callmaster; |
|
|
m = c->callmaster; |
|
|
smart_ntop_port(addr, fsin, sizeof(addr)); |
|
|
smart_ntop_port(addr, fsin, sizeof(addr)); |
|
|
|
|
|
|
|
|
|
|
|
if (r->stun && is_stun(b, l)) { |
|
|
|
|
|
if (!stun(b, l)) |
|
|
|
|
|
return 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (p->fd.fd == -1) { |
|
|
if (p->fd.fd == -1) { |
|
|
mylog(LOG_WARNING, LOG_PREFIX_C "RTP packet to port %u discarded from %s", |
|
|
mylog(LOG_WARNING, LOG_PREFIX_C "RTP packet to port %u discarded from %s", |
|
|
LOG_PARAMS_C(c), r->fd.localport, addr); |
|
|
LOG_PARAMS_C(c), r->fd.localport, addr); |
|
|
|