mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Only pool CONGESTION if there is an owner in the case of a 501
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3754 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6726,9 +6726,10 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
|
||||
|
||||
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:
|
||||
|
Reference in New Issue
Block a user