|
0:00:15
|
OK, so our next task is 16.4 Class of Restriction for CUCME
|
|
0:00:22
|
and we´re told to configure class of restriction
|
|
0:00:25
|
such that the following phones are able to make the following calls.
|
|
0:00:29
|
Desmon Hume at Branch1 Phone1 which is a skinny phone
|
|
0:00:33
|
with the DN of 3001 should be able to call national
|
|
0:00:37
|
and below. John Locke at Branch2 Phone2 skinny
|
|
0:00:42
|
DN 3002 should be able to call international
|
|
0:00:46
|
James Ford at Branch2 Phone3 SIP phone DN 3003
|
|
0:00:51
|
should be able to call local and below
|
|
0:00:54
|
Hugo Reyes at Branch2 Phone4 SIP phone
|
|
0:00:58
|
DN of 3004 should be able to call international.
|
|
0:01:02
|
Also ensure that any future lines that maybe added at
|
|
0:01:05
|
a later time do not automatically inherit
|
|
0:01:09
|
cor the class of restrictions mentioned above.
|
|
0:01:13
|
OK, so the first thing we need to do
|
|
0:01:16
|
is begin setting up our class of restrictions
|
|
0:01:20
|
based on what we remember learning about
|
|
0:01:25
|
a little bit of go today in the concept slide.
|
|
0:01:31
|
So we need to set up, first of all we need to go to the locksmith
|
|
0:01:35
|
and we need to have him create keys and locks for us
|
|
0:01:39
|
Lock and keys, keys and locks and we remember that
|
|
0:01:42
|
they are the same thing, we do this with the command dial peer
|
|
0:01:46
|
cor the class of restrictions customed
|
|
0:01:50
|
Going to a custom made locksmith and he´s going to give
|
|
0:01:53
|
these locks and keys the name of
|
|
0:01:57
|
I only did LOK for lock or key in the slides
|
|
0:02:01
|
just because I didn´t have that much room to work with.
|
|
0:02:04
|
If I wanted my font size to be readable at all
|
|
0:02:07
|
which I don´t know maybe it wasn´t. So where going to create
|
|
0:02:10
|
lock or key, sometimes I call it lock key
|
|
0:02:15
|
but lock or key local, actually let´s make them all caps.
|
|
0:02:21
|
OK, let´s create lock or key dash national
|
|
0:02:32
|
the name of lock or key dash international
|
|
0:02:40
|
and that´s it. OK, if we remember when we look
|
|
0:02:43
|
back at our first task which had this chart
|
|
0:02:47
|
We were told that emergency calls, anyone was allowed to make
|
|
0:02:51
|
local calls you have that class of restriction of
|
|
0:02:54
|
local, so calss restriction for emergency was none.
|
|
0:02:58
|
There was no class restriction or in other words
|
|
0:03:00
|
all were allowed to call, national was national
|
|
0:03:04
|
international, was international we didn´t have anything about
|
|
0:03:07
|
internal or one person could call another
|
|
0:03:10
|
specifially or only or only certain people could call over
|
|
0:03:15
|
to the Corporate headquarter site, we didn´t have any of that.
|
|
0:03:18
|
So all we need are these three keys and lock combos
|
|
0:03:24
|
OK, so we´re done with the locksmith
|
|
0:03:27
|
do show run | 2 begin with dial dash peer
|
|
0:03:32
|
and we see that we´ve got our custom made
|
|
0:03:36
|
locks and keys. OK, now let´s do
|
|
0:03:42
|
dial peer cor but instead of custom, we´re going to create a list.
|
|
0:03:48
|
The custom was going to the locksmith, the list
|
|
0:03:52
|
is actually where we go and create our doors
|
|
0:03:55
|
so put the locks on and also where we create our
|
|
0:03:58
|
key rings to put the keys on, how do we know which is which?
|
|
0:04:01
|
Well, keep in mind it´s just an analogy to try to help you
|
|
0:04:04
|
keep everything straight, you can call anything
|
|
0:04:08
|
whatever you want and that´s what we do is we call them
|
|
0:04:11
|
according to the analogy to try to remember things. So here
|
|
0:04:14
|
we´re going to create the custom cor list
|
|
0:04:16
|
sorry not the custom, custom was the locks and keys
|
|
0:04:20
|
or we´re going to create the cor list and we´re going to name it door
|
|
0:04:25
|
local. So we just created a door and guess
|
|
0:04:29
|
what we´re going to do, we´re going to add a member which is
|
|
0:04:33
|
and then what I should do, do show run | 2 include
|
|
0:04:40
|
actually | 2 section for custom
|
|
0:04:45
|
OK, so we´re in our door. Alright,
|
|
0:04:48
|
we´re in the door for local and we´re going to give it a member of
|
|
0:04:52
|
lock or key local. Now, I´m going to only copy part of it
|
|
0:04:56
|
and paste it to show, it does have to match
|
|
0:05:00
|
this says that this lock or key low is not defined
|
|
0:05:03
|
and that´s true, it´s not defined.
|
|
0:05:06
|
So it has to be a member that has been defined
|
|
0:05:10
|
in our cor custom and copying and pasting works really well for that.
|
|
0:05:15
|
So we have one door called local and we only put one
|
|
0:05:18
|
lock called local on it. It´s a lock one it´s on the door.
|
|
0:05:21
|
but the key one it´s on the key ring.
|
|
0:05:24
|
OK? So I don´t have to actually hit exit.
|
|
0:05:28
|
I´m just going to create my door called national
|
|
0:05:32
|
and I´m going to put my member called lock or key national on it.
|
|
0:05:40
|
Then I´m going to create my door called international
|
|
0:05:45
|
and I´m going to put my lock called international on it.
|
|
0:05:50
|
Alright, do show run | 2 begin dial peer.
|
|
0:05:54
|
So we can see everything we´ve created so far
|
|
0:05:57
|
So here´s our keys and locks from the locksmith
|
|
0:06:00
|
and here´s our 3 doors with their 3 locks on them.
|
|
0:06:05
|
OK, everyone good so far.
|
|
0:06:08
|
So now we´re going to go create our
|
|
0:06:14
|
we´re still at dial peer cor list, but instead of creating
|
|
0:06:17
|
a door, now we´re going to create our key ring
|
|
0:06:20
|
and the key ring is going to be local, where we put the member
|
|
0:06:27
|
for local, we´ll put the key of local on it.
|
|
0:06:32
|
We´re going to create the key ring for national
|
|
0:06:40
|
and national for the key and then we´re going to create
|
|
0:06:44
|
the key ring for international
|
|
0:06:47
|
and actually I mess up here, so hang on.
|
|
0:06:56
|
I want you to try to show me
|
|
0:07:02
|
what I did wrong, OK? Someone pointed out to me.
|
|
0:07:06
|
So I´ve got my locks and keys defined.
|
|
0:07:09
|
I´ve got my doors, each of my doors only have one lock on them.
|
|
0:07:13
|
The door for local has the lock for local.
|
|
0:07:16
|
The door for national, the key national
|
|
0:07:18
|
and the door international, the key for international.
|
|
0:07:21
|
But my key rings also only have one key on them
|
|
0:07:25
|
local only has local, that´s probably fine.
|
|
0:07:29
|
The key for national only has national
|
|
0:07:32
|
and the key for international, only has international
|
|
0:07:36
|
and that´s exactly correct, two people have pointed it out
|
|
0:07:39
|
quickly. Is that the key ring for national
|
|
0:07:44
|
does not also have local and the key ring for international,
|
|
0:07:48
|
it only has one key so if there´s only one key
|
|
0:07:53
|
then it´s not really much of a key ring, is it?
|
|
0:07:55
|
There´s no point in having a key ring.
|
|
0:07:57
|
We do have to have one, even if we only have one key.
|
|
0:08:00
|
OK, that´s just the construct that we have to work in
|
|
0:08:02
|
but for international, we should also have
|
|
0:08:04
|
national and local accept.
|
|
0:08:07
|
Alright, so key ring for local has enough.
|
|
0:08:11
|
Remember, we don´t have to give it access
|
|
0:08:13
|
to doors that don´t have locks, so we´re not going to
|
|
0:08:15
|
put any door or lock on emergency
|
|
0:08:18
|
or internal number so we don´t have to give this any subsets.
|
|
0:08:23
|
We do
|
|
0:08:28
|
Accidentally we switch over to another screen on accident.
|
|
0:08:31
|
We do have to jump back in to our national key ring
|
|
0:08:37
|
and give it a member
|
|
0:08:41
|
It already has national, we need to give it a member for local
|
|
0:08:45
|
and then we need to jump in to our international.
|
|
0:08:50
|
key ring and give it not only
|
|
0:09:00
|
not only the key for national but also the key for local.
|
|
0:09:06
|
Now, we´ll go back and do show run
|
|
0:09:09
|
| 2 begin with dial peer. We´ve got our locks and keys defined
|
|
0:09:13
|
our doors only have one lock each.
|
|
0:09:16
|
Our local key ring has the local key, our national
|
|
0:09:18
|
key ring has local and national, our international has
|
|
0:09:22
|
local, national and international.
|
|
0:09:24
|
So now we´re ready to apply these
|
|
0:09:28
|
class of restriction to their appropriate places.
|
|
0:09:32
|
And we were told that Desmond which is ephone 1
|
|
0:09:36
|
3001 should have national, skinny
|
|
0:09:40
|
phone2, ephone2 John Locke should have international.
|
|
0:09:44
|
James Ford which is SIP phone 3003, but it´s actually
|
|
0:09:48
|
do voice register pool 1 is local and Hugo Reyes
|
|
0:09:52
|
voice register pool 2 is international.
|
|
0:09:59
|
OK?
|
|
0:10:01
|
So everyone take a snapshot of that if you want.
|
|
0:10:05
|
And also to ensure that any future lines do not
|
|
0:10:08
|
automatically inherit the class of restrictions mentioned above.
|
|
0:10:13
|
Alright, so now let´s do show run | 2 begin with telefany.
|
|
0:10:20
|
Just so that we can see our ephone DNs here.
|
|
0:10:25
|
Scroll up just a little bit.
|
|
0:10:28
|
Our ephone DN 1 for 3001 and 2 in skinny
|
|
0:10:35
|
We put these into ephone DN so we do class of restriction.
|
|
0:10:45
|
We do a cor list
|
|
0:10:48
|
and we say whether it´s incoming or outgoing.
|
|
0:10:50
|
This is going to be incoming
|
|
0:10:54
|
because we´re coming in to the router from our phone.
|
|
0:10:59
|
OK, so it´s going to be cor list incoming
|
|
0:11:02
|
and then the name and we were suppose to give
|
|
0:11:06
|
this national access, so we´re going to give it the key ring.
|
|
0:11:12
|
I´m not sure, accidentally copied and pasted
|
|
0:11:16
|
the wrong thing so ephone
|
|
0:11:19
|
DN 1 is suppose to have cor list,
|
|
0:11:24
|
incoming key ring national. So we give key rings to the phones
|
|
0:11:30
|
ephone DN 2 has key ring internaional.
|
|
0:11:38
|
OK, do show run | 2 begin with voice register.
|
|
0:11:45
|
Here´s our register global.
|
|
0:11:48
|
Here´s our voice register DN 1,
|
|
0:11:52
|
but notice there is no cor list. What about cor?
|
|
0:12:00
|
No. What about on voice register pool 1? Remember how we said
|
|
0:12:05
|
some things with SIP are down on the device rather than on the DN?
|
|
0:12:09
|
Is there any cor? Yes, it´s not called cor list
|
|
0:12:12
|
like it is on the ephone DN but there is something called cor,
|
|
0:12:16
|
still is going to be incoming and here we have to say
|
|
0:12:21
|
the name, OK. So I believe that,
|
|
0:12:26
|
yes, James Ford DN 3003
|
|
0:12:32
|
which voice register pool 1 has number 1
|
|
0:12:35
|
DN 1 which if we scroll up, DN1 is number 3003
|
|
0:12:39
|
James Ford, so we´re on the right one voice register pool 1
|
|
0:12:42
|
has cor incoming, copying and pasting the wrong thing.
|
|
0:12:51
|
Voice register pool 1 has cor incoming
|
|
0:12:57
|
key ring local however, there is not an enter. There is default
|
|
0:13:03
|
which means that it would take effect for all DNs
|
|
0:13:06
|
because remember we´re putting in on the device not the individual
|
|
0:13:08
|
DN like we did with skinny, or a cor list tag.
|
|
0:13:13
|
OK, so let´s just give it a tag like one
|
|
0:13:17
|
and then cor list match number or lower bound number.
|
|
0:13:22
|
OK, what is this mean? How about like 3003, the DN?
|
|
0:13:28
|
And then we can actually say enter or dash
|
|
0:13:34
|
and then a high an upper bound range
|
|
0:13:38
|
so like 3010. So what we can essentially say
|
|
0:13:41
|
do show run | 2 section voice register pool 1.
|
|
0:13:53
|
Is we can essentially say that
|
|
0:13:57
|
for all ephone DNs that are applied to this voice register pool
|
|
0:14:02
|
we´re going to have the cor incoming key ring
|
|
0:14:06
|
index 1 number 1, we´re going to put this key ring on
|
|
0:14:09
|
all DNs if they match 3003 to 3010.
|
|
0:14:15
|
Now we didn´t want to do that, we certainly didn´t want
|
|
0:14:17
|
to do default because we were specifically told
|
|
0:14:20
|
to ensure that any future lines do not automatically
|
|
0:14:23
|
inherit the course mentioned above. So what we´re going to do
|
|
0:14:26
|
is we´re going to change this.
|
|
0:14:30
|
to just applying it to 3003 or look at this command again
|
|
0:14:35
|
and now it´s only specifically cor for 3003
|
|
0:14:40
|
any other DNs won´t have a cor, unless we have one later.
|
|
0:14:45
|
OK? We´re just going to do the same thing for voice register
|
|
0:14:49
|
pool 2 except that that phone was supposed to have international.
|
|
0:14:55
|
So we´re going to do cor incoming key ring international
|
|
0:14:58
|
tag 1 and the DN of we were told 3004.
|
|
0:15:08
|
And now we´ll do, do show run section voice
|
|
0:15:12
|
register pool 1 and pool 2
|
|
0:15:15
|
and now they have their appropriate incoming cor.
|
|
0:15:19
|
Now, let´s go ahead and write our router config
|
|
0:15:23
|
and do debug ISTN q931 and test if
|
|
0:15:31
|
Desmond Hume at 3001 was only supposed to dial
|
|
0:15:34
|
national and I go off hook and dial triple 0
|
|
0:15:38
|
1 206 501 5111 hash
|
|
0:15:46
|
It look like it dialed out just fine, Desmond Hume. Why is that?
|
|
0:15:51
|
Because we never applied the outbound door
|
|
0:15:54
|
Remember if I had the key ring
|
|
0:15:57
|
but there´s no door and so therefore no locks, then
|
|
0:16:00
|
well, I can walk right out of an opening, just fine.
|
|
0:16:04
|
So now we have to go back, do show run type 2 begin dial dash peer
|
|
0:16:09
|
or we could actually, you know what let´s do something
|
|
0:16:11
|
different, let´s do, do show
|
|
0:16:16
|
dial dash peer voice sum
|
|
0:16:21
|
OK? So we´ve got out POTS dial peers up here
|
|
0:16:24
|
notice the voice sum does show your 20001 and 40000
|
|
0:16:29
|
series dial peers which are your skinny
|
|
0:16:35
|
EFXS so that´s the voice port and SIP
|
|
0:16:39
|
doesn´t have a voice port but it does have the
|
|
0:16:43
|
IP address and port well 506 isn´t the port,
|
|
0:16:47
|
it´s actually 5060 it just got cut off.
|
|
0:16:49
|
But it has those system created dial peers.
|
|
0:16:54
|
So we know they don´t show up in a running cofig
|
|
0:16:56
|
they do show up with show voice register pool
|
|
0:16:59
|
sorry, show voice register pool or show voice register dial peer
|
|
0:17:03
|
or do show voice register dial peer.
|
|
0:17:12
|
OK, there´s our two 40001 ones and do show telefany
|
|
0:17:17
|
service dial peer, we have our two 20001 ones
|
|
0:17:22
|
OK? They also show up in the show dial peer voice sum
|
|
0:17:27
|
so 1 and 2 are emergencies, we don´t have to apply anything there
|
|
0:17:31
|
3, 4 and 5 are local, national, and international, respectively.
|
|
0:17:37
|
So let´s jump in to dial peer
|
|
0:17:41
|
voice 3 and in dial peer voice 3
|
|
0:17:47
|
we´re going to apply our cor list outgoing
|
|
0:17:52
|
we´re walking out the door, not key ring but door for local
|
|
0:17:57
|
4 is going to have national
|
|
0:18:02
|
and 5 is going to have, shouldn´t have left that,
|
|
0:18:07
|
is going to have international.
|
|
0:18:11
|
And notice it won´t let me apply something that´s not defined
|
|
0:18:15
|
some places in IOS will, we´ll do right.
|
|
0:18:18
|
Now, we´ll try our call.
|
|
0:18:21
|
Now remember it matches the dial peer first
|
|
0:18:24
|
So we won´t see any debug ISTN q931 if
|
|
0:18:27
|
the dial peers match but not allowed to send the call out.
|
|
0:18:31
|
We will still do debug
|
|
0:18:34
|
it´s just end out to here, debug VOIP dial peer.
|
|
0:18:41
|
Clear the screen, we will see dial peer debugging
|
|
0:18:45
|
So I can go off hook from 3001, dial triple 0
|
|
0:19:02
|
Now, if I was dialing 0
|
|
0:19:06
|
00 actually two 0´s
|
|
0:19:09
|
it hasn´t match anything yet but three 0´s
|
|
0:19:13
|
is enough to go ahead and match the dial peer
|
|
0:19:17
|
and result in ultimately not matching any dial peer beacuse of the cor
|
|
0:19:24
|
OK? Let´s go from John Locke so
|
|
0:19:31
|
let´s just make sure, he had international rights so
|
|
0:19:35
|
from John Locke and I guess I can pull this up on screen.
|
|
0:19:43
|
Sorry, John Locke is 3002 of here
|
|
0:19:57
|
It´s blocked out, let´s try to tell it again.
|
|
0:20:01
|
To control 3002
|
|
0:20:18
|
OK, John Locke 3002
|
|
0:20:22
|
So we´re going to dial 000
|
|
0:20:27
|
1 206 501 5111
|
|
0:20:32
|
hash and that does go out
|
|
0:20:37
|
OK? Can Desmond call national, double 0 10
|
|
0:20:43
|
704 7444 we can, that number goes up just fine.
|
|
0:20:52
|
What about we were given as an example James Ford
|
|
0:20:58
|
which is a SIP phone, dialing local only so 3003
|
|
0:21:03
|
can´t see his phone unfortunately because they mention
|
|
0:21:06
|
they can´t control SIP, let´s undebug.
|
|
0:21:10
|
So let´s just undebug VOIP dial peer.
|
|
0:21:17
|
We bias again, so from 3003, let´s try to dial
|
|
0:21:23
|
triple 0, No. Try to dial double 0, hit reorder
|
|
0:21:30
|
What about dialing 07037333
|
|
0:21:37
|
OK, so it´s successfully limited 3003 to local calls
|
|
0:21:43
|
and then I believe Hugo was able to have international so
|
|
0:21:53
|
Help him dial out. Hugo Reyes dial up internationally, no problem.
|
|
0:22:01
|
And then just to prove the point of what we´re saying earlier
|
|
0:22:04
|
let´s go back in ephone 1 which previously
|
|
0:22:08
|
Desmond do show run type 2
|
|
0:22:12
|
section is actually ephone DN 1.
|
|
0:22:20
|
ephone DN 1 and then let´s look at ephone 1 as well.
|
|
0:22:25
|
We have to do 2 spaces here, alright. So
|
|
0:22:30
|
ephone DN 1 Desmond.
|
|
0:22:36
|
If I just take off that cor list
|
|
0:22:41
|
and do that show run again. Now he doesn´t have a cor list
|
|
0:22:48
|
can he dial, he was only able to dial national, can he dial international
|
|
0:22:54
|
sure sounds like he´s going to be able to
|
|
0:23:01
|
OK, so again there was an outbound door of international
|
|
0:23:05
|
but when we take off the cor list, we take off the key ring
|
|
0:23:09
|
then there´s unrestricted access. So no key ring or
|
|
0:23:13
|
no door unrestricted access, put it back on.
|
|
0:23:19
|
Triple 0 we get the reorder tone.
|
|
0:23:24
|
|