[Freeswitch-users] Dialplan conditions for limitations

Yücel ALTUNAY is.yaltunay at gmail.com
Fri Mar 24 15:24:34 MSK 2017


Hi,
I have 3 extensions (1001, 1002, 1003) and i want to limit some calls
written below

*Ext               Can Call                    Cant't Call*
1001            1002,1003
1002            1001                          1003
1003            1001                          1002

I wrote condition below;

    <extension name="Local_Extension">
      <condition regex="any">
      <regex field="destination_number" expression="^(1001)$"/>
      <regex field="caller_id_number" expression="^(1001)$"/>
      .......
      <action application="bridge" data="user/${dialed_extension}@
${domain_name}"/>
      <!-- To test anti-action -->
          <anti-action application="answer"/>
          <anti-action application="sleep" data="1000"/>
          <anti-action application="bridge"
data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/>


In this case 1002 and 1003 can call 1001, and can't call each other, but
when i want to call 1002 or 1003 from 1001, on 1001's screen i see a
incoming call from others.


How can i solve this case.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170324/6e93b3fb/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list