Previously I have written a post about hotline configuration but that configuration example uses none partition which Cisco does not recommend.
So here I shall re-do the post in creating a hotline configuration example by not using none partition for my telephones.
From CUCM, Call Routing > Class of Control > Partition
Create a calling search space (CSS)
From CUCM, Call Routing > Class of Control > Calling Search Space
Create a translation pattern
From CUCM, Call Routing > Translation Pattern
Apply onto the hotline phone
From CUCM, Device > Phone
Partition and calling search space of CIPC and 7940
7940 IP phone