accept
To allow a logical partitioning class of restriction (LPCOR) policy to accept calls associated with another resource-group, use the accept command in LPCOR policy configuration mode. To reject calls associated with a resource group, use the no form of this command.
accept lpcor-group [fac]
no accept lpcor-group
Syntax Description
lpcor-group |
Name of the LPCOR resource group. |
fac |
Enables forced authorization code for calls from this resource group. |
Command Default
Calls from other resource groups are rejected.
Command Modes
LPCOR policy configuration (cfg-lpcor-policy)
Command History
Cisco IOS Release |
Cisco Product |
Modification |
---|---|---|
15.0(1)XA |
Cisco Unified CME 8.0 |
This command was introduced. |
15.1(1)T |
Cisco Unified CME 8.0 |
This command was integrated into Cisco IOS Release 15.1(1)T. |
15.1(3)T |
Cisco Unified CME 8.5 |
This command was modified. The fac keyword was added to the accept command. |
Usage Guidelines
Use this command to create a LPCOR policy by specifying the other resource groups from which this resource group can accept calls. If a resource group is not explicitly set to accept with this command, calls associated with that resource-group policy are rejected. You can create one LPCOR policy for each resource group.
If you create a LPCOR policy using the voice lpcor policy command and do not explicitly accept any other resource groups by using the accept command, that policy blocks all incoming calls associated with any LPCOR resource group other than its own. The fac keyword in the accept command restricts the caller from routing to a destination LPCOR group without entering a valid authorization code.
Examples
The following example shows the LPCOR policy for the resource group named sccp_phone_local. It accepts calls from the resource groups analog_phone_local and sip_phone_local but rejects calls from the group named analog_phone_remote because it is not included in the policy.
voice lpcor policy sccp_phone_local
accept analog_phone_local
accept sip_phone_local
The following example shows that sccp_phone_local blocks calls that are associated with any other LPCOR policy because its policy does not accept other resource groups.
voice lpcor policy sccp_phone_local
The following example shows that the policy local_phone is configured to not accept any calls associated with itself. SIP phone 1 and SCCP phone 2 both belong to the local_phone resource group and its policy prevents them from accepting calls from each other.
voice register pool 1
lpcor type local
lpcor incoming local_phone
lpcor outgoing local_phone
id mac 0021.A02D.B360
type 7960
number 1 dn 1
!
voice lpcor custom
group 1 local_phone
group 2 remote_phone
group 3 analog_phone
!
voice lpcor policy local_phone
no accept local_phone
accept analog_phone
!
ephone 2
lpcor type local
lpcor incoming local_phone
lpcor outgoing local_phone
mac-address 0021.A02D.B580
type 7960
button 1:10
The following example shows that the authorization code is required by callers who belong to the LocalUser group and RemoteUser group.
!
voice lpcor policy PSTNTrunk
service fac
accept Manager
accept LocalUser fac
accept RemoteUser fac
no accept PSTNTrunk
no accept IPTrunk