Database and api route ready

This commit is contained in:
2026-03-24 22:40:08 -04:00
parent 7d8a182afd
commit 6bffd594c0
16 changed files with 437 additions and 23 deletions

View File

@@ -29,20 +29,20 @@
<permission name="set-vars" value="false">
<!-- default to "deny" or "allow" -->
<!-- type attr can be "deny" or "allow" nothing defaults to opposite of the list default so allow in this case -->
<!--
<!--
<variable-list default="deny">
<variable name="caller_id_name"/>
<variable name="hangup"/>
<variable name="hangup"/>
</variable-list>
-->
</permission>
<permission name="get-vars" value="false">
<!-- default to "deny" or "allow" -->
<!-- type attr can be "deny" or "allow" nothing defaults to opposite of the list default so allow in this case -->
<!--
<!--
<variable-list default="deny">
<variable name="caller_id_name"/>
<variable name="hangup"/>
<variable name="hangup"/>
</variable-list>
-->
</permission>
@@ -58,15 +58,15 @@
<permission name="expand-vars-in-tag-body" value="false">
<!-- default to "deny" or "allow" -->
<!-- type attr can be "deny" or "allow" nothing defaults to opposite of the list default so allow in this case -->
<!--
<!--
<variable-list default="deny">
<variable name="caller_id_name"/>
<variable name="hangup"/>
<variable name="hangup"/>
</variable-list>
<api-list default="deny">
<api name="expr"/>
<api name="lua"/>
<api name="lua"/>
</api-list>
-->
</permission>
@@ -79,11 +79,11 @@
<permission name="conference" value="true"/>
<permission name="conference-set-profile" value="false"/>
</permissions>
<params>
<!-- default url can be overridden by app data -->
<param name="gateway-url" value="http://www.freeswitch.org/api/index.cgi" />
<param name="gateway-url" value="http://127.0.0.1:3000/api/route_did" />
<!-- set this to provide authentication credentials to the server -->
<!--<param name="gateway-credentials" value="muser:mypass"/>-->
<!--<param name="auth-scheme" value="basic"/>-->

View File

@@ -45,5 +45,10 @@
</condition>
</extension>
<extension name="did-route">
<condition field="destination_number" expression="^8598989002$">
<action application="httapi" data="{method=POST}" />
</condition>
</extension>
</context>
</include>