summaryrefslogtreecommitdiff
path: root/rtp.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-03-20 22:01:53 +0000
committerMark Spencer <markster@digium.com>2003-03-20 22:01:53 +0000
commit83016e1bce1286bc6454366025877ad4acc12c29 (patch)
tree671d8650b6e48650564af2af9e0f25ce7bfb949b /rtp.c
parentf02b64d25839f5034c496823a12e749431bc9074 (diff)
Don't destory rtp until destroy, use rtp_stop instead
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@668 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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)