Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv10324/channels

Modified Files:
        chan_sip.c 
Log Message:
ensure that peer-level RTP settings are actually used (bug #4313)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.735
retrieving revision 1.736
diff -u -d -r1.735 -r1.736
--- chan_sip.c  19 May 2005 02:49:34 -0000      1.735
+++ chan_sip.c  19 May 2005 04:49:12 -0000      1.736
@@ -1546,6 +1546,12 @@
                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) {

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to