Browse code

Merge branch 'master' of ssh://git.sip-router.org/sip-router

Jason Penton authored on 14/02/2014 08:01:55
Showing 1 changed files
... ...
@@ -2058,7 +2058,7 @@ next:
2058 2058
     add_gws_into_avps(gws, matched_gws, gw_index, &ruri_user);
2059 2059
 
2060 2060
     /* Add lcr_id into AVP */
2061
-    if (defunct_capability_param > 0) {
2061
+    if ((defunct_capability_param > 0) || (ping_interval_param > 0)) {
2062 2062
 	delete_avp(lcr_id_avp_type, lcr_id_avp);
2063 2063
 	val.n = lcr_id;
2064 2064
 	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)
2513 2513
     }
2514 2514
 
2515 2515
     /* Add index of selected gw to defunct gw AVP */
2516
-    if (defunct_capability_param > 0) {
2516
+    if ((defunct_capability_param > 0) || (ping_interval_param > 0)) {
2517 2517
 	delete_avp(defunct_gw_avp_type, defunct_gw_avp);
2518 2518
 	val.n = gw_index;
2519 2519
 	add_avp(defunct_gw_avp_type, defunct_gw_avp, val);