[sr-dev] git:master:c3ed3d9a: registrar: use kemi wrapper to execute routing functions

Daniel-Constantin Mierla miconda at gmail.com
Wed Feb 27 09:27:32 CET 2019


Module: kamailio
Branch: master
Commit: c3ed3d9a531c403fc850d229252eb4bcd4cc473e
URL: https://github.com/kamailio/kamailio/commit/c3ed3d9a531c403fc850d229252eb4bcd4cc473e

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-02-27T09:27:03+01:00

registrar: use kemi wrapper to execute routing functions

---

Modified: src/modules/registrar/regpv.c

---

Diff:  https://github.com/kamailio/kamailio/commit/c3ed3d9a531c403fc850d229252eb4bcd4cc473e.diff
Patch: https://github.com/kamailio/kamailio/commit/c3ed3d9a531c403fc850d229252eb4bcd4cc473e.patch

---

diff --git a/src/modules/registrar/regpv.c b/src/modules/registrar/regpv.c
index fdb5fa40fb..d04f129d47 100644
--- a/src/modules/registrar/regpv.c
+++ b/src/modules/registrar/regpv.c
@@ -744,7 +744,7 @@ void reg_ul_expired_contact(ucontact_t* ptr, int type, void* param)
 		keng = sr_kemi_eng_get();
 		if (keng!=NULL) {
 			str evname = str_init("usrloc:contact-expired");
-			if(keng->froute(fmsg, EVENT_ROUTE,
+			if(sr_kemi_route(keng, fmsg, EVENT_ROUTE,
 					&reg_event_callback, &evname)<0) {
 				LM_ERR("error running event route kemi callback\n");
 			}




More information about the sr-dev mailing list