fix rtptimeout options for a specific peer (bug #4325)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Russell Bryant 21 years ago
parent 2995096956
commit cf45c660cc

@ -16,6 +16,7 @@
-- We now respond correctly to an invite for T.38 with a "488 Not acceptable here"
-- We now discard saved tags on 401/407 responses in case the provider we're talking
to tries to pull a dirty trick on us and change it.
-- rtptimeout options will now be correctly set on a peer basis rather than only global
-- chan_mgcp
-- Fixed setting of accountcode
-- Fixed where *67 to block callerid only worked for first call

@ -1350,6 +1350,8 @@ static int create_addr(struct sip_pvt *r, char *opeer)
}
r->promiscredir = p->promiscredir;
strncpy(r->context, p->context,sizeof(r->context)-1);
r->rtptimeout = p->rtptimeout;
r->rtpholdtimeout = p->rtpholdtimeout;
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) {

Loading…
Cancel
Save