mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Update the remembered RTP peer information when putting an endpoint on hold or taking it off hold so that the RTP stack does not initiate a needless reinvite.
(closes issue #10868) Reported by: mavince git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@84818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2944,6 +2944,11 @@ static enum ast_bridge_result bridge_native_loop(struct ast_channel *c0, struct
|
||||
else
|
||||
pr0->set_rtp_peer(c0, p1, vp1, codec1, ast_test_flag(p1, FLAG_NAT_ACTIVE));
|
||||
}
|
||||
/* Update local address information */
|
||||
ast_rtp_get_peer(p0, &t0);
|
||||
memcpy(&ac0, &t0, sizeof(ac0));
|
||||
ast_rtp_get_peer(p1, &t1);
|
||||
memcpy(&ac1, &t1, sizeof(ac1));
|
||||
ast_indicate_data(other, fr->subclass, fr->data, fr->datalen);
|
||||
ast_frfree(fr);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user