Update vanilla httapi.conf.xml

Make clear what default is for permissions, use correct expand-vars and add param method
This commit is contained in:
Sjoerd Smink 2023-12-11 17:03:54 +01:00 committed by GitHub
parent 11048483d3
commit 822c398655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 10 deletions

View File

@ -28,20 +28,20 @@
<permission name="set-params" value="true"/> <permission name="set-params" value="true"/>
<permission name="set-vars" value="false"> <permission name="set-vars" value="false">
<!-- default to "deny" or "allow" --> <!-- 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 --> <!-- 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-list default="deny">
<variable name="caller_id_name"/> <variable name="caller_id_name type="allow""/>
<variable name="hangup"/> <variable name="hangup"/>
</variable-list> </variable-list>
--> -->
</permission> </permission>
<permission name="get-vars" value="false"> <permission name="get-vars" value="false">
<!-- default to "deny" or "allow" --> <!-- 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 --> <!-- 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-list default="deny">
<variable name="caller_id_name"/> <variable name="caller_id_name type="allow""/>
<variable name="hangup"/> <variable name="hangup"/>
</variable-list> </variable-list>
--> -->
@ -50,17 +50,17 @@
<permission name="execute-apps" value="true"> <permission name="execute-apps" value="true">
<!-- default to "deny" or "allow" --> <!-- default to "deny" or "allow" -->
<application-list default="deny"> <application-list default="deny">
<!-- type attr can be "deny" or "allow" nothing defaults to opposite of the list default so allow in this case --> <!-- type attr can be "deny" or "allow". Nothing defaults to opposite of the list default, so allow in this case -->
<application name="info"/> <application name="info" type="allow"/>
<application name="hangup"/> <application name="hangup"/>
</application-list> </application-list>
</permission> </permission>
<permission name="expand-vars-in-tag-body" value="false"> <permission name="expand-vars" value="false">
<!-- default to "deny" or "allow" --> <!-- 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 --> <!-- 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-list default="deny">
<variable name="caller_id_name"/> <variable name="caller_id_name" type="allow"/>
<variable name="hangup"/> <variable name="hangup"/>
</variable-list> </variable-list>
@ -84,6 +84,9 @@
<!-- default url can be overridden by app data --> <!-- 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://www.freeswitch.org/api/index.cgi" />
<!-- default method (GET|POST|PUT) that mod_httapi will use for making requests. This parameter can be overridden in dialplan, inside curly braces. -->
<param name="method" value="GET"/>
<!-- set this to provide authentication credentials to the server --> <!-- set this to provide authentication credentials to the server -->
<!--<param name="gateway-credentials" value="muser:mypass"/>--> <!--<param name="gateway-credentials" value="muser:mypass"/>-->
<!--<param name="auth-scheme" value="basic"/>--> <!--<param name="auth-scheme" value="basic"/>-->