All pastes #245191 Raw Edit

Someone

public text v1 · immutable
#245191 ·published 2006-11-10 18:26 UTC
rendered paste body
16698         /* if this peer cannot handle reinvites of the media stream to devices
16699            that are known to be behind a NAT, then stop the process now
16700         */
16701         if (nat_active && !ast_test_flag(&p->flags[0], SIP_CAN_REINVITE_NAT)) {
16702                 sip_pvt_unlock(p);
16703                 return 0;
16704         }
16705
16706         if (rtp) {
16707                 changed |= ast_rtp_get_peer(rtp, &p->redirip);
16708         } else if (p->redirip.sin_addr.s_addr || ntohs(p->redirip.sin_port) != 0) {
16709                 memset(&p->redirip, 0, sizeof(p->redirip));
16710                 changed = 1;
16711         }

Path: .
URL: http://svn.digium.com/svn/asterisk/trunk
Repository UUID: 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Revision: 47448
Node Kind: directory
Schedule: normal
Last Changed Author: russell
Last Changed Rev: 47446
Last Changed Date: 2006-11-11 01:53:46 +0800 (Sat, 11 Nov 2006)
Properties Last Updated: 2006-11-11 02:06:49 +0800 (Sat, 11 Nov 2006)
DEA:

code snippet before applying it by hand or with your patch