- when failing to send on all branches (due to send error, onsend_router or
authorAndrei Pelinescu-Onciul <andrei@iptel.org>
Mon, 18 Jun 2007 21:26:34 +0000 (21:26 +0000)
committerAndrei Pelinescu-Onciul <andrei@iptel.org>
Mon, 18 Jun 2007 21:26:34 +0000 (21:26 +0000)
 blacklist), always send back a send error reply (ignore possible dns
  errors which might have happened during dns failover)

modules/tm/t_fwd.c

index 817f870..70c9461 100644 (file)
@@ -895,8 +895,11 @@ int t_forward_nonack( struct cell *t, struct sip_msg* p_msg ,
                }
        }
        if (success_branch<=0) {
-               if (ser_error==0)
-                               ser_error=E_SEND;
+               /* return always E_SEND for now
+                * (the real reason could be: denied by onsend routes, blacklisted,
+                *  send failed or any of the errors listed before + dns failed
+                *  when attempting dns failover) */
+               ser_error=E_SEND;
                /* else return the last error (?) */
                /* the caller should take care and delete the transaction */
                return -1;