So I think you mean....
VoIP to VoIP calls are effectively free anyways, but if your WAN links goes down then it will switch to ISDN.
All external calls will still be required to use the ISDN links though? Or can you just somehow switch it to a normal landline?
Does that make it a little clearer what i'm talking about? How do the make completely external phone calls, from a VoIP phone. For example, ringing your house from work..
Ok [deep breath] I'll explain the call routing (as simply as possible) and this should help you understand how a VoIP system works.
Connectivity wise you will need:
LAN - For connecting IP phones or Softphones on PC's to an IP network. This will include switches/routers and QoS etc depending on complex you need it.
IP PBX - this IS your phone system - i.e Asterisk or Cisco Callmanager or a.n.other. The IP PBX is used to provide ALL telephony features like Voicemail, unified messaging (voicemail to email inbox), a dial plan (what is allowed to be called, i.e 0845, 0870 etc) and loads more!
A transport mechanism - IP to IP calls within the LAN are easily dealt with, but you need a way to get an IP based call, outside of your environment to a customer/supplier. You can use an ISP that provides an IP to PSTN translation service (if the call needs to go to the PSTN network) or you can use ISDN to do the translation for you. Most businesses will use both for resiliency and use least cost routing to determine which route (IP or PSTN) to take at the time the call is placed. Since most calls are cheaper via IP and your ISP this is the default route, however if you lose your broadband connection ISDN is used to route the call to the destination over the PSTN network. You need as many ISDN "channels" as you want simulataneous calls to be made to an external party. We chose 8.
Now then. There are benefits to using ISDN over IP, namely reliability but its more costly than an ISP would charge in terms of rental (like line rental for a phone line essentially) and call cost. For a business that relies upon telephony you would be a fool if you didn't consider redundancy both in terms of your IP PBX and your transport mechanism.
So this is how a call to an external party works for us:
Call is initiated by the users softphone or deskphone that has an IP address. It contacts the IP PBX that sets up a SIP channel to facilitate the call. If the call is routed via ISDN the PBX also opens an ISDN/PSTN channel to facilitate connection to the external party. The PBX at the other end responds to the request and the call is answered, at which point the data (voice) flows. When a user hangs up the PBX's at both ends release the channels (SIP and either IP or PSTN) that were in use.
Does that help?