Hi everyone,
I want to connect main office with one of the branch, then with the rest and use the main pbx as a gateway between branch calls. The problem is all my branches have dynamic IP. I can make phone calls from my branchA to the main office but not on the other way. Here is my configuration:
Asterisk on Branch Office (SERVER A)
(Dynamic IP – behind Nat)
iax.conf
[general]
…
Register => branch1:password1@serverB
[interoffice]
Type=friend
Host=serverB
Username=branch1
Secret=password1
…
extensions.conf
…
[outbound-interoffice]
Exten => _7XXXX,1,Dial(IAX2/interoffice/${EXTEN:1})
…
Asterisk on Main Office (SERVER B)
(Public IP)
iax.conf
[general]
…
[branch1]
Type=friend
Secret=1234
Host=dynamic
…
extensions.conf
…
[outbound-interoffice]
Exten => _7XXXX,1,Dial(IAX2/branch1:password1/${EXTEN:1})