(closes issue #19225)
Reported by: one47
Patches:
sip_set_rtp_peer.patch uploaded by one47 (license 23)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@318230
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
return -1;
/* Disable early RTP bridge */
- if (!ast_bridged_channel(chan) && !sip_cfg.directrtpsetup) /* We are in early state */
- return 0;
+ if ((rtp || vrtp || trtp) &&
+ !ast_bridged_channel(chan) &&
+ !sip_cfg.directrtpsetup) {
+ return 0;
+ }
sip_pvt_lock(p);
if (p->alreadygone) {