diff options
author | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-06 22:15:27 +0000 |
---|---|---|
committer | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-06 22:15:27 +0000 |
commit | b14830b301d706f6dbd0f1d0528e5131cd0c2733 (patch) | |
tree | 50422528edd5b20ff2b95aee37456ae1e1dab2d0 /channels | |
parent | da65ef1531e505cf0766ef1b475e48969a6d93dd (diff) |
Merged revisions 274280 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r274280 | twilson | 2010-07-06 17:08:20 -0500 (Tue, 06 Jul 2010) | 9 lines
Add option to not do a call forward on 482 Loop Detected
Asterisk has always set up a forwarded call when receiving a 482 Loop Detected.
This prevents handling the call failure by just continuing on in the dialplan.
Since this would be a change in behavior, the new option to disable this
behavior is forwardloopdetected which defaults to 'yes'.
Review: https://reviewboard.asterisk.org/r/764/
........
(no option for trunk, just changing the behavior)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@274284 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 3f923858a..b439bf104 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -19132,16 +19132,7 @@ static void handle_response(struct sip_pvt *p, int resp, const char *rest, struc ast_queue_control(p->owner, AST_CONTROL_BUSY); } break; - case 482: /*! - \note SIP is incapable of performing a hairpin call, which - is yet another failure of not having a layer 2 (again, YAY - IETF for thinking ahead). So we treat this as a call - forward and hope we end up at the right place... */ - ast_debug(1, "Hairpin detected, setting up call forward for what it's worth\n"); - if (p->owner) - ast_string_field_build(p->owner, call_forward, - "Local/%s@%s", p->username, p->context); - /* Fall through */ + case 482: /* Loop Detected */ case 480: /* Temporarily Unavailable */ case 404: /* Not Found */ case 410: /* Gone */ |