All you need to do is either run a routing protocol(EIGRP or RIP or OSPF) or configure static routes on all the L3 devices (switch and router).
Are the IP phones using ITS or Call Manager ? If using Call Manager, and if the CCM is only at the main site, then, you can also look for configuring SRST (survivable remote site telephonY). With SRST enabled on the branch router, if the wan link fails, still all the IP phones will be able to call out through the PSTN. When the wan link comes back up, call flow will go over the wan
Sankar Nair
UC Solutions Architect
Pacific Northwest | CDW
CCIE Collaboration #17135 Emeritus