Hello Kirill,

The drouting module is fetching the original FROM header, as received from the network. So your changes from the script will be ignored.

An alternative is to determine the routing group by yourself, at script level (like doing a DB query, even to the same dr_groups table, but using whatever value you want for the user) and push the group as parameter to the do_routing() function.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Summit 2018
  http://www.opensips.org/events/Summit-2018Amsterdam

On 06/01/2018 05:05 PM, Kirill Galinurov wrote:
Hi all. I use drouting module for LCR. No i use do_routing function in request_route() But i want normalize username in From before do_routing.
How I can do it. Now do_routing() use old username for discover group.
Also I want to change username in contact field before topology hiding.


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to