![Cisco Small Business SPA8800 Configuring Download Page 19](http://html.mh-extra.com/html/cisco/small-business-spa8800/small-business-spa8800_configuring_63548019.webp)
Configuring the Cisco SPA8800 IP Telephony Gateway in an Asterisk Environment
© 2009 Cisco Systems, Inc. All rights reserved.
Page 19 of 69
Configuring FXO Line Dial Plans for inbound PSTN call
Routing
In this section, you will configure FXO port dial plans. These dial plans affect inbound PSTN call
routing and work in conjunction with definitions made in the
/etc/asterisk/sip.conf
and
/etc/asterisk/extensions.conf
files.
The [general] section of sip.conf contains the register directive which instructs the SIP proxy on
where (101) to send inbound calls:
[general]
register => [email protected]:mypassword:[email protected]/
101
The [pstn2] and [pstn3] contexts of the extensions.conf file describes how inbound calls must be
routed:
[pstn2]
exten => 101,1,Dial(SIP/101,60,rt)
[pstn3]
exten => 101,1,Dial(SIP/201,60,rt
1. Direct your browser to the SPA8800's web user interface (web-ui)
http://<IP_address_of_SPA8800>/admin/advanced
2. Voice tab > Line 2 tab > Dial Plans >
Edit any dial plan to route inbound calls from the PSTN line connected to this FXO line. In
this example, Dial Plan 8 is edited with: (<:[email protected]>S0) where:
All inbound calls will be routed to extension 101 of the Asterisk server [192.168.2.20].
3. Voice tab > Line 2 tab > PSTN-To-VoIP Gateway Setup > PSTN Caller Default DP: 8
Where this number must match the dial plan used in the previous step.
Refer to the
Failing Inbound from PSTN
in the Troubleshooting section to see a sample
Asterisk console error message that results from an incorrect dial plan entry.