I have a working system (mostly).
I have FreePBX 220.127.116.11 on 192.168.1.253.
If I set the IP address under Endpoint Configuration Manager to the 192.168.1.253, it creates suitable aastra.cfg and $mac.cfg files for all my local phones.
Then I go into the Endpoint Template Manager and select the templates for two remote phones, and I do the Global Settings Overrides. I set the IP address to my dynamic dns name for that one phone only. Now I generate new configuration files and instead of my local IP address, I have my FQDN in there. Now if I reboot the local phones at work, they only register on LINE 1, not on 2 or 3, because they’re trying to use the FQDN on Line 2 and 3.
Basically I thought the way this should work is that the Global Settings Overrides would leave the original aastra.cfg alone, and put everything necessary in the $mac.cfg. So a remote phone would load the aastra.cfg file with the IP address, but then the $mac.cfg would come in and change the registrations for Line 1, 2, and 3 and set them using the FQDN.
If I reverse things and have the remote phone reboot with the aastra.cfg that was generated for the local phones, it only registers on its first line and the other two lines are trying to register to the local IP address of the server (which the phone cannot see because the server is remote).
Yes, I could establish a VPN to “fix” this. But I’d rather be able to basically take a phone on the road with me and run it on someone else’s network. The phones get their configs via FTP and if I could work on the registrations on all three lines, it would work great.
Another option would be to create two folders within the tftpboot folder, one local, one remote. The aastra.cfg that gets generated would be copied into the suitable folder, along with the appropriate $mac.cfg files. But will I remember what I’m doing in six months if I want to make changes (I doubt it).
Another real possibility is I’m not configuring this correctly. The phones show three lines in the Endpoint Device List, but I can only assign a single line. Is there a way to tell Endpoint to assign all three lines to an extension such that the $mac.cfg will have the suitable line assignments?
Any thoughts or comments would be most welcome!