]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
nuke handle on errs worse than 500 rather than 900
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 4 Feb 2010 21:23:36 +0000 (21:23 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 4 Feb 2010 21:23:36 +0000 (21:23 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16571 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index 52b5f46b5849c9fc2f08259200dbf99efa001883..beec19940b9ffd75112ff0053b13b421928b5bea 100644 (file)
@@ -1448,7 +1448,7 @@ void sofia_reg_handle_sip_r_register(int status,
                                                                         nua_t *nua, sofia_profile_t *profile, nua_handle_t *nh, sofia_private_t *sofia_private, sip_t const *sip,
                                                                         tagi_t tags[])
 {
-       if (status >= 900) {
+       if (status >= 500) {
                if (sofia_private && sofia_private->gateway) {
                        nua_handle_destroy(sofia_private->gateway->nh);
                        sofia_private->gateway->nh = NULL;