[sr-dev] git:master: registrar: fix event route execution warning

Daniel-Constantin Mierla miconda at gmail.com
Sat Jan 12 13:10:56 CET 2013


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Sat Jan 12 13:10:18 2013 +0100

registrar: fix event route execution warning

---

 modules_k/registrar/regpv.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules_k/registrar/regpv.c b/modules_k/registrar/regpv.c
index 8047e6f..82c13f5 100644
--- a/modules_k/registrar/regpv.c
+++ b/modules_k/registrar/regpv.c
@@ -581,7 +581,7 @@ void reg_ul_expired_contact(ucontact_t* ptr, int type, void* param)
 	str profile = {"exp", 3};
 	regpv_profile_t *rpp;
 	ucontact_t* c0;
-	int rt, backup_rt;
+	int backup_rt;
 	struct run_act_ctx ctx;
 	sip_msg_t *fmsg;
 	int olen;
@@ -691,7 +691,7 @@ void reg_ul_expired_contact(ucontact_t* ptr, int type, void* param)
 	backup_rt = get_route_type();
 	set_route_type(REQUEST_ROUTE);
 	init_run_actions_ctx(&ctx);
-	run_top_route(event_rt.rlist[rt], fmsg, 0);
+	run_top_route(event_rt.rlist[reg_expire_event_rt], fmsg, 0);
 	set_route_type(backup_rt);
 
 	return;




More information about the sr-dev mailing list