Skip to content

Commit

Permalink
modules/lcr: changed location of ruri_user_avp delete
Browse files Browse the repository at this point in the history
  • Loading branch information
juha-h committed Dec 4, 2015
1 parent d899189 commit a67bb24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/lcr/lcr_mod.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a67bb24

Please sign in to comment.