Lua Script for jurisdictional routing

Hi

I would like to implement jurisdictional routing in Yeti – it seems like the best way to do this is through tags; and it would seem like the best way to tag each call for whether or not it should be treated as intrastate or interstate (USA) is by custom logic in the Lua scripts? Is this possible?

Thank you!

no. currently lua is not working. Use areas and tag detection rules.

Hi - can you help me understand how this would work? If a call originates and terminates in a different LATA, how can I ensure that they have rates that represent whether or not they’re interlata, intralata or indeterminate

It depends how you will determine LATA. Usually it should be done by LNP database request, in this case routing tag may be added depends on LNP response.

How can I make a routing tag based on the LNP response? I can make my LNP give me that info very easily.