The first steps is to verify that the POTS phone line actually works. Plug in a POTS phone and check that there is dialtone and that you can make a call and receive a call. The following configuration, we will be doing the inbound and outbound calls with dialing 9 for outside calls.
Setup a trunk group name. The hunt scheme is optional but i use it in my configuration, it will start the hunt from voice port 0/1/0 to 0/3/3
Creating Trunk Group
Router_CME(config)#trunk group FXO-12PORTS
Router_CME(config-t-trunk-group)#description FXO-12PORTS for PSTN Calls
Router_CME(config-t-trunk-group)#hunt-scheme sequential both down
Creating the Inbound Rule
The voice-port command is used to configure the FXO inbound rule:
Router>ena
Router#conf t
Router(config)#voice-port 0/1/0
Router(config-voiceport)#description FXO-PSTN Inbound
Router(config-voiceport)#connection plar opx 1000
Router(config-voiceport)#caller-id enable
Router(config-voiceport)#end
Router#wr
Do the same settings with other remaining voice port from 0/1/0 to 0/3/3
the "connection" command specifies a private-line, automatic ring down (PLAR) connection, off premise connection (OPX) and to forward the incoming call to the extension 1000.
Enter the command "caller-id enable" in order to allow the caller ID information to be received at the FXO ports that is configured.
Test for Incoming Calls
Connect CME to the PSTN POTS line using an RJ11 phone cable. Test that you can receive an outside call and that it is forwarded to extension 1000. Youn should have a very good audio quality.
Alternative Destinations
In this example, the incoming call was forwarded to a specific extension. You can forward incoming calls to any extension or a pilot number like a hunt group pilot. The voicemail pilot number or even to auto attendant (IVR) pilot.
Creating the Outbound Rule
this is the simpler method to call out, the user must dial 9 first then the 7 digits local number. Create a dial peer in order to associate a telephone number with a particular FXO port so that outgoing call can be placed.
Router(config)#dial-peer voice 1 pots
Router(config-dial-peer)#destination-pattern 9[2-9]......
Do the same settings of dial-peer from voice 1 pots to voice 12 pots however, you can change the destination-pattern depending on your dialplan.
The command "dial-peer voice tags pots" configures an outbound POTS dial peer and it is the 1st dial-peer configured in my system.
The command "destination-pattern 9[2-9]......" creates the outbound rule to dial 9 to use the outside line + the 7 digit dialing number. The pattern [2-9] represent the first two digits of dialed number and excludes the 11 portion of 911 so we don't accidentally dialed 911. The 6 dots are wildcards the represents the last 6 digits of the dialed number and are required. We can read the rule as when the first digit is 9, the following 7 digits consiting of 2 and 9, and the next 6 digits will sent out.
You should now be able to dial an outside line from any one of your phones by dialing 9 first then the external number.
Post a Comment