Asterisk and Cisco Router FXO Incoming Call

Thanks for the post, is helping me out a great deal.

I am trying to use a 2621 as a PSTN gateway (2 lines) linked to a Raspberry Pi running FreePBX (Asterisk) but am having a few difficulties.

What I am trying to achieve is have the 1st line ring a call group (#601) and the second line ring a second call group (#602)

Also need the PBX extensions to be able to dial out to the PSTN on any available line. The outgoing has some very strange dial plans as is going to be attached to a work internal PBX which can connect to other sites PBX’s (via a 9 dial code) and also to the great outside world (this is achieved by 0 in front of the number you are dialing)

Any help or pointers on this is greatly appreciated as am pulling my hair out trying to get to the end of this project.