aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-20 22:01:53 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-20 22:01:53 +0000
commitb0e90f202d6b6fe07dbece6a437cfa8afebdc95b (patch)
tree671d8650b6e48650564af2af9e0f25ce7bfb949b /rtp.c
parent50b8702a9c4b3678c87d6db0238c6efc9f267992 (diff)
Don't destory rtp until destroy, use rtp_stop instead
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@668 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rtp.c b/rtp.c
index faa39c741..555b7cf1c 100755
--- a/rtp.c
+++ b/rtp.c
@@ -586,6 +586,12 @@ void ast_rtp_get_us(struct ast_rtp *rtp, struct sockaddr_in *us)
memcpy(us, &rtp->us, sizeof(rtp->us));
}
+void ast_rtp_stop(struct ast_rtp *rtp)
+{
+ memset(&rtp->them.sin_addr, 0, sizeof(rtp->them.sin_addr));
+ memset(&rtp->them.sin_port, 0, sizeof(rtp->them.sin_port));
+}
+
void ast_rtp_destroy(struct ast_rtp *rtp)
{
if (rtp->smoother)