A
A
aak42018-06-18 14:36:04
Telephony
aak4, 2018-06-18 14:36:04

How to restrict dialing in FreeSwitch?

Hello. freeswitch is up on centos 7.2. I can't figure out how to restrict users to calls to a specific area code. You need to be able to call anywhere except 83536. In this extension, as you can see, you can dial absolutely any number.

<extension name="international.gateway1">
      <condition field="${toll_allow}" expression="international"/>
      <condition field="destination_number" expression="^(0\d{1}|\d{5,25})$">
        <action application="bridge" data="sofia/gateway/gateway1/$1"/>
      </condition>
    </extension>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wexter, 2018-06-18
@aak4

<extension name="international.gateway1">
      <condition field="${toll_allow}" expression="international"/>
      <condition field="destination_number" expression="^83536$" break="on-true"/>
      <condition field="destination_number" expression="^(0\d{1}|\d{5,25})$">
        <action application="bridge" data="sofia/gateway/gateway1/$1"/>
      </condition>
    </extension>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question