Page 1 of 1

need to change IAX port - what about ASTblind and ASTloop

PostPosted: Tue Aug 26, 2014 5:26 pm
by ZibiX
Hi.

I want to change default port 4569 for IAX that is used for my agents to connect to system.

When I change this port in etc/asterisk/iax.conf and then rebooted the system (why iax2 reload command in CLI doesent work?) my agents can connect to system using new port.

But ASTblind and ASTloop are unregistered. Also when i change this port (4 diferent ports) on my all 4 dialers thy also are unregistered.

Where can i change the port for ASTblind and ASTloop and IAX2 sesions for my dialers?

Re: need to change IAX port - what about ASTblind and ASTloo

PostPosted: Tue Aug 26, 2014 10:33 pm
by mflorell
You would have to alter the code of the relay control script that forwards the different ports to the IAX2 ports for those trunks.

Re: need to change IAX port - what about ASTblind and ASTloo

PostPosted: Wed Aug 27, 2014 2:40 am
by ZibiX
Thank you very much mflorell for answer. Tell me where can i find this script and what data should be altered. Lets just say that my my IAX part should be 44569.

I'm really looking forward for your answer.

Re: need to change IAX port - what about ASTblind and ASTloo

PostPosted: Wed Aug 27, 2014 3:08 am
by ZibiX
Ok, I have found this script. It is located in: /usr/share/astguiclient/ip_relay/relay_control

Now the second part:

vici1:~ # asterisk -rx "iax2 show peers"
Name/Username Host Mask Port Status
vici2 192.168.0.210 (D) 255.255.255.255 4569 OK (3 ms)
vici3 192.168.0.205 (D) 255.255.255.255 4569 OK (3 ms)
vici4 192.168.0.204 (D) 255.255.255.255 4569 OK (3 ms)

and

vici1:~ # asterisk -rx "iax2 show registry"
Host dnsmgr Username Perceived Refresh State
192.168.0.210:4569 N vici1 192.168.0.215:4569 60 Registered
192.168.0.205:4569 N vici1 192.168.0.215:4569 60 Registered
192.168.0.204:4569 N vici1 192.168.0.215:4569 60 Registered

When i change IAX port my dialers get unregistered. I believe this is for load balancing. I did not find information in relay control script about this IAX connection.

Where can I change this option to prevent dialers from unregistered?