diff options
author | Mark Spencer <markster@digium.com> | 2003-03-20 22:01:53 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-03-20 22:01:53 +0000 |
commit | 83016e1bce1286bc6454366025877ad4acc12c29 (patch) | |
tree | 671d8650b6e48650564af2af9e0f25ce7bfb949b /rtp.c | |
parent | f02b64d25839f5034c496823a12e749431bc9074 (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-x | rtp.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |