Using mod_limit with an outbound gateway in FreeSWITCH
The following channel variables are set when mod_limit is called.
- “limit_realm”
- “limit_id”
- “limit_max”
These channel variables are used at hang up to remove the record. More specifically, the delete is limited by uuid, hostname, realm and id.
<extension name=”Outbound Limit”>
<condition field=”destination_number” expression=”^00″/>
<action application=”limit” data=”$${domain} gw_PROVIDER PROVIDER_CHANNEL_LIMIT nextgw1″/>
<action application=”bridge” data=”sofia/gateway/PROVIDER/1$1″/>
<action application=”transfer” data=”nextgw1″/>
</condition>
</extension>
Categories: FreeSWITCH