Expand our definition of 3XX responses
authorMark Spencer <markster@digium.com>
Fri, 5 Mar 2004 18:09:35 +0000 (18:09 +0000)
committerMark Spencer <markster@digium.com>
Fri, 5 Mar 2004 18:09:35 +0000 (18:09 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2347 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 49e0bef..f43a8d4 100755 (executable)
@@ -5070,7 +5070,10 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
                                }
                                /* XXX Locking issues?? XXX */
                                switch(resp) {
+                               case 300: /* Multiple Choices */
+                               case 301: /* Moved permenantly */
                                case 302: /* Moved temporarily */
+                               case 305: /* Use Proxy */
                                        parse_moved_contact(p, req);
                                        if (p->owner)
                                                ast_queue_control(p->owner, AST_CONTROL_BUSY, 0);