LRT to route to a specific SIP trunk
I am looking to use an LRT to route to a specific SIP trunk based on the calling number but don't seem to be having much luck so wondered if anyone has done anything similar.
My LRT file at the moment looks as below.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<localRoutes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<route>
<user type="E164">44207123456</user>
<next type="regex">!^.*$!sip:1@SessionAgent!</next>
</route>
</localRoutes>
And my local policy specifies
lrt:localroutename;key=$FROM
The intention is to have the LRT user type function off of FROM but have the next type still route to the intended TO number but at a session agent I specify.