Asterisk and Cisco Router FXO Incoming Call

Hello Jorge,

You can use a Cisco access-list for this. By default Asterisk uses SIP on port 5060 and I believe UDP port 10000 - 20000 for RTP traffic. An access-list outbound to the Asterisk server could look something like this:

Router(config)#ip access-list extended ASTERISK
Router(config-ext-nacl)#permit udp 192.168.1.0 0.0.0.255 host 192.168.2.1 eq 5060
Router(config-ext-nacl)#permit udp 192.168.1.0 0.0.0.255 host 192.168.2.1 range 10000 20000

In this example, 192.168.1.0/24 could be the subnet where your SIP phones are located and 192.168.2.1 would be the IP address of the Asterisk server. It’s a simple example but it should help to get you going.

Rene