2282 CHAPTER 132: VOICE ENTITY CONFIGURATIONOne-to-One Bindingbetween FXS and FXONetwork requirements■ Router A and Router B are both connected to an IP network and a PSTN.Telephone A attached to Router A can make calls to Telephone B attached toRouter B over the IP network or the PSTN.■ Usually, Telephone A makes calls to Telephone B over the IP network. In thecase that the IP network is unavailable, Telephone A selects the PSTN via thebound FXO voice subscriber line to call Telephone B.Network diagramFigure 662 Network diagram for one-to-one binding between FXS and FXOConfiguration idea■ There is one-to-one binding between FXS and FXO voice subscriber lines.■ When the IP network is available, the VoIP entity is preferably used to makecalls over the IP network.■ When the IP network is unavailable, the POTS entity is used to make calls viathe bound FXO voice subscriber line.Configuration proceduren ■ Router A and Router B are both reachable■ The configuration of interface IP addresses is omitted.1 Configure Router A system-view[Sysname] voice-setup[Sysname-voice] dial-program# Configure a VoIP entity for IP calls and set the match template to "210...".[sysname-voice-dial] entity 210 voip[sysname -voice-dial-entity210] match-template 210....[sysname -voice-dial-entity210] address ip 192.168.0.76[sysname -voice-dial-entity210] quit# Configure a POTS entity for the FXS voice subscriber line.[sysname-voice-dial] entity 0101001 pots[sysname-voice-dial-entity101001] match-template 0101001IP networkPSTNnetworkRouter A 192.168.0.71/24TelephoneA0101001FXS:line 6/24 FXO:line 6/0Router B192.168.0.76/242101002FXS:line 6/24FXO:line 6/0TelephoneB