vStache
Occasional Visitor
I have a RT-N66W running Asterix 11 pbx on 380.61 version of Merlin ASUSWRT.
I am not able to get Zoiper softphone on my iPhone to complete SIP registration or place calls unless the phone is connected to the LAN and the LAN address of the router is used as the host address for Asterisk.
The moment I use the external IP of the router, registration times out irrespective of where the phone is: connected to LAN or connected to the internet some other way.
As I investigated it, I found a number of anomalies:
1) Asterix can receive SIP requests from hosts it is registered with (callcentric, for example) even if SIP NAT passthrough is disabled.
2) Similarly, a PPTP connection can be made to the router even it NAT passrhrough is disabled for PPTP.
3) On the other hand, if SIP registration has to be initiated by another SIP client to the Asterix PBX, the only way for it to work is from the LAN side of the router using the LAN IP address of the Asterisk host (router).
Changing NAT passthrough or NAT helper has no effect. I tried putting the router in DMZ, forwarding port 5060 to the router LAN address and nothing helps.
I enabled firewall logging for dropped packets and watched the log. The packets to 5060 port are being dropped by the firewall no matter what settings I use for NAT helper or port forwarding. Only change with port forwarding or putting the router in DMZ is that the dropped packets show the LAN IP address as the destination address field of the dropped packets. Otherwise, external IP address shows.
Additionally, SIP request packets seem to disappear when the SIP client is connected to the LAN but uses the external IP address as the IP address. The packets are not shown as dropped by the firewall and they don't seem to reach the PBX. The samething happens if firewall is disabled. The SIP packets are not dropped but don't reach the PBX.
If the SIP client uses the LAN address of the router, the registration request reaches the PBX.
I am stumped and would welcome any suggestions to resolve this issue.
I am not able to get Zoiper softphone on my iPhone to complete SIP registration or place calls unless the phone is connected to the LAN and the LAN address of the router is used as the host address for Asterisk.
The moment I use the external IP of the router, registration times out irrespective of where the phone is: connected to LAN or connected to the internet some other way.
As I investigated it, I found a number of anomalies:
1) Asterix can receive SIP requests from hosts it is registered with (callcentric, for example) even if SIP NAT passthrough is disabled.
2) Similarly, a PPTP connection can be made to the router even it NAT passrhrough is disabled for PPTP.
3) On the other hand, if SIP registration has to be initiated by another SIP client to the Asterix PBX, the only way for it to work is from the LAN side of the router using the LAN IP address of the Asterisk host (router).
Changing NAT passthrough or NAT helper has no effect. I tried putting the router in DMZ, forwarding port 5060 to the router LAN address and nothing helps.
I enabled firewall logging for dropped packets and watched the log. The packets to 5060 port are being dropped by the firewall no matter what settings I use for NAT helper or port forwarding. Only change with port forwarding or putting the router in DMZ is that the dropped packets show the LAN IP address as the destination address field of the dropped packets. Otherwise, external IP address shows.
Additionally, SIP request packets seem to disappear when the SIP client is connected to the LAN but uses the external IP address as the IP address. The packets are not shown as dropped by the firewall and they don't seem to reach the PBX. The samething happens if firewall is disabled. The SIP packets are not dropped but don't reach the PBX.
If the SIP client uses the LAN address of the router, the registration request reaches the PBX.
I am stumped and would welcome any suggestions to resolve this issue.