aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-09 15:40:07 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-09 15:40:07 +0000
commit13506ab9a4bf1f3f80b4f48313048e01f3480c04 (patch)
tree0c7e99f92f8463ebac909144a589e06950f1a141
parent80e0b574dc3288bda5b137b0c69cc221dc828fce (diff)
Only pool CONGESTION if there is an owner in the case of a 501
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3754 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannels/chan_sip.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 82780e027..0074eee75 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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: