mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-23 16:05:30 -07:00
Merged revisions 41768 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r41768 | file | 2006-09-01 18:49:07 -0400 (Fri, 01 Sep 2006) | 2 lines Only wipe the redirected audio & video IP/port if it's specified, and trigger a reinvite. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+8
-4
@@ -16169,14 +16169,18 @@ static int sip_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp, struc
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (rtp)
|
||||
if (rtp) {
|
||||
changed |= ast_rtp_get_peer(rtp, &p->redirip);
|
||||
else
|
||||
} else if (p->redirip.sin_addr.s_addr || ntohs(p->redirip.sin_port) != 0) {
|
||||
memset(&p->redirip, 0, sizeof(p->redirip));
|
||||
if (vrtp)
|
||||
changed = 1;
|
||||
}
|
||||
if (vrtp) {
|
||||
changed |= ast_rtp_get_peer(vrtp, &p->vredirip);
|
||||
else
|
||||
} else if (p->vredirip.sin_addr.s_addr || ntohs(p->vredirip.sin_port) != 0) {
|
||||
memset(&p->vredirip, 0, sizeof(p->vredirip));
|
||||
changed = 1;
|
||||
}
|
||||
if (codecs && (p->redircodecs != codecs)) {
|
||||
p->redircodecs = codecs;
|
||||
changed = 1;
|
||||
|
||||
Reference in New Issue
Block a user