Hello,
I'm using LCR module in my kamailio setup. I can access to the gw_uri_avp's value of matched gateway, but I'd like to get value of selected id of lcr_rule_target. Is there any way to get it?
Thanks.
P.S. Access to value of custom table's field (for example, named as 'flags') of cr_rule_target will be better. I'd like to store at this field the price of selected direction.
Alexey V. Panfilov writes:
I'm using LCR module in my kamailio setup. I can access to the gw_uri_avp's value of matched gateway, but I'd like to get value of selected id of lcr_rule_target. Is there any way to get it?
id of lcr_rule_target is not currently stored in gw_uri_avp. only flags and tag of selected gw is available.
-- juha
15.02.2016 10:13, Juha Heinanen wrote:
Alexey V. Panfilov writes:
I'm using LCR module in my kamailio setup. I can access to the gw_uri_avp's value of matched gateway, but I'd like to get value of selected id of lcr_rule_target. Is there any way to get it?
id of lcr_rule_target is not currently stored in gw_uri_avp. only flags and tag of selected gw is available.
It's a pity. May I ask (as feature request) to add it to the future version of Kam?
Alexey V. Panfilov writes:
It's a pity. May I ask (as feature request) to add it to the future version of Kam?
I currently don't need such a feature. It might be possible to implement it by adding target_id field to struct target and to struct matched_gw_info. Then add_gws_into_avps() function could include the id in gw_uri_avps. Feel free to do it.
-- Juha
15.02.2016 11:11, Juha Heinanen wrote:
Alexey V. Panfilov writes:
It's a pity. May I ask (as feature request) to add it to the future version of Kam?
I currently don't need such a feature. It might be possible to implement it by adding target_id field to struct target and to struct matched_gw_info. Then add_gws_into_avps() function could include the id in gw_uri_avps. Feel free to do it.
-- Juha
I'll try to do it by myself.
Thanks.