I am running asterisk server A&B at custom ports 54570&54571 respectivly. I define trunk A2B & B2A with custom port but asterisk connect for while on custom port but after some time it start to connect on default port 4569 and trunks becomme unreachable then I need to reload asterisk to connect on custom port. But some time reload does not work and asterisk totaly ignore custom port and keep on trying to connect at default port.
Here is my trunk definition
[A2B1] username=myuser1 type=peer secret=mypass1 qualify=yes port=54571 host=myhost
iax2 show peers
Name/Username Host Mask Port Status Description A2B1/myuser1 Y.Y.Y.Y (S) 255.255.255.255 4569 UNREACHABLE
OS: dabian wheezy
Asterisk: Asterisk 11.18.0
Frontend: FreePbx 12.0
Thanks in advance for you help.