Y
Y
Yuri Yusupbaev2016-09-27 10:38:25
FreeSWITCH
Yuri Yusupbaev, 2016-09-27 10:38:25

How to set up a +7 freeswitch dial plan?

Good afternoon. The office has a freeswitch installed on win 2012r2, integrated with Lync server2013. All calls from Lync clients are made through the dialing plan in the friswitch ^\+?(\d{11})$. Everything works when calls go through 8. And how to register a dialplan so that calls from 7 and +7 are available? Here is part of freeswitch.xml config

<!-- Правила обработки вызовов -->
  <section name="dialplan" description="Regex/XML Dialplan">
    <!-- Правила обработки "from_Lync" применяется к профайлу "Lync" при поступлении вызовов от Lync -->
    <context name="from_Lync">
      <!-- Отправляем все вызовы на gateway ТСОП с именем to_PSTN -->
      <!-- Если провайдеров ТСОП больше, чем один, то в этом разделе необходимо указать правила распределения вызовов по провайдерам -->
      <extension name="RouteToPSTN">
        <condition field="destination_number" expression="^\+?(\d{11})">
          <action application="bridge" data="sofia/gateway/to_quickline/$1"/>
          <!--
          <action application="bridge" data="sofia/gateway/to_multifon/$1"/>
          <action application="bridge" data="sofia/gateway/to_telphin/$1" />
          <action application="bridge" data="sofia/gateway/to_sipnet/$1" />
          -->
        </condition>
      </extension>
    </context>

    <!-- Правила обработки "from_PSTN" применяется к профайлам провайдеров телефонии (в папаке pstn) при поступлении вызовов от ТСОП -->
    <context name="from_PSTN">
      <!-- Отправляем все вызовы на gateway с именем to_Lync -->
      <extension name="RouteToLync">
        <condition field="${sip_from_user}" expression="^\+?(\d{11})$">
          <action application="bridge" data="sofia/gateway/to_Lync/+999" />
        </condition>
      </extension>
    </context>
  </section>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2016-09-28
@hostraid

<condition field="destination_number" expression="^\+?[78](\d{10})">
    <action application="bridge" data="sofia/gateway/to_quickline/7$1"/>
</condition>

Y
Yuri Yusupbaev, 2016-09-27
@hostraid

I found such a dial plan "^(+7\d{11})$, but I can only check it in the evening. How can I combine it with "^\+?(\d{11})">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question