Sorry I should have worded the question better.
Currently we have a single SIP trunk with a single end point on our side of the trunk, the trunk accepts traffic from a single IP address.
We have a fibre WAN connection as our main office connection and a backup ADSL connection, each connection has it’s own IP address.
Currently if the main WAN connection goes down we need to contact our SIP trunk provider and get them to change the IP address the trunk accepts traffic from and then change the “externip” within sip.conf. The setup allows for a period of time where the office has no incoming/outgoing calls.
What we want to achieve is in the event of the main office wan going down to have the trunk automatically reconnect over the backup ADSL connection.
We have asked our trunk provider to change our trunk so it has two end points on our side of the trunk this allows it to accept traffic from two different IP addresses (WAN + ADSL). The problem we now have is that “externip” within sip.conf still needs to be updated manually. We want to automate this or allow for the PBX to have two “externip” within sip.conf.
Currently we are only aware of two ways to do this:
- Two installs of Asterisk connected via IAX, one for each endpoint of the trunk
- A script that changes the externip setting in sip.conf and reloads it
We are looking for other ways to do this.
Your suggestion would require moving to Asterisk 13 which is not a bad thing and seems like a better idea than my two listed above.
Since I have not looking into moving the phone system to Asterisk 13 yet I’m not too familiar with PJSIP but from my brief investigation would I not require two transport entries, each getting a one of the external IP address for the external_signaling_address?