mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 05:39:54 +05:00
Adding comments to FreeSWITCH dialplan extensions
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
<!--
|
||||
CGRateS config sample.
|
||||
|
||||
Add the bellow defined extensions to your own context before bridge application,
|
||||
ignoring include and context defined here.
|
||||
Add the bellow defined extensions to your own context before bridge application.
|
||||
Ignore include and context defined here for the sake of avoiding errors if directly included in FreeSWITCH dialplan folder.
|
||||
-->
|
||||
|
||||
<include>
|
||||
|
||||
<context name="cgrates">
|
||||
|
||||
<!-- Place all prepaid requests into park app. Notify must be empty so we do not loop. -->
|
||||
<extension name="CGRateS_AuthPrepaid">
|
||||
<condition field="${cgr_reqtype}" expression="^prepaid$" />
|
||||
<condition field="${cgr_notify}" expression="^$">
|
||||
@@ -16,6 +17,7 @@ ignoring include and context defined here.
|
||||
</condition>
|
||||
</extension>
|
||||
|
||||
<!-- In case of CGRateS returning INSUFFICIENT_FUNDS, play the message (if recorded) and disconnect the call with 403. -->
|
||||
<extension name="CGRateS_AuthForbidden">
|
||||
<condition field="${cgr_reqtype}" expression="prepaid" />
|
||||
<condition field="${cgr_notify}" expression="^-INSUFFICIENT_FUNDS$">
|
||||
@@ -24,6 +26,7 @@ ignoring include and context defined here.
|
||||
</condition>
|
||||
</extension>
|
||||
|
||||
<!-- In case of CGRateS returning SYSTEM_ERROR, disconnect the call so we do not risk prepaid calls going out. -->
|
||||
<extension name="CGRateS_Error">
|
||||
<condition field="${cgr_reqtype}" expression="^prepaid$" />
|
||||
<condition field="${cgr_notify}" expression="^-SYSTEM_ERROR$">
|
||||
|
||||
Reference in New Issue
Block a user