diff options
author | Olle Johansson <oej@edvina.net> | 2006-12-15 10:58:36 +0000 |
---|---|---|
committer | Olle Johansson <oej@edvina.net> | 2006-12-15 10:58:36 +0000 |
commit | 168deb2366b4d58d8eeb3a7f93c12ce77007c919 (patch) | |
tree | 5cf5daffc2989de4d1350bdc51202cf23b7a472b | |
parent | bf2172faac1de566fc38e3e3db0ff37add65ffae (diff) |
Issue #8592 - treat 504 as congestion (imported from 1.2/1.4)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48488 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index e8890ebbe..f972a5c51 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -12461,6 +12461,7 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_ } /* Fall through */ case 503: /* Service Unavailable */ + case 504: /* Server Timeout */ if (owner) ast_queue_control(p->owner, AST_CONTROL_CONGESTION); break; @@ -12587,6 +12588,7 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_ case 603: /* Decline */ case 500: /* Server error */ case 503: /* Service Unavailable */ + case 504: /* Server timeout */ if (sipmethod == SIP_INVITE) { /* re-invite failed */ sip_cancel_destroy(p); |