[sr-dev] git:master:a67bb24f: modules/lcr: changed location of ruri_user_avp delete

Juha Heinanen jh at tutpro.com
Fri Dec 4 23:27:39 CET 2015


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

Author: Juha Heinanen <jh at tutpro.com>
Committer: Juha Heinanen <jh at tutpro.com>
Date: 2015-12-05T00:21:59+02:00

modules/lcr: changed location of ruri_user_avp delete

---

Modified: modules/lcr/lcr_mod.c

---

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

---

diff --git a/modules/lcr/lcr_mod.c b/modules/lcr/lcr_mod.c
index 10d584f..30d3654 100644
--- a/modules/lcr/lcr_mod.c
+++ b/modules/lcr/lcr_mod.c
@@ -1848,6 +1848,7 @@ void add_gws_into_avps(struct gw_info *gws, struct matched_gw_info *matched_gws,
     int_str val;
 
     delete_avp(gw_uri_avp_type|AVP_VAL_STR, gw_uri_avp);
+    delete_avp(ruri_user_avp_type|AVP_VAL_STR, ruri_user_avp);
 
     for (i = 0; i < gw_cnt; i++) {
 	if (matched_gws[i].duplicate == 1) continue;
@@ -2450,7 +2451,6 @@ static int next_gw(struct sip_msg* _m, char* _s1, char* _s2)
 	/* Save Request-URI user into uri_user_avp for use in subsequent
          * invocations. */
 
-	delete_avp(ruri_user_avp_type|AVP_VAL_STR, ruri_user_avp);
 	val.s = _m->parsed_uri.user;
 	add_avp(ruri_user_avp_type|AVP_VAL_STR, ruri_user_avp, val);
 	LM_DBG("added ruri_user_avp <%.*s>\n", val.s.len, val.s.s);




More information about the sr-dev mailing list