aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-20 19:23:08 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-20 19:23:08 +0000
commite502366503a781fa694680c3a972827c314e06fd (patch)
tree2a29df9e37621173c6a8b5065691b12da59c7e64 /rtp.c
parent6e032f5e851eba507c30463fe6c5413531d96065 (diff)
Don't spam 3389 warning message
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2720 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/rtp.c b/rtp.c
index a6c630054..cc7383101 100755
--- a/rtp.c
+++ b/rtp.c
@@ -56,6 +56,8 @@ struct rtpPayloadType {
#define MAX_RTP_PT 256
+#define FLAG_3389_WARNING (1 << 0)
+
struct ast_rtp {
int s;
char resp;
@@ -71,6 +73,7 @@ struct ast_rtp {
int dtmfcount;
unsigned int dtmfduration;
int nat;
+ int flags;
struct sockaddr_in us;
struct sockaddr_in them;
struct timeval rxcore;
@@ -272,7 +275,10 @@ static struct ast_frame *process_rfc3389(struct ast_rtp *rtp, unsigned char *dat
#if 0
printf("RFC3389: %d bytes, format is %d\n", len, rtp->lastrxformat);
#endif
- ast_log(LOG_NOTICE, "RFC3389 support incomplete. Turn off on client if possible\n");
+ if (!(rtp->flags & FLAG_3389_WARNING)) {
+ ast_log(LOG_NOTICE, "RFC3389 support incomplete. Turn off on client if possible\n");
+ rtp->flags |= FLAG_3389_WARNING;
+ }
if (!rtp->lastrxformat)
return NULL;
switch(rtp->lastrxformat) {