Module: sip-router
Branch: master
Commit: 982a002fb89b9a2bcb65d678e1fd37918398e86d
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=982a002…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Thu Feb 13 22:33:18 2014 +0200
modules/lcr: add index of selected gw to defunct_gw_avp
also when ping_interval value is positive
---
modules/lcr/lcr_mod.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/lcr/lcr_mod.c b/modules/lcr/lcr_mod.c
index 031147f..a5c804d 100644
--- a/modules/lcr/lcr_mod.c
+++ b/modules/lcr/lcr_mod.c
@@ -2058,7 +2058,7 @@ next:
add_gws_into_avps(gws, matched_gws, gw_index, &ruri_user);
/* Add lcr_id into AVP */
- if (defunct_capability_param > 0) {
+ if ((defunct_capability_param > 0) || (ping_interval_param > 0)) {
delete_avp(lcr_id_avp_type, lcr_id_avp);
val.n = lcr_id;
add_avp(lcr_id_avp_type, lcr_id_avp, val);
@@ -2513,7 +2513,7 @@ static int next_gw(struct sip_msg* _m, char* _s1, char* _s2)
}
/* Add index of selected gw to defunct gw AVP */
- if (defunct_capability_param > 0) {
+ if ((defunct_capability_param > 0) || (ping_interval_param > 0)) {
delete_avp(defunct_gw_avp_type, defunct_gw_avp);
val.n = gw_index;
add_avp(defunct_gw_avp_type, defunct_gw_avp, val);