I have two SIP Trunks(from ITSP) coming into two Asterisk servers at different physical location.
Note: ITSP stands for Internet Telephony Service Provider
Inbound call stands for call coming from ITSP to Asterisk
Outboud call stands for call from Asterisk to ITSP
ServerA and ServerB stands for Asterisk server at location A and B.
Inbound call is not an issue. ITSP is smart to send call to us in Round Robin fashion (first incoming call on serverA and second incoming call on serverB). If serverA dies, incoming call comes only to serverB. ITSP periodically pings serverA and serverB. If ITSP sees that serverA is alive, ITSP starts sending call to serverA. [Note: No manual intervention involved here]
I would like to achieve something similar to above in Asterisk. I would like to setup serverA such that it will send calls to TrunkA and TrunkB in Round Robin fashion(first call to TrunkA and second call to TrunkB). If TrunkA fails, it shouldn’t send the call to TrunkA. I also want Asterisk to periodically ping TrunkA to check if trunk is alive or not. Once TrunkA is alive, it should start sending call to it.
I am wondering if you guys came across this issue. It would be great if you can provide any resources or assistance.