Browse code

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

Tomas Mandys authored on 17/06/2006 09:40:59
Showing 2 changed files
... ...
@@ -87,7 +87,7 @@
87 87
 
88 88
 
89 89
 struct onsend_info* p_onsend=0; /* onsend route send info */
90
-static unsigned int run_flags=0;
90
+unsigned int run_flags=0;
91 91
 int last_retcode=0; /* last return from a route() */
92 92
 
93 93
 /* ret= 0! if action -> end of list(e.g DROP),
... ...
@@ -208,7 +208,7 @@ int do_action(struct action* a, struct sip_msg* msg)
208 208
 #endif
209 209
 				}
210 210
 
211
-#ifdef HONOR_MADDR				
211
+#ifdef HONOR_MADDR
212 212
 				if (u->maddr_val.s && u->maddr_val.len) {
213 213
 					if (sip_hostport2su(&dst.to, &u->maddr_val, port, dst.proto)<0){
214 214
 						LOG(L_ERR, "ERROR:  bad maddr param in uri,"
... ...
@@ -21,8 +21,8 @@
21 21
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 22
  * GNU General Public License for more details.
23 23
  *
24
- * You should have received a copy of the GNU General Public License 
25
- * along with this program; if not, write to the Free Software 
24
+ * You should have received a copy of the GNU General Public License
25
+ * along with this program; if not, write to the Free Software
26 26
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27 27
  */
28 28
 
... ...
@@ -33,6 +33,7 @@
33 33
 #include "parser/msg_parser.h"
34 34
 #include "route_struct.h"
35 35
 
36
+extern unsigned int run_flags;
36 37
 extern int last_retcode;
37 38
 
38 39
 int do_action(struct action* a, struct sip_msg* msg);