07-11-2011 12:51 PM - edited 03-16-2019 05:54 AM
Hello Dears,
I'm trying to block calls to PSTN Network, especially international calls for specific extensions (IP Phones).
I'm not able to do it through the after-hours block calls, because of the destination-pattern I'm using under the dial-peer voice pots
I'm using the following Pattern ( destination-pattern [9] ), when I do press 9 i'm redirected to the PSTN line but no restrictions on calls.
I'm using the following config under the telephony-service:
after-hours block pattern 1 900............
after-hours block pattern 2 90.........
after-hours block pattern 2 90T
but nothing happened.
any idea please
thanks
Ibrahim
07-12-2011 11:54 AM
Hello Ibrahim,
here is a small configuration example for a realy basic german dialplan:
1. Create / define your COR List Members
dial-peer cor custom
name Emergency
name Local
name National
name International
name Mobil
name Service
2. Create the COR Lists for your outgoing dial-peers
dial-peer cor list CallNotruf
member Notruf
dial-peer cor list CallLocal
member Local
dial-peer cor list CallNational
member National
dial-peer cor list CallInternational
member International
dial-peer cor list CallService
member Service
dial-peer cor list CallMobil
member Mobil
3. Assign the created COR-Lists to the dial-peers
dial-peer voice 1 pots
description ***Notruf***
destination-pattern 011[02]$
corlist outgoing CallEmergency
prefix 11
port 0/0/0
dial-peer voice 2 pots
description ***Local Calls 1st***
destination-pattern 01[2-9]T
corlist outgoing CallLocal
prefix 1
port 0/0/0
dial-peer voice 3 pots
description ***Local Calls 2nd***
destination-pattern 0[2-9]T
corlist outgoing CallLocal
port 0/0/0
dial-peer voice 4 pots
description ***National - only an example !!!!***
destination-pattern 00[2-8]T
corlist outgoing CallNational
prefix 0
port 0/0/0
dial-peer voice 5 pots
description ***International***
destination-pattern 000[1-9]T
corlist outgoing CallInternational
prefix 00
port 0/0/0
dial-peer voice 6 pots
description ***Mobiltelefon***
destination-pattern 001[5-7]T
corlist outgoing CallMobil
prefix 01
port 0/0/0
dial-peer voice 7 pots
description ***International***
destination-pattern 0[0]900T
corlist outgoing CallService
port 0/0/0
4. Create COR Lists for the client's / phone's
dial-peer cor list Manager
member Emergency
member Local
member National
member International
member Service
dial-peer cor list Employee
member Emergency
member Local
member National
member International
dial-peer cor list Visitor
member Emergency
dial-peer cor list Public
5. Assign the COR to the ephone's
ephone-dn 1
corlist incoming Manager
ephone-dn 2
corlist incoming Employee
ephone-dn 3
corlist incoming Visitor
ephone-dn 4
corlist incoming Public
Kind regards,
Marcel Ammann
P.S.: Please rate helpful posts
07-12-2011 12:46 PM
Hi Marcel,
I Appreciate your help Dear,
I'm gonaa do all tests tomorrow & let you know the results.
Thanks in Advance
Ibrahim
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: