[Asterisk-cvs] asterisk/channels chan_sip.c,1.496,1.497
markster at lists.digium.com
markster at lists.digium.com
Thu Sep 9 11:38:00 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv7554/channels
Modified Files:
chan_sip.c
Log Message:
Only pool CONGESTION if there is an owner in the case of a 501
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.496
retrieving revision 1.497
diff -u -d -r1.496 -r1.497
--- chan_sip.c 9 Sep 2004 02:07:26 -0000 1.496
+++ chan_sip.c 9 Sep 2004 15:40:07 -0000 1.497
@@ -6726,9 +6726,10 @@
break;
case 501: /* Not Implemented */
- if (!strcasecmp(msg, "INVITE"))
- ast_queue_control(p->owner, AST_CONTROL_CONGESTION);
- else
+ if (!strcasecmp(msg, "INVITE")) {
+ if (p->owner)
+ ast_queue_control(p->owner, AST_CONTROL_CONGESTION);
+ } else
ast_log(LOG_WARNING, "Host '%s' does not implement '%s'\n", ast_inet_ntoa(iabuf, sizeof(iabuf), p->sa.sin_addr), msg);
break;
default:
More information about the svn-commits
mailing list