diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-03-20 22:01:53 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-03-20 22:01:53 +0000 |
commit | b0e90f202d6b6fe07dbece6a437cfa8afebdc95b (patch) | |
tree | 671d8650b6e48650564af2af9e0f25ce7bfb949b /rtp.c | |
parent | 50b8702a9c4b3678c87d6db0238c6efc9f267992 (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-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) |