3CX Phone 14-Connect-Timeout-Connect-Timeout-Conntected cycle

Discussion in 'iOS' started by m.loosli, May 30, 2016.

Thread Status:
Not open for further replies.
  1. m.loosli

    Joined:
    May 30, 2016
    Messages:
    9
    Likes Received:
    0
    Devices Info
    -------------------------------------------------------
    Phone Model: iPhone
    Generation: 5s, 6 and 6s
    Firmware Version: 9.3.2
    Jailbreak: no

    Issue Info
    -------------------------------------------------------
    Handset: Phone
    Connection: Wifi and 3G
    Server: Internal

    Every time I open the 3CXPhone 14 App the phone needs about 30 seconds to provision the presence information and the contacts; SIP is connected in about 1-5 seconds.

    The ports 5060 5090 443 and 80 are open and redirected to 3cx. When I connect from the internal network, everything works fine/fast. The problem only occurs from "outside".

    When I capture the packets I see the https- requests/responses and nothing indicates a port forwarding problem.

    3cx is setup with a separate FQDN for the internal and external network.

    Thanks for your help

    Best Regards,
    Markus Loosli
     
  2. NickD_3CX

    NickD_3CX Support Team
    Staff Member 3CX Support

    Joined:
    Jun 2, 2014
    Messages:
    1,283
    Likes Received:
    68
    Does the internal FQDN you have used also resolve externally or is it something that only resolves from inside the network where the 3CX Server resides?
     
  3. m.loosli

    Joined:
    May 30, 2016
    Messages:
    9
    Likes Received:
    0
    It only resolves from inside the network; I'm using a .local domain and a top level domain.
     
  4. PatrickTodd

    Joined:
    Jan 12, 2016
    Messages:
    40
    Likes Received:
    6
    Same setup here; external FQDN is a TLD whereas internal is a .local (ugh, legacy setup crap)

    1:1 NAT is properly setup and SIP calls function just fine but 3CX phone app constantly says it is not connected and does not show presence info.
     
  5. Vali_3CX

    Vali_3CX Well-Known Member
    Staff Member 3CX Support

    Joined:
    Dec 12, 2008
    Messages:
    1,477
    Likes Received:
    67
    Hi
    A good test is to try to access the PBX's management console directly from your iPhone's Safari browser (ie something like https: //vali3cx.3cx.pbx:5001/management/MainForm.wgx) If Safari isn't able to open that page, 3CXPhone will not be able too to connect the MyPhone server.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. m.loosli

    Joined:
    May 30, 2016
    Messages:
    9
    Likes Received:
    0
    Hi Vali_3CX

    The management console is available from iPhone and instantly shown without timeout. Same for the URLs in the provisioning-file (myphone/ and provisioning/).
    3CXPhone is able to connect to the MyPhone server, but runs into a timeout for the first two attempts.
     
  7. m.loosli

    Joined:
    May 30, 2016
    Messages:
    9
    Likes Received:
    0
    More things I can check? Or is it already clear that it's a bug and you're fixing it?
     
  8. m.loosli

    Joined:
    May 30, 2016
    Messages:
    9
    Likes Received:
    0
    Is there something more I can check?
     
  9. complex1

    complex1 Active Member

    Joined:
    Jan 25, 2010
    Messages:
    764
    Likes Received:
    39
    - Is the "outside" a LAN/Wifi or 3G network?
    - Have you tried to use a other iPhone (if possible)?
    - Have you reinstall the app?
    - Is it possible to connect/register your iPhone to another PBX?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. m.loosli

    Joined:
    May 30, 2016
    Messages:
    9
    Likes Received:
    0
    Thanks for your assistance.

    - Is the "outside" a LAN/Wifi or 3G network?
    From the WAN, Wifi or 3G doesn't matter.

    - Have you tried to use a other iPhone (if possible)?
    Yes, same behaviour.

    - Have you reinstall the app?
    Yes, tried this twice on both iPhones.

    - Is it possible to connect/register your iPhone to another PBX?
    Yes, the problem only occurs on my Installation. The 3CX of my colleague connects in an instant but he uses a split dns installation.

    Connecting with Zoiper to 3CX works fine from WAN and LAN.
     
  11. complex1

    complex1 Active Member

    Joined:
    Jan 25, 2010
    Messages:
    764
    Likes Received:
    39
    Hi,

    Just for testing… After provisioning the iPhone with the welcome mail please change the External PBX IP FQDN into the WAN IP-address and check if the issue still exist?
    The iPhone don’t have to resolve the public IP address of the PBX
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. m.loosli

    Joined:
    May 30, 2016
    Messages:
    9
    Likes Received:
    0
    Hi complex1,

    The issue still persists after reprovisioning and setting the external IP to the WAN IP.
    SIP connects in an instant and the "availability"-part uses 3 cycles to change to "available".
     
  13. complex1

    complex1 Active Member

    Joined:
    Jan 25, 2010
    Messages:
    764
    Likes Received:
    39
    Hi Markus,

    So, a long story short… you have issues with ports 80 / 443 (Presence Info)

    What I like to know:
    - Are you sure these (router) ports are dedicated to the 3CX PBX and nothing else?
    - Probably nothing to do with it, but is SIP_ALG disabled?
    - Did you restart the IIS web server?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. m.loosli

    Joined:
    May 30, 2016
    Messages:
    9
    Likes Received:
    0
    Hi Frank,

    Yes, I think so too. The strange thing is that only the app is affected.

    - Port 80/443 are open and redirected to 3CX
    - SIP_ALG is disabled

    I made a change in the security tab and will reboot the whole server this evening. Last time I restarted the Server was last thursday.

    I'll keep you informed.
     
  15. m.loosli

    Joined:
    May 30, 2016
    Messages:
    9
    Likes Received:
    0
    Hi Frank,

    The problem still persists even after the restart. To stay sure I even reprovisioned the iPhone but the behavior stays the same.
     
  16. complex1

    complex1 Active Member

    Joined:
    Jan 25, 2010
    Messages:
    764
    Likes Received:
    39
    Hi Markus,

    Very frustrating...

    For now I don't have other suggestions to do.
    Maybe you have to consider a reinstall of the 3CX PBX.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.