Add inbound route

This commit is contained in:
2026-03-27 06:32:19 -04:00
parent e45f067021
commit fc9ea660de

View File

@@ -1,18 +1,8 @@
<include>
<include>
<extension name="public_did">
<condition field="destination_number" expression="^(5551212)$">
<!--
If you're hosting multiple domains you will want to set the
target_domain on these calls so they hit the proper domain after you
transfer the caller into the default context.
$${domain} is the default domain set from vars.xml but you can set it
to any domain you have setup in your user directory.
-->
<condition field="destination_number" expression="^1\d{10}$">
<action application="set" data="domain_name=$${domain}"/>
<!-- This example maps the DID 5551212 to ring 1000 in the default context -->
<action application="transfer" data="1000 XML default"/>
<action application="transfer" data="$${destination_number} XML default"/>
</condition>
</extension>
</include>