aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtp.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-17 06:36:41 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-17 06:36:41 +0000
commit24fa5d47663e5c0498f8c8f4f12817c1175f4985 (patch)
tree881a9e7361806e8a3a0cc6b6cd23cf44bf387ff2 /main/rtp.c
parent50daac4043db2cc7b4d20498f1107a4412f77e5e (diff)
Return the correct result when directly writing out a packet so that the core doesn't then decide to handle it the regular way again. (issue #8833 reported by rcourtna)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51182 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r--main/rtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/rtp.c b/main/rtp.c
index ec4a93ab9..7cce2b3ad 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -1065,11 +1065,11 @@ static int bridge_p2p_rtp_write(struct ast_rtp *rtp, struct ast_rtp *bridged, un
ast_log(LOG_DEBUG, "RTP NAT: Can't write RTP to private address %s:%d, waiting for other end to send audio...\n", ast_inet_ntoa(bridged->them.sin_addr), ntohs(bridged->them.sin_port));
ast_set_flag(bridged, FLAG_NAT_INACTIVE_NOWARN);
}
- return -1;
+ return 0;
} else if (rtp_debug_test_addr(&bridged->them))
ast_verbose("Sent RTP P2P packet to %s:%d (type %-2.2d, len %-6.6u)\n", ast_inet_ntoa(bridged->them.sin_addr), ntohs(bridged->them.sin_port), bridged_payload, len - hdrlen);
- return -1;
+ return 0;
}
struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)