ensure that peer-level RTP settings are actually used (bug #4313)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5734 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming 2005-05-19 04:49:12 +00:00
parent c8889e6563
commit 041147243c
1 changed files with 6 additions and 0 deletions

View File

@ -1546,6 +1546,12 @@ static int create_addr(struct sip_pvt *r, char *opeer)
else
r->noncodeccapability &= ~AST_RTP_DTMF;
ast_copy_string(r->context, p->context,sizeof(r->context));
if (!p->rtptimeout)
r->rtptimeout = p->rtptimeout;
if (!p->rtpholdtimeout)
r->rtpholdtimeout = p->rtpholdtimeout;
if (!p->rtpkeepalive)
r->rtpkeepalive = p->rtpkeepalive;
if ((p->addr.sin_addr.s_addr || p->defaddr.sin_addr.s_addr) &&
(!p->maxms || ((p->lastms >= 0) && (p->lastms <= p->maxms)))) {
if (p->addr.sin_addr.s_addr) {