[asterisk-commits] file: branch 1.4 r51182 -
/branches/1.4/main/rtp.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Jan 16 23:36:42 MST 2007
Author: file
Date: Wed Jan 17 00:36:41 2007
New Revision: 51182
URL: http://svn.digium.com/view/asterisk?view=rev&rev=51182
Log:
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)
Modified:
branches/1.4/main/rtp.c
Modified: branches/1.4/main/rtp.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/rtp.c?view=diff&rev=51182&r1=51181&r2=51182
==============================================================================
--- branches/1.4/main/rtp.c (original)
+++ branches/1.4/main/rtp.c Wed Jan 17 00:36:41 2007
@@ -1065,11 +1065,11 @@
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)
More information about the asterisk-commits
mailing list