Module: kamailio
Branch: master
Commit: ff95605d37b2e956ed218efcff530e428137f07d
URL:
https://github.com/kamailio/kamailio/commit/ff95605d37b2e956ed218efcff530e4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-05-29T07:31:02+02:00
drouting: updates for keepalive api
---
Modified: src/modules/drouting/drouting.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ff95605d37b2e956ed218efcff530e4…
Patch:
https://github.com/kamailio/kamailio/commit/ff95605d37b2e956ed218efcff530e4…
---
diff --git a/src/modules/drouting/drouting.c b/src/modules/drouting/drouting.c
index 05927c834c..e18ce7f76d 100644
--- a/src/modules/drouting/drouting.c
+++ b/src/modules/drouting/drouting.c
@@ -219,7 +219,7 @@ static inline int rewrite_ruri(struct sip_msg* _m, char* _s)
}
-void dr_keepalive_statechanged(str uri, ka_state state, void *user_attr) {
+void dr_keepalive_statechanged(str *uri, ka_state state, void *user_attr) {
((pgw_t *)user_attr)->state = state;
}
@@ -231,7 +231,7 @@ static int dr_update_keepalive(pgw_t *addrs)
for(cur = addrs; cur != NULL; cur = cur->next) {
LM_DBG("uri: %.*s\n", cur->ip.len, cur->ip.s);
- keepalive_api.add_destination(cur->ip, owner, 0, dr_keepalive_statechanged, cur);
+ keepalive_api.add_destination(&cur->ip, &owner, 0,
dr_keepalive_statechanged, cur);
}
return 0;