Hi,
No Need to verify the public IP for that. Just make sure the servers will register to each other.
in the trunk settings you can set host=dynamic
and configure a user name and password for the trunks.
In the case of an IAX trunk you will need to forward port 4569 udp from your router to your Asterisk pbx.
You can use my example of IAX trunk configuration for static IPs:
All the configuration is case sensitive.
First Server:
Trunk Name: Second Server
Trunk Name: SECOND-SERVER
Peer details:
host=ip_second_server
username=FIRST-SERVER
secret=some_secret
type=friend
context=from-internal
transfer=no
allow=alaw&ulaw
disallow=all
Second Server:
Trunk Name: First Server
Trunk Name: FIRST-SERVER
Peer details:
host=ip_first_server
username=SECOND-SERVER
secret=some_secret
type=friend
context=from-internal
transfer=no
allow=alaw&ulaw
disallow=all
There is no need for the user details.
Thank you,
Daniel Friedman
Trixton LTD.
Mobile: +41.79.868.7050
Email: dani@3xton.com