cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
549
Views
0
Helpful
1
Replies

Time based dial plan configuration

Ehsan M.
Level 1
Level 1

Hello experts!

We're trying to maximize security on our VOIP Gateway to avoid being victimized by long distance/international toll fraud. In efforts to address this concern, we're looking to somehow deploy a time based dial plan on our gateway (2821) which based on that it automatically shutdown outbound international dial peer for any calls made during off work hours (i.e 7pm- 7am including weekends):

!

dial-peer voice 119 pots

destination-pattern 01T

port 0/0/0:23

forward-digits 16

!

I understand this can be done inside Callmanager (we're running Callmanager 4.1(3)) as well but for extra security pre-caution we'd like to have it on our gateway preferably. Is there any way to accomplish this task on a 2821 VOIP Gateway?

Thanks,

1 Reply 1

You can use kron command.

This is an example:


kron occurrence NIGHT at 20:00 recurring
policy-list SHUT_DIALPEER

kron occurrence DAY at 8:00 recurring
policy-list NOSHUT_DIALPEER


kron policy-list SHUT_DIALPEER
cli dial-peer voice 119 pots
cli shutdown

kron policy-list NOSHUT_DIALPEER
cli dial-peer voice 119 pots
cli no shutdown

Regards.

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: