Saturday, January 18, 2014

Class of Service and Call Routing Part 1


Class of Service and Call Routing:
--------------------------------------------
It is the calling permissions that the end user or phones is able to dial.

Types:
1-Restricted Class of Service.
2-Local Class of Service.
3-Long Distance 'National' Class of Service.
4-International Class of Service.

Explaination:
------------------
1-Restricted Class of Service:
    e.g. Internal Numbers or Extensions 'DNs'.
    e.g. for Emergency services e.g. 911
2-Local Class of Service.
    e.g. Internal Numbers or Extensions 'DNs'.
    e.g. for Emergency services e.g. 911
    The right to dial  Local or the PSTN numbers  that Don't Incur a Toll.
3-Long Distance 'National' Class of Service:
    e.g. Internal Numbers or Extensions 'DNs'.
    e.g. for Emergency services e.g. 911
    e.g.The right to dial  Local or the PSTN numbers  that Don't Incur a Toll.
  e.g. Long Distance 'National'.
4-International Class of Service:
    e.g. Internal Numbers or Extensions 'DNs'.
    e.g. for Emergency services e.g. 911
    e.g.The right to dial  Local or the PSTN numbers  that Don't Incur a Toll.
  e.g. Long Distance 'National'.
    e.g. International Call.




#The hierarachy:
1-Resources is placed into some form of a
2-Group and the group is placed into some form of a
3-List.
Resources>Group>List.

Explaination:
----------------
1-The resources:
-DNs: is simply any directory number.
-Patterns: 
So the resources are placed into
Partitions and the Partitions are then placed into Calling Search Space

            Resources
                |    |
         Partitions
                |    |       
        Calling Search Space 'CSS'

So anything that is trying to make a call in UCM must have CSS assign to it.


Examples:
I am going to create a list of
-Patterns:
----------------
1001,1002,2001 'Internal DNs'
911 'Emeregency services'
9[2-9]XX[2-9]XXXXXX 'Local Number'
9[2-9]XX[2-9]XXXXXXX 'National Number'
9.011! ' ! in UCM and T in IOS' 'International'
'.' 'dot ' in UCM is actually used as a delimiter.
So in IOS any explicitly matched or defined digits not variables were droped by default, in UCM nothing is droped unless you tell it to and you drop it, with something called pre-dot '.' e.g. 9.011! It means everything before the dot '.' you should drop so in this case it happens to be a '9'

NOTE: Each number DN or pattern can only be assigned to a single partition, and a single partition can have multiple patterns of course, BUT each pattern can have only one partition, and partitions multiple of them can go to the CSS.

NOTE : there is a default pattern which called '<None>'
this partition is the default it can be there and cannot be removed.


-Partitions:
--------------
some people use 'PT_EMS' as an abbreviation of partition and following with undersore and following with the pattern name.
And someother people also do this: EMS_PT

<None>

PT_Internal
    1001,1002,2001 'Internal DNs'

PT_EMS
    911 'Emeregency services'

PT_Local
    9[2-9]XX[2-9]XXXXXX 'Local Number'

PT_National
    9[2-9]XX[2-9]XXXXXXX 'National Number'
PT_International
        9.011! 'in UCM and T in IOS' 'International'

-Calling Search Spaces:
-------------------------------
CSS_Restricted
    PT_Internal
        1001,1002,2001 'Internal DNs'
    PT_EMS
    911 'Emeregency services'
     <None>
CSS_Local
    PT_Internal
        1001,1002,2001 'Internal DNs'
    PT_EMS
        911 'Emeregency services'
    PT_Local
        9[2-9]XX[2-9]XXXXXX 'Local Number'
    <None>
CSS_National
    PT_Internal
        1001,1002,2001 'Internal DNs'
    PT_EMS
        911 'Emeregency services'
    PT_Local
        9[2-9]XX[2-9]XXXXXX 'Local Number'
    PT_National
        9[2-9]XX[2-9]XXXXXXX 'National Number'
    <None>
CSS_International
    PT_Internal
        1001,1002,2001 'Internal DNs'
    PT_EMS
        911 'Emeregency services'
    PT_Local
        9[2-9]XX[2-9]XXXXXX 'Local Number'
    PT_National
        9[2-9]XX[2-9]XXXXXXX 'National Number'
    PT_International
        9.011! 'in UCM and T in IOS'
    <None>

    <None>
Even if the phone does not have a CSS define there is a 'NONE'  Calling Search Space 'CSS'  even if I have a device does not have CSS defined on that on a phone or a GW it can call anyone that is on the <None> patition BUT there is no way to assign any addtional partitions to that CSS

<None>     (CSS)
        <None>    (PT)





---------
If We have Three different DN or Pattern
1XXX
10XX
100X
The actuall number I dial  is 1001=Called Number

IF the above DN or Pattern are in the same Partition:
e.g.

PT_Internal_DNs
    1XXX
    10XX
    100X
Then the most specific is the one with least amount of variable options that is  the winner or the longest match

NOTE in the UCM We cannot change the order of the matches  it is always going to be the longest match and in the case of the tie it is going to be the ones that is ordered the highest or the top one. e.g.:
CSS_Calling_Party_A
    PT_Internal_Clients-A_DNs
        1XXX
    PT_Internal_Clients-B_DNs
        1XXX
In the above example the first one is gonna win.


--------------------------------


IF we have
a phone and it has 3 lines or buttons:
Line 1
Line 2
Line 3

Then we want to assign certain roles and permissions on it then we can apply the Callin Search Space 'CSS'
Line 1
    CSS-A
Line 2
    CSS-B
Line 3
    CSS-C

NOTE : That I can also have a CSS on my Phone



The hierarchy in the UCM is from 4-1 as precedence:

4-IN most things in UCM we have the defaults:
which called SP or Service Parameters.
SP=Defaults
3-We might have also something is configured at the device pool level and it more specific than the default:
DP 'Device Pool'
2-We also have something that is configured on the device  it-self  not on the device pool.
Device.
1-But in certain cases like in the Music On Hold we have somethings that occurs on the line .

No comments:

Post a Comment