[sr-dev] git:master: app_lua: fixed copy-and-paste error in loadin registrar API

Daniel-Constantin Mierla miconda at gmail.com
Wed Aug 31 23:50:52 CEST 2011


Module: sip-router
Branch: master
Commit: da79de336c13dca23ad6cfd13c961ec1ebee7e46
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=da79de336c13dca23ad6cfd13c961ec1ebee7e46

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Wed Aug 31 23:49:14 2011 +0200

app_lua: fixed copy-and-paste error in loadin registrar API

- patch by Hugh Waite

---

 modules/app_lua/app_lua_exp.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/app_lua/app_lua_exp.c b/modules/app_lua/app_lua_exp.c
index 5662843..46061e7 100644
--- a/modules/app_lua/app_lua_exp.c
+++ b/modules/app_lua/app_lua_exp.c
@@ -1026,9 +1026,9 @@ static int lua_sr_registrar_save(lua_State *L)
 	flags = 0;
 	env_L = sr_lua_env_get();
 
-	if(!(_sr_lua_exp_reg_mods&SR_LUA_EXP_MOD_MAXFWD))
+	if(!(_sr_lua_exp_reg_mods&SR_LUA_EXP_MOD_REGISTRAR))
 	{
-		LM_WARN("weird: maxfwd function executed but module not registered\n");
+		LM_WARN("weird: registrar function executed but module not registered\n");
 		return app_lua_return_error(L);
 	}
 	if(env_L->msg==NULL)
@@ -1067,9 +1067,9 @@ static int lua_sr_registrar_lookup(lua_State *L)
 
 	env_L = sr_lua_env_get();
 
-	if(!(_sr_lua_exp_reg_mods&SR_LUA_EXP_MOD_MAXFWD))
+	if(!(_sr_lua_exp_reg_mods&SR_LUA_EXP_MOD_REGISTRAR))
 	{
-		LM_WARN("weird: maxfwd function executed but module not registered\n");
+		LM_WARN("weird: registrar function executed but module not registered\n");
 		return app_lua_return_error(L);
 	}
 	if(env_L->msg==NULL)




More information about the sr-dev mailing list