2
0
Эх сурвалжийг харах

- run_flags published in header file. It may require any module command that calls run_actions, e.g. to absorb return.

Tomas Mandys 19 жил өмнө
parent
commit
d766c020ec
2 өөрчлөгдсөн 5 нэмэгдсэн , 4 устгасан
  1. 2 2
      action.c
  2. 3 2
      action.h

+ 2 - 2
action.c

@@ -87,7 +87,7 @@
 
 
 struct onsend_info* p_onsend=0; /* onsend route send info */
-static unsigned int run_flags=0;
+unsigned int run_flags=0;
 int last_retcode=0; /* last return from a route() */
 
 /* ret= 0! if action -> end of list(e.g DROP),
@@ -208,7 +208,7 @@ int do_action(struct action* a, struct sip_msg* msg)
 #endif
 				}
 
-#ifdef HONOR_MADDR				
+#ifdef HONOR_MADDR
 				if (u->maddr_val.s && u->maddr_val.len) {
 					if (sip_hostport2su(&dst.to, &u->maddr_val, port, dst.proto)<0){
 						LOG(L_ERR, "ERROR:  bad maddr param in uri,"

+ 3 - 2
action.h

@@ -21,8 +21,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
@@ -33,6 +33,7 @@
 #include "parser/msg_parser.h"
 #include "route_struct.h"
 
+extern unsigned int run_flags;
 extern int last_retcode;
 
 int do_action(struct action* a, struct sip_msg* msg);