pt_apply_voice
Configure Cisco CME voice on a 2811 router through IOS CLI, setting up extensions, DHCP option 150 and voice VLANs so IP phones register, with each command verified and dry-run support.
Instructions
Cisco CME voice (IP phones) through IOS CLI, each line verified. The router MUST be
a 2811 (PT's 2911 rejects telephony-service even with the uck9 license).
Measured end to end on PT 9 (2811 + 3560-24PS + two 7960): CME, DHCP option 150
and real registration (show ephone: REGISTERED). Not measured: ephone + mac,
switchport voice vlan (the reply warns).
source_ip: the router's IP on the phones' LAN (checked against PT).
extensions: ["1001", "1002"] or [{"number": "1001", "mac"?: "0001.4321.ABCD"}].
max_ephones 1-36, max_dn 1-144. auto_assign:
auto assign 1 to N.voice_vlan + switch + access_ports:
switchport voice vlanon those ports.dhcp_pool:
option 150 ip <source_ip>; dhcp_network ("10.10.10.0/24") also sets network + default-router.restart_phones: power-cycle every IP phone, then fast-forward (default True); phones already on keep 0.0.0.0 otherwise.
dry_run: validate and return the CLI/payload without sending.
Example: pt_apply_voice(router="R1", source_ip="10.10.10.1", extensions=["1001","1002"], dhcp_pool="VOICE", dhcp_network="10.10.10.0/24") Check: pt_cli(device="R1", commands=["show ephone"]).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"router": "<router>",
"source_ip": "<source_ip>",
"extensions": "<extensions>"
},
"name": "pt_apply_voice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_dn | No | ||
| router | Yes | ||
| switch | No | ||
| dry_run | No | ||
| dhcp_pool | No | ||
| source_ip | Yes | ||
| extensions | Yes | ||
| voice_vlan | No | ||
| auto_assign | No | ||
| max_ephones | No | ||
| access_ports | No | ||
| dhcp_network | No | ||
| restart_phones | No |