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
This commit is contained in:
Mark Spencer
2003-03-20 22:01:53 +00:00
parent f02b64d258
commit 83016e1bce
3 changed files with 11 additions and 6 deletions

6
rtp.c
View File

@@ -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)