Cisco routers can be used as a voice gateway for your Asterisk PBX. In this tutorial I’ll show you how to configure your Cisco’s FXO port so that it will forward PSTN calls to Asterisk.
The first thing to do is configure our Cisco router so that it will forward calls from the PSTN to Asterisk through SIP. Let’s start with the voice port:
connection plar 500
Now we will create a dial-peer so that the calls are forwarded to Asterisk:
dial-peer voice 500 voip destination-pattern 500 session protocol sipv2 session target ipv4:<ip of asterisk> codec g711alaw no vad
This is all you have to do on your Cisco router. Let’s move on to Asterisk…