diff options
author | Mark Spencer <markster@digium.com> | 2003-04-30 21:59:32 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-04-30 21:59:32 +0000 |
commit | 835c1624424ef95ea773c520f15867ae046e20e7 (patch) | |
tree | 487ac820f22ca0dae5b0c0bb84c79f7b840924bb /rtp.c | |
parent | 4981335c1df62d1a986e17202c7d506159e8420d (diff) |
Handle hold properly to ensure musiconhold
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@942 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rtp.c')
-rwxr-xr-x | rtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -997,13 +997,13 @@ int ast_rtp_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags, st ast_rtp_get_peer(p0, &t0); if (inaddrcmp(&t1, &ac1)) { ast_log(LOG_DEBUG, "Oooh, '%s' changed end address\n", c1->name); - if (pr0->set_rtp_peer(c0, p1)) + if (pr0->set_rtp_peer(c0, t1.sin_addr.s_addr ? p1 : NULL)) ast_log(LOG_WARNING, "Channel '%s' failed to update to '%s'\n", c0->name, c1->name); memcpy(&ac1, &t1, sizeof(ac1)); } if (inaddrcmp(&t0, &ac0)) { ast_log(LOG_DEBUG, "Oooh, '%s' changed end address\n", c0->name); - if (pr1->set_rtp_peer(c1, p0)) + if (pr1->set_rtp_peer(c1, t0.sin_addr.s_addr ? p0 : NULL)) ast_log(LOG_WARNING, "Channel '%s' failed to update to '%s'\n", c1->name, c0->name); memcpy(&ac0, &t0, sizeof(ac0)); } |