cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1720
Views
0
Helpful
14
Replies

Blocking Calls

I am trying to configure dial-peer to block calls to different extensions, the router already have configured the following
and configured to define that extencion nations can make calls or only extenciones

dial-peer cor custom
name internal
name AGC-local
name AGC-longdistance
name AGC-international
!
!
dial-peer cor list call-internal
member internal
!
dial-peer cor list AGC-call-local
member AGC-local
!
dial-peer cor list AGC-call-longdistance
member AGC-longdistance
!
dial-peer cor list AGC-call-international
member AGC-international
!
dial-peer cor list user-internal
member internal
!
dial-peer cor list AGC-user-local
member internal
member AGC-local
!
dial-peer cor list AGC-user-longdistance
member internal
member AGC-local
member AGC-longdistance
!
dial-peer cor list AGC-user-international
member internal
member AGC-local
member AGC-longdistance
member AGC-international
!
!
dial-peer voice 1000 voip
description ***Unity-Express***
destination-pattern 2...
session protocol sipv2
session target ipv4:10.68.202.3
dtmf-relay rtp-nte
codec g711ulaw
no vad
!
dial-peer voice 10 pots
translation-profile incoming Inbound-Calls
translation-profile outgoing outbound_calls
destination-pattern 9.T
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
incoming called-number .T
direct-inward-dial
port 0/0/0:1
!
dial-peer voice 100 voip
incoming called-number 1...
!
dial-peer voice 1001 voip
description ***Prompt-Management***
destination-pattern 2002
session protocol sipv2
session target ipv4:10.68.202.3
dtmf-relay rtp-nte
codec g711ulaw
no vad
!
dial-peer voice 1002 voip
description Main Number
destination-pattern 8700
session protocol sipv2
session target ipv4:10.68.202.3
dtmf-relay rtp-nte
codec g711ulaw
no vad
!

if they could help me i would appreciate it

 
2 Accepted Solutions

Accepted Solutions

Hi,

If you share any configuration later on, please share as attachment ONLY.

As Mohit has mentioned before, you need to break your POTS dial peer if you want to apply separate restrictions to phones.

Considering following are your outbound dial peers;

dial-peer voice 10 pots
translation-profile incoming Inbound-Calls
translation-profile outgoing outbound_calls
destination-pattern 900T
corlist outgoing AGC-call-international
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
incoming called-number .T
direct-inward-dial
port 0/0/0:1
!
dial-peer voice 100 pots
translation-profile incoming Inbound-Calls
translation-profile outgoing outbound_calls
destination-pattern 90T
corlist outgoing AGC-call-longdistace
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
incoming called-number .T
direct-inward-dial
port 0/0/0:1
!
dial-peer voice 1000 pots
translation-profile incoming Inbound-Calls
translation-profile outgoing outbound_calls
destination-pattern (9[1-9]T)
corlist outgoing AGC-call-local
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
incoming called-number .T
direct-inward-dial
port 0/0/0:1

Let say you want ephone-dn 1 to allow only local calls, then you need to assign respective corlist to ephone-dn 1 and doing so, this will restrict DN 1 to use only dial peer 1000 for outbound calls.

ephone-dn 1 <<only local calls and will select DP 1000>>

  corlist inbound AGC-call-local

Similarly say ephone-dn 2 to allow only long distance calls;

ephone-dn 2 <<only long distance calls and will select DP 100>>

  corlist inbound AGC-call-longdistance

Ephone-dn 3 to allow only international calls;

ephone-dn 3 <<only international calls and will select DP 10>>

  corlist inbound AGC-call-international

By the way, you would like user to allow local and long distance calls also who are allowed to call international. In that case, you would change corlist as follows;

dial-peer corlist AGC-call-longdistance

  member AGC-local

  member AGC-longdistance

dial-peer corlist AGC-call-international

  member AGC-local

  member AGC-longdistance

  member AGC-international

- Vivek

View solution in original post

Seems you have not configured 'id mac' command under pool, so configure that first before applying corlist.

- Vivek

View solution in original post

14 Replies 14

More details please. Are you using CME, CUCM, SIP, SCCP?

Hi Mophammed, I use CME what I want is to give privileges to each extension, only some can make international calls

Hi Hector,

The dial peer for "10" is a general dial peer which will allow calls to local,national and international numbers. If you want to block some extension from making international calls  then you need to create separate dial peer for international (900T), national (90T) or local (9[1-9]T) and assign the dial peer a cor list in outbound direction. For ex;

 dial-peer voice <> pots

desc *** International calls***

destination-pattern 900T

corlist outgoing AGC-call-international

Now only the phones with incoming COR list "AGC-user-international" will be able to make international calls.

ephone-dn 1

number XYZ

cor incoming AGC-user-international

Other phones which does not have this COR list will not be able to international call.

because try adding the corset on the dial peer voice 10 pots and I accepted the command but seeing settings did not show me the corlist

just to be sure the settings would be as follows:

dial-peer voice 10 pots
translation-profile incoming Inbound-Calls
translation-profile outgoing outbound_calls
destination-pattern 900T
corlist outgoing AGC-call-international
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
incoming called-number .T
direct-inward-dial
port 0/0/0:1
!
!
!
dial-peer voice 100 pots
translation-profile incoming Inbound-Calls
translation-profile outgoing outbound_calls
destination-pattern 90T
corlist outgoing AGC-call-longdistace
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
incoming called-number .T
direct-inward-dial
port 0/0/0:1
!
!
!
dial-peer voice 10 pots
translation-profile incoming Inbound-Calls
translation-profile outgoing outbound_calls
destination-pattern (9[1-9]T)
corlist outgoing AGC-call-local
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
incoming called-number .T
direct-inward-dial
port 0/0/0:1
!

Hi,

Did you also assign the correct corlist to ephone-dn (inbound dial peer)?

Please share the current show run and your exact requirement so that we can assist you accordingly.

- Vivek

This is the configuration that has the router:

voice-card 0
dspfarm
dsp services dspfarm
!
!
voice rtp send-recv
!
voice service voip
ip address trusted list
ipv4 10.0.0.0 255.0.0.0
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
no supplementary-service h450.2
no supplementary-service h450.3
supplementary-service h450.12
no supplementary-service sip moved-temporarily
no supplementary-service sip refer
redirect ip2ip
fax protocol pass-through g711ulaw
modem passthrough nse codec g711ulaw
h323
call start slow
sip
bind control source-interface GigabitEthernet0/0.20
bind media source-interface GigabitEthernet0/0.20
registrar server
no update-callerid
!
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g729r8
codec preference 3 g729br8
!
voice class h323 1
h225 timeout tcp establish 3
h225 timeout setup 2
call start slow
no telephony-service ccm-compatible
no ccm-compatible
!
!
!
voice class custom-cptone jointone
dualtone conference
frequency 400 800
cadence 400 50 200 50 200 50
!
voice class custom-cptone leavetone
dualtone conference
frequency 400 800
cadence 400 50 200 50 200 50
!
!
voice register pool-type 8831
phoneload-support
num-lines 3
description SIP Phone 8831
reference-pooltype 6941
!
voice register global
mode cme
source-address 10.68.202.2 port 5060
max-dn 200
max-pool 100
load 7841 sip78xx.10-1-1SR1-4.loads
timezone 8
date-format D/M/Y
hold-alert
voicemail 2000
tftp-path flash:
file text
create profile sync 0002473102498826
camera
video
!
voice register dn 1
number 2801
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Sean Ohnishi
label Sean Ohnishi
!
voice register dn 2
number 2802
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Justino Salvador
label Justino Salvador
!
voice register dn 3
number 2850
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Sergio Gutierrez
label Sergio Gutierrez
!
voice register dn 4
number 2804
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Paulo Silva
label Paulo Silva
!
voice register dn 5
number 2805
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Don Gil Montoya
label Don Gil Montoya
!
voice register dn 6
number 2806
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Carlos Sanchez
label Carlos Sanchez
!
voice register dn 7
number 2808
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
label Kazuhito Hida x2808
!
voice register dn 9
number 70
name PAGING
label PAGING
!
voice register dn 10
number 2817
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Omar Alvarado
label Omar Alvarado
!
voice register dn 11
number 2832
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Gabriela Flores
label Gabriela Flores
!
voice register dn 12
number 70
huntstop
label PAGING
!
voice register dn 15
number 2815
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Israel Harrera
label Israel Herrera
!
voice register dn 16
number 2816
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Roberto Garcia
label Roberto Garcia
!
voice register dn 20
number 2820
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Mikio Takano
label Mikio Takano
!
voice register dn 21
number 2821
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Seigo Saito
label Seigo Saito
!
voice register dn 22
number 2822
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Enrique Plazola
label Enrique Plazola
!
voice register dn 30
number 2830
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Ivette Quintana
label Ivette Quintana
!
voice register dn 31
number 2831
call-forward b2bua all 2832
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
shared-line
label Monica Leyva
!
voice register dn 33
number 2833
name Amelia Moncada
label Amelia Moncada
!
voice register dn 35
number 2835
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Jorge de la Cruz
label Jorge de la Cruz
!
voice register dn 36
number 2836
name Hector Barrios
label Hector Barrios
!
voice register dn 65
number 2865
name SALA HUASTECA
label SALA HUASTECA
!
voice register dn 66
number 2866
name SALA XILITLA
label SALA XILITLA
!
voice register dn 67
number 2867
name SALA ALTIPLANO
label SALA ALTIPLANO
!
voice register dn 68
number 2868
name SALA TOLTECA
label SALA TOLTECA
!
voice register dn 69
number 2869
name SALA AZTECA
label SALA AZTECA
!
voice register dn 71
number 2871
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
name Spare 1
label Spare 1
!
voice register dn 72
number 2872
call-forward b2bua busy 2000
call-forward b2bua noan 2000 timeout 18
label Spare 2
!
voice register dn 73
number 2873
label Sala Maya Room
!
voice register dn 100
number 2875
name Guard House
label Guard House
!
voice register dn 110
number 2875
call-forward b2bua busy 2800
call-forward b2bua noan 2800 timeout 28
name Guard House
label Guard House
!
voice register pool 1
busy-trigger-per-button 2
id mac 5067.AEE2.D548
type 7841
number 1 dn 1
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 2
busy-trigger-per-button 2
id mac 5067.AEE2.D5B4
type 7841
number 1 dn 2
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 3
busy-trigger-per-button 2
id mac 5067.AEE2.D4BD
type 7841
number 1 dn 3
dtmf-relay rtp-nte
voice-class codec 1
username Sgutierrez password 12345
no vad
!
voice register pool 4
busy-trigger-per-button 2
id mac 5067.AEE2.D574
type 7841
number 1 dn 4
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 5
busy-trigger-per-button 2
id mac 5067.AEE2.D508
type 7841
number 1 dn 5
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 6
busy-trigger-per-button 2
id mac 5067.AEE2.D46B
type 7841
number 1 dn 6
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 7
busy-trigger-per-button 2
id mac 1231.1234.1234
type 7841
voice-class codec 1
!
voice register pool 8
busy-trigger-per-button 2
id mac 1839.1900.23D9
number 1 dn 9
dtmf-relay rtp-nte
username 70 password 1234
codec g711ulaw
no vad
!
voice register pool 9
id mac 1839.1900.23D9
type 7906
!
voice register pool 10
busy-trigger-per-button 2
id mac 5067.AEE2.D397
type 7841
number 1 dn 11
voice-class codec 1
!
voice register pool 15
busy-trigger-per-button 2
id mac 5067.AEE2.D530
type 7841
number 1 dn 15
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 16
busy-trigger-per-button 2
id mac 5067.AEE2.D557
type 7841
number 1 dn 16
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 20
busy-trigger-per-button 2
id mac 5067.AEE2.D486
type 7841
number 1 dn 20
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 21
busy-trigger-per-button 2
id mac 5067.AEE2.D320
type 7841
number 1 dn 21
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 22
busy-trigger-per-button 2
id mac 5067.AEE2.D4FB
type 7841
number 1 dn 22
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 30
busy-trigger-per-button 2
id mac 5067.AEE2.D312
type 7841
number 1 dn 30
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 33
busy-trigger-per-button 2
id mac 5067.AEE2.D475
type 7841
number 1 dn 33
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 35
busy-trigger-per-button 2
id mac 5067.AEE2.D4A1
type 7841
number 1 dn 35
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 36
busy-trigger-per-button 2
id mac 5067.AEE2.D415
type 7841
number 1 dn 36
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 65
busy-trigger-per-button 2
id mac AC44.F212.0EE3
type 8831
number 1 dn 65
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 66
busy-trigger-per-button 2
id mac AC44.F211.F9F8
type 8831
number 1 dn 66
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 67
busy-trigger-per-button 2
id mac AC44.F212.2655
type 8831
number 1 dn 67
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 68
busy-trigger-per-button 2
id mac AC44.F212.2655
type 8831
number 1 dn 68
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 69
busy-trigger-per-button 2
id mac AC44.F212.250B
type 8831
number 1 dn 69
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 71
busy-trigger-per-button 2
id mac 5067.AEE2.D378
type 7841
number 1 dn 71
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 72
busy-trigger-per-button 2
id mac 5067.AEE2.D2FE
type 7841
number 1 dn 10
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
voice register pool 73
busy-trigger-per-button 2
id mac 5067.AEE2.D47A
type 7841
number 1 dn 7
voice-class codec 1
username khida password 12345
!
voice register pool 100
busy-trigger-per-button 2
id mac 5067.AEE2.D525
type 7841
number 1 dn 110
presence call-list
dtmf-relay rtp-nte
voice-class codec 1
no vad
camera
video
!
!
!
voice translation-rule 2
rule 15 /^\(....\)/ /4408702800\1/
!
!
voice translation-profile outbound_calls
translate calling 2
!
!
!
license udi pid CISCO2921/K9 sn FJC1849A1EG
license accept end user agreement
license boot module c2900 technology-package uck9
hw-module ism 0
!
hw-module pvdm 0/0
!
!
!
file privilege 0
vtp mode transparent
username ccongos privilege 15 password 7 03500E2C0A0022471D50
username logicalis privilege 15 secret 5 $1$j5NB$ayySV3ATWt/1DGNAB3Srg1
username admin privilege 15 secret 5 $1$HUR8$giM.ZaAu9cjNOSnYpj3du.
!
redundancy
!
!
controller E1 0/0/0
framing NO-CRC4
ds0-group 1 timeslots 1-15,17-22 type r2-digital r2-compelled ani
cas-custom 1
country telmex
category 2
answer-signal group-b 1
caller-digits 4
dnis-digits min 4 max 13
dnis-complete
timer interdigit incoming 1000
groupa-callerid-end
!
no ip ftp passive
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
description Connection to Core
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 10.68.X.X 255.255.255.0
!
interface ISM0/0
description Cisco Unity Express Voicemail
ip unnumbered GigabitEthernet0/0.20
service-module ip address 10.68.202.3 255.255.255.0
!Application: CUE Running on ISM
service-module ip default-gateway 10.68.202.2
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/2
no ip address
shutdown
duplex auto
speed auto
!
interface ISM0/1
no ip address
!
interface Vlan1
no ip address
!
ip forward-protocol nd
!
ip http server
ip http authentication local
no ip http secure-server
ip http timeout-policy idle 60 life 86400 requests 10000
ip http path flash0:GUI
!
ip route 0.0.0.0 0.0.0.0 10.68.202.1
ip route 10.68.X.X 255.255.255.255 ISM0/0
!
!
ixi transport http
response size 4
no shutdown
request outstanding 1
!
ixi application cme
shutdown
!
!
snmp-server community AGCAApublic RO
snmp-server community a6c5nmp RW
tftp-server flash0:Analog1.raw
tftp-server flash0:Analog2.raw
tftp-server flash0:AreYouThere.raw
tftp-server flash0:AreYouThereF.raw
tftp-server flash0:Bass.raw
tftp-server flash0:CallBack.raw
tftp-server flash0:Chime.raw
tftp-server flash0:Classic1.raw
tftp-server flash0:Classic2.raw
tftp-server flash0:ClockShop.raw
tftp-server flash0:DistinctiveRingList.xml
tftp-server flash0:Drums1.raw
tftp-server flash0:Drums2.raw
tftp-server flash0:FilmScore.raw
tftp-server flash0:HarpSynth.raw
tftp-server flash0:Jamaica.raw
tftp-server flash0:KotoEffect.raw
tftp-server flash0:MusicBox.raw
tftp-server flash0:Piano1.raw
tftp-server flash0:Piano2.raw
tftp-server flash0:Pop.raw
tftp-server flash0:Pulse1.raw
tftp-server flash0:Ring1.raw
tftp-server flash0:Ring2.raw
tftp-server flash0:Ring3.raw
tftp-server flash0:Ring4.raw
tftp-server flash0:Ring5.raw
tftp-server flash0:Ring6.raw
tftp-server flash0:Ring7.raw
tftp-server flash0:RingList.xml
tftp-server flash0:Sax1.raw
tftp-server flash0:Sax2.raw
tftp-server flash0:Vibe.raw
tftp-server flash0:moh.au
tftp-server flash0:SCCP6911.9-2-1-a.loads
tftp-server flash0:SCCP6901.9-2-1-a.loads
tftp-server flash0:KNL6911SCCP.9-2-1-a.zz.sgn
tftp-server flash0:KNL6901SCCP.9-2-1-a.zz.sgn
tftp-server flash0:BFS6911SCCP.9-2-1-a.zz.sgn
tftp-server flash0:APP6911SCCP.9-2-1-a.zz.sgn
tftp-server flash0:APP6901SCCP.9-2-1-a.zz.sgn
tftp-server flash0:sip78xx.10-2-1-12SR1-4.loads
tftp-server flash0:sboot78xx.10-2-1-12SR1-4.sbn
tftp-server flash0:rootfs78xx.10-2-1-12SR1-4.sbn
tftp-server flash0:kern78xx.10-2-1-12SR1-4.sbn
tftp-server flash0:SCCP69xx.9-4-1-3SR1.zz.sgn
tftp-server flash0:SCCP69xx.9-4-1-3SR1.loads
tftp-server flash0:DSP69xx.12-4-122-99.131025.zz.sgn
access-list 50 permit 10.68.202.3
access-list 50 permit 10.68.202.0 0.0.0.255
access-list 50 remark -=[Control CUCME Web Access]=-
access-list 50 remark
!
control-plane
!
!
voice-port 0/0/0:1
cptone MX
!
voice-port 0/1/0
!
voice-port 0/1/1
!
voice-port 0/2/0
!
voice-port 0/2/1
!
voice-port 0/2/2
!
voice-port 0/2/3
!
voice-port 0/3/0
!
voice-port 0/3/1
!
voice-port 0/3/2
!
voice-port 0/3/3
!
!
!
!
!
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!
!
!
!
dial-peer cor custom
name internal
name AGC-local
name AGC-longdistance
name AGC-international
!
!
dial-peer cor list call-internal
member internal
!
dial-peer cor list AGC-call-local
member AGC-local
!
dial-peer cor list AGC-call-longdistance
member AGC-longdistance
!
dial-peer cor list AGC-call-international
member AGC-international
!
dial-peer cor list user-internal
member internal
!
dial-peer cor list AGC-user-local
member internal
member AGC-local
!
dial-peer cor list AGC-user-longdistance
member internal
member AGC-local
member AGC-longdistance
!
dial-peer cor list AGC-user-international
member internal
member AGC-local
member AGC-longdistance
member AGC-international
!
!
dial-peer voice 1000 voip
description ***Unity-Express***
destination-pattern 2...
session protocol sipv2
session target ipv4:10.68.202.3
dtmf-relay rtp-nte
codec g711ulaw
no vad
!
dial-peer voice 10 pots
translation-profile incoming Inbound-Calls
translation-profile outgoing outbound_calls
destination-pattern 9.T
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
incoming called-number .T
direct-inward-dial
port 0/0/0:1
!
dial-peer voice 100 voip
incoming called-number 1...
!
dial-peer voice 1001 voip
description ***Prompt-Management***
destination-pattern 2002
session protocol sipv2
session target ipv4:10.68.202.3
dtmf-relay rtp-nte
codec g711ulaw
no vad
!
dial-peer voice 1002 voip
description Main Number
destination-pattern 8700
session protocol sipv2
session target ipv4:10.68.202.3
dtmf-relay rtp-nte
codec g711ulaw
no vad
!
!
sip-ua
mwi-server ipv4:10.68.202.2 expires 3600 port 5060 transport udp unsolicited
!
!
!
gatekeeper
shutdown
!
!
telephony-service
no auto-reg-ephone
authentication credential cisco cisco
authentication credential admin cisco
max-ephones 100
max-dn 200
ip source-address 10.68.202.2 port 2000
auto assign 1 to 100
auto assign 1 to 100 type 6921
system message ***CHANGE-ME***
url directories http://10.68.202.2/localdirectory
url services http://10.68.202.3/voiceview/common/login.do
url authentication http://10.68.202.2/CCMCIP/authenticate.asp
cnf-file location flash:
cnf-file perphone
load 6921 SCCP69xx.9-4-1-3SR1
load 6901 SCCP6901.9-2-1-a
time-zone 8
date-format dd-mm-yy
keepalive 60
voicemail 2000
max-conferences 8 gain -6
call-forward pattern .T
call-forward system redirecting-expanded
moh enable-g711 "flash0:moh.au"
web admin system name admin password cisco
web admin customer name customer secret 5 $1$UcnC$f1n7y2zPLcAJ7e4gClSZ.1
dn-webedit
time-webedit
transfer-system full-consult
transfer-pattern .T
secondary-dialtone 9
create cnf-files version-stamp Jan 01 2002 00:00:00
!
!
ephone-template 1
softkeys hold Newcall Resume
softkeys idle Newcall Redial Cfwdall Dnd
softkeys seized Redial Endcall Cfwdall
softkeys alerting Endcall
softkeys connected Hold Endcall Trnsfer Confrn
keepalive 60
type 7960
!
!
ephone-dn 1
number 2881
label Recibo - 2881
description Recibo - 2881
!
!
ephone-dn 2
number 2860
label Carlos Chavira
description Carlos Chavira
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 3 dual-line
number 2823
label Arturo Campos
description Arturo Campos
name Arturo Campos
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 4 dual-line
number 2818
label Emilio Romero
description Emilio Romero
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 5 dual-line
number 2861
label Maria Villalpando
description Maria Villalpando
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 6
number 2834
label Nurse
description Nurse
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 7 dual-line
number 2851
label Ana Palau
description Ana Palau
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 8 dual-line
number 2852
label Homero Meneses
description Homero Meneses
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 9 dual-line
number 2853
label Ivan Rodriguez
description Ivan Rodriguez
name test
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 10 dual-line
number 2854
label QA Lab
description QA Lab
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 11
number 2882
label Shipping - 2882
description Shipping
name Shipping
call-forward busy 2000
call-forward noan 2000 timeout 10
hold-alert 30 originator
!
!
ephone-dn 12
number 2904
label Layup - 2904
description Layup
call-forward busy 2000
call-forward noan 2000 timeout 10
hold-alert 30 originator
!
!
ephone-dn 13 dual-line
number 2862
label Maria Jose Villalpando
description Maria Jose Villalpando
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 14 dual-line
number 2900
label C&G
!
!
ephone-dn 15 dual-line
number 2906
label NIP
description NIP-2906
!
!
ephone-dn 16 dual-line
number 2905
label Loading
description Loading - 2905
!
!
ephone-dn 17 dual-line
number 2901
label Printing
description Printing-2901
!
!
ephone-dn 18 dual-line
number 2902
label Palletizing
description Palletizing-2902
!
!
ephone-dn 19 dual-line
number 2883
label Warehouse
description Warehouse-2883
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 20 dual-line
number 2907
label FINAL INSPECTION
description FINAL INSPECTION
!
!
ephone-dn 21 dual-line
number 2870
label 2870
description IT Room - 2870
!
!
ephone-dn 22 dual-line
number 2837
label Veronica Fuentes
description Veronica Fuentes
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 23 dual-line
number 2807
label Oswaldo Guerrero
description Oswaldo Guerrero
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 24 dual-line
number 2824
label Cristhian Martinez
description Cristhian Martinez
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 25 dual-line
number 2878
label Maintenance
description Maintenance
name Maintenance
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 26 dual-line
number 2809
label Alan Vazquez
description Alan Vazquez
name Alan Vazquez
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 27 dual-line
number 2876
label Cafeteria
description Cafeteria
call-forward busy 2000
call-forward noan 2000 timeout 18
!
!
ephone-dn 28 dual-line
number 2838
label Janette Lopez x2838
description Janette Lopez x2838
name Janette Lopez
call-forward busy 2000
call-forward noan 2000 timeout 38
!
!
ephone-dn 29 dual-line
number 2910
label Recepcisn x2910
description Recepcisn x2910
!
!
ephone-dn 30 dual-line
number 2813
label Temporal
description Temporal
!
!
ephone-dn 31 dual-line
number 2810
label Receptionist
description x2810 Receptionist
call-forward busy 2800
call-forward noan 18 timeout 18
!
!
ephone-dn 40
number 2840
label Logicalis Test
description 440-870-2840
name Nick
call-forward busy 2000
call-forward noan 2000 timeout 10
hold-alert 30 originator
!
!
ephone-dn 100
number 1000....
mwi off
!
!
ephone-dn 101
number 1001....
mwi on
!
!
ephone 1
mac-address E0D1.730A.9830
max-calls-per-button 2
type 6901
button 1:1
!
!
!
ephone 2
mac-address 8480.2D77.7EEB
max-calls-per-button 2
type 6901
button 1:11
!
!
!
ephone 3
mac-address 0C27.24BB.3429
type 6921
button 1:2
!
!
!
ephone 4
mac-address 0C27.24BB.3423
username "Acampos"
type 6921
button 1:3
!
!
!
ephone 5
mac-address E0D1.730A.985B
max-calls-per-button 2
type 6901
button 1:18
!
!
!
ephone 6
mac-address E0D1.730A.9A7C
max-calls-per-button 2
type 6901
button 1:14
!
!
!
ephone 7
mac-address E0D1.730A.9A08
max-calls-per-button 2
type 6901
button 1:12
!
!
!
ephone 8
mac-address E0D1.730B.EA38
max-calls-per-button 2
type 6901
button 1:20
!
!
!
ephone 9
mac-address 0227.24BB.3423
type 6921
!
!
!
ephone 10
mac-address 0C27.24BB.049B
type 6921
button 1:9
!
!
!
ephone 11
mac-address 44AD.D9BC.3C3B
type 6921
button 1:6
!
!
!
ephone 12
mac-address 0C27.24BB.157E
type 6921
button 1:4
!
!
!
ephone 13
mac-address 0C27.24BB.04B4
type 6921
button 1:7
!
!
!
ephone 14
mac-address 0C27.24BB.1571
type 6921
button 1:8
!
!
!
ephone 15
mac-address E0D1.730A.9572
max-calls-per-button 2
type 6901
button 1:27
!
!
!
ephone 16
mac-address A493.4CBF.EB48
type 6921
button 1:2
!
!
!
ephone 17
mac-address E0D1.730A.9B0D
max-calls-per-button 2
type 6901
button 1:15
!
!
!
ephone 18
mac-address E0D1.730A.99A3
max-calls-per-button 2
type 6901
button 1:16
!
!
!
ephone 19
mac-address 5CFC.665C.F8F3
max-calls-per-button 2
type 6901
button 1:17
!
!
!
ephone 20
mac-address 0C27.24BB.1614
type 6921
button 1:19
!
!
!
ephone 21
mac-address 0C27.24BB.1488
type 6921
button 1:22
!
!
!
ephone 22
mac-address A493.4CBF.EB38
username "oguerrero"
type 6921
button 1:23
!
!
!
ephone 23
mac-address A493.4CBF.EB6D
username "cmartinez"
type 6921
button 1:24
!
!
!
ephone 24
mac-address D48C.B527.EC41
username "Maintenance"
type 6921
button 1:25
!
!
!
ephone 25
mac-address A493.4CBF.EB68
username "QALaB"
type 6921
button 1:10
!
!
!
ephone 26
mac-address A493.4CBF.ECB1
username "avazquez"
type 6921
button 1:26
!
!
!
ephone 27
mac-address A493.4CBF.CAE8
username "jlopez"
type 6921
button 1:28
!
!
!
ephone 28
mac-address D48C.B527.EB1E
username "Receptionist"
type 6921
button 1:31
!
!
!
ephone 29
mac-address A493.4CBF.EB5B
type 6921
button 1:30
!
!
!
ephone 40
mac-address 40A8.F064.739E
max-calls-per-button 2
type CIPC
button 1:40
!
!
!
ephone 100
!
!
!
ephone 110
!
!
!
!
line con 0
login local
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line 131
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
access-class 23 in
exec-timeout 60 0
privilege level 15
login local
transport input telnet ssh
!
scheduler allocate 20000 1000
ntp master 3
ntp server 10.68.207.2
!
end

Hi,

If you share any configuration later on, please share as attachment ONLY.

As Mohit has mentioned before, you need to break your POTS dial peer if you want to apply separate restrictions to phones.

Considering following are your outbound dial peers;

dial-peer voice 10 pots
translation-profile incoming Inbound-Calls
translation-profile outgoing outbound_calls
destination-pattern 900T
corlist outgoing AGC-call-international
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
incoming called-number .T
direct-inward-dial
port 0/0/0:1
!
dial-peer voice 100 pots
translation-profile incoming Inbound-Calls
translation-profile outgoing outbound_calls
destination-pattern 90T
corlist outgoing AGC-call-longdistace
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
incoming called-number .T
direct-inward-dial
port 0/0/0:1
!
dial-peer voice 1000 pots
translation-profile incoming Inbound-Calls
translation-profile outgoing outbound_calls
destination-pattern (9[1-9]T)
corlist outgoing AGC-call-local
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
incoming called-number .T
direct-inward-dial
port 0/0/0:1

Let say you want ephone-dn 1 to allow only local calls, then you need to assign respective corlist to ephone-dn 1 and doing so, this will restrict DN 1 to use only dial peer 1000 for outbound calls.

ephone-dn 1 <<only local calls and will select DP 1000>>

  corlist inbound AGC-call-local

Similarly say ephone-dn 2 to allow only long distance calls;

ephone-dn 2 <<only long distance calls and will select DP 100>>

  corlist inbound AGC-call-longdistance

Ephone-dn 3 to allow only international calls;

ephone-dn 3 <<only international calls and will select DP 10>>

  corlist inbound AGC-call-international

By the way, you would like user to allow local and long distance calls also who are allowed to call international. In that case, you would change corlist as follows;

dial-peer corlist AGC-call-longdistance

  member AGC-local

  member AGC-longdistance

dial-peer corlist AGC-call-international

  member AGC-local

  member AGC-longdistance

  member AGC-international

- Vivek

Hi Vivek

and started to create the dial-peer, the command if I accept them in ephone-dn but in the voice register dn command does not want me
I have to change all phones registered as voice register to ephone-dn
or is there another way to restrict calls

Check under voice register pool.

- Vivek

vivek a question, does not command me tells me

Router(config-register-pool)#cor incoming AGC-call-longdistance default
Please configure voice-register-pool id first

which it is what I have bad

Seems you have not configured 'id mac' command under pool, so configure that first before applying corlist.

- Vivek

thanks vivek you can now configure

Thanks for updating us back Hector.

- Vivek

Hi vivek

I was a problem with the configuration of the dial-peer
because I set the dial-peer as follows, but without changing the dial-peer 10 which is what gives them permission to make calls
You think does not work because I need to modify settings dial-peer 10

the ephone-dn that desire that has only local calls is the ephone-dn 28

dial-peer voice 1000 voip
 description ***Unity-Express***
 destination-pattern 2...
 session protocol sipv2
 session target ipv4:10.68.202.3
 dtmf-relay rtp-nte
 codec g711ulaw
 no vad
!
dial-peer voice 10 pots
 translation-profile incoming Inbound-Calls
 translation-profile outgoing outbound_calls
 destination-pattern 9.T
 progress_ind alert enable 8
 progress_ind progress enable 8
 progress_ind connect enable 8
 incoming called-number .T
 direct-inward-dial
 port 0/0/0:1
!
dial-peer voice 100 voip
 incoming called-number 1...

!

dial-peer voice 103 pots
translation-profile incoming Inbound-Calls
translation-profile outgoing outbound_calls
destination-pattern 90T
corlist outgoing AGC-user-longdistace
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
incoming called-number .T
direct-inward-dial
port 0/0/0:1
!
dial-peer voice 1004 pots
translation-profile incoming Inbound-Calls
translation-profile outgoing outbound_calls
destination-pattern 9[1-9]T
corlist outgoing AGC-user-local
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
incoming called-number .T
direct-inward-dial
port 0/0/0:1

!

dial-peer voice 1001 voip
 description ***Prompt-Management***
 destination-pattern 2002
 session protocol sipv2
 session target ipv4:10.68.202.3
 dtmf-relay rtp-nte
 codec g711ulaw
 no vad
!
dial-peer voice 1002 voip
 description Main Number
 destination-pattern 8700
 session protocol sipv2
 session target ipv4:10.68.202.3
 dtmf-relay rtp-nte
 codec g711ulaw
 no vad
!

!

!

ephone-dn  28
corlist outgoing AGC-user-local

Getting Started

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: