Making a real fake phone line

2024-07-16 | [phones]

work in progress

the configuration

When the device starts up, you can paste this whole list into the terminal, piece by piece, and it will configure it to act like a simple telephone exchange.

yes
yes
vg224-0
admin
admin
admin
admin
no
FastEthernet0/0
yes
yes
192.168.1.184
255.255.255.0
2

enable
admin
configure terminal

dial-peer voice 1 pots
destination-pattern 211
port 2/0
exit
dial-peer voice 2 pots
destination-pattern 212
port 2/1
exit
dial-peer voice 3 pots
destination-pattern 213
port 2/2
exit
dial-peer voice 4 pots
destination-pattern 214
port 2/3
exit
dial-peer voice 5 pots
destination-pattern 221
port 2/4
exit
dial-peer voice 6 pots
destination-pattern 222
port 2/5
exit
dial-peer voice 7 pots
destination-pattern 223
port 2/6
exit
dial-peer voice 8 pots
destination-pattern 224
port 2/7
exit
dial-peer voice 9 pots
destination-pattern 231
port 2/8
exit
dial-peer voice 10 pots
destination-pattern 232
port 2/9
exit
dial-peer voice 11 pots
destination-pattern 233
port 2/10
exit
dial-peer voice 12 pots
destination-pattern 234
port 2/11
exit
dial-peer voice 13 pots
destination-pattern 241
port 2/12
exit
dial-peer voice 14 pots
destination-pattern 242
port 2/13
exit
dial-peer voice 15 pots
destination-pattern 243
port 2/14
exit
dial-peer voice 16 pots
destination-pattern 244
port 2/15
exit
dial-peer voice 17 pots
destination-pattern 251
port 2/16
exit
dial-peer voice 18 pots
destination-pattern 252
port 2/17
exit
dial-peer voice 19 pots
destination-pattern 253
port 2/18
exit
dial-peer voice 20 pots
destination-pattern 254
port 2/19
exit
dial-peer voice 21 pots
destination-pattern 261
port 2/20
exit
dial-peer voice 22 pots
destination-pattern 262
port 2/21
exit
dial-peer voice 23 pots
destination-pattern 263
port 2/22
exit
dial-peer voice 24 pots
destination-pattern 264
port 2/23
exit

dial-peer voice 25 pots
destination-pattern 0
port 2/0
exit

dial-peer voice 26 pots
destination-pattern 8
port 2/4
exit

dial-peer voice 27 pots
destination-pattern 190049037325
port 2/8
exit

voice-port 2/0
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name OPERATOR
station-id number 0
caller-id enable
exit
voice-port 2/1
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name ONE TWO
station-id number 212
caller-id enable
exit
voice-port 2/2
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name ONE THREE
station-id number 213
caller-id enable
exit
voice-port 2/3
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name ONE FOUR
station-id number 214
caller-id enable
exit
voice-port 2/4
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name TWO ONE
station-id number 221
caller-id enable
exit
voice-port 2/5
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name TWO TWO
station-id number 222
caller-id enable
exit
voice-port 2/6
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name TWO THREE
station-id number 223
caller-id enable
exit
voice-port 2/7
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name TWO FOUR
station-id number 224
caller-id enable
exit
voice-port 2/8
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name THREE ONE
station-id number 231
caller-id enable
exit
voice-port 2/9
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name THREE TWO
station-id number 232
caller-id enable
exit
voice-port 2/10
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name THREE THREE
station-id number 233
caller-id enable
exit
voice-port 2/11
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name THREE FOUR
station-id number 234
caller-id enable
exit
voice-port 2/12
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name FOUR ONE
station-id number 241
caller-id enable
exit
voice-port 2/13
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name FOUR TWO
station-id number 242
caller-id enable
exit
voice-port 2/14
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name FOUR THREE
station-id number 243
caller-id enable
exit
voice-port 2/15
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name FOUR FOUR
station-id number 244
caller-id enable
exit
voice-port 2/16
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name FIVE ONE
station-id number 251
caller-id enable
exit
voice-port 2/17
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name FIVE TWO
station-id number 252
caller-id enable
exit
voice-port 2/18
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name FIVE THREE
station-id number 253
caller-id enable
exit
voice-port 2/19
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name FIVE FOUR
station-id number 254
caller-id enable
exit
voice-port 2/20
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name SIX ONE
station-id number 261
caller-id enable
exit
voice-port 2/21
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name SIX TWO
station-id number 262
caller-id enable
exit
voice-port 2/22
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name SIX THREE
station-id number 263
caller-id enable
exit
voice-port 2/23
no echo-cancel enable
timeouts call-disconnect 10
timing hookflash-in 110 70
station-id name SIX FOUR
station-id number 264
caller-id enable
exit
exit

My unit did not want to take saved settings, so I had to add config-register 0x2102 in the configure terminal section above, then do copy running-config to startup-config. Now, the unit will load the above settings when it boots.

comments | Alnwlsn 2024