]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
#9483, half of patch by twilson to solve 302 redirect issues
authorOlle Johansson <oej@edvina.net>
Mon, 16 Apr 2007 14:47:05 +0000 (14:47 +0000)
committerOlle Johansson <oej@edvina.net>
Mon, 16 Apr 2007 14:47:05 +0000 (14:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61666 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6a816962a83b702c83fbeac3ab91257cc7aba6eb..22b8260c05a8be03b08f258f1e152736359562cb 100644 (file)
@@ -1312,7 +1312,6 @@ static struct sip_auth *find_realm_authentication(struct sip_auth *authlist, con
 static int sip_do_reload(enum channelreloadreason reason);
 static int reload_config(enum channelreloadreason reason);
 static int expire_register(void *data);
-static int sip_sipredirect(struct sip_pvt *p, const char *dest);
 static void *do_monitor(void *data);
 static int restart_monitor(void);
 static int sip_send_mwi_to_peer(struct sip_peer *peer);
@@ -17136,8 +17135,7 @@ static int sip_sipredirect(struct sip_pvt *p, const char *dest)
 
        sip_scheddestroy(p, 32000);     /* Make sure we stop send this reply. */
 
-       /* hangup here */
-       return -1;
+       return 0;
 }
 
 /*! \brief Return SIP UA's codec (part of the RTP interface) */