ycaner writes:
when first usage of load_gws() and next_gw() functions , next_gw() fills all uri avps to ru_AVPs from gws tables. if it goes to failure route or route again , it can re use ru_AVPs in next_gw(). so if recall the load_gws() again for choose new route , it uses old uri avps in next_gw() function , it is totally incorrect. if there is flag or parameter to define gws are reloaded , it can null to ru_AVPs to correct gws informations.
does it work if you destroy (e.g. using avp_delete("$avp(x)/g")) gw_uri_avp and ruri_user_avp before the second load_gws() call?
i couldn't find why fromuri appending itself. searching about it.
if i remember correctly, lcr functions do not modify from uri.
-- juha