Zero touch not working

I am reading http://wiki.freepbx.org/display/PHON/Setup+Phone+with+DHCP+Option+66
My phone doesn’t prompt me to login as I expect per link above in “Automatic Configuration process”

My EPM is working fine with Polycom and Aastra phones already.
So got my first S500 and plugged it in. LLDP not enabled in my FW 2.0.4.0, so I enabled and can get correct IP now but phone isn’t asking for a login, and doesn’t act like it is using DHCP options for provisiong, ntp, etc.

I upgraded to 2.0.4.7 via phone gui and rebooted

BOOT–2.0.3.36(2016-01-31 11:10:00)
IMG–2.0.4.7(2016-04-11 15:55:00)
ROM–2.0.4.7(2016-04-11 15:57:00)
DSP–9.0.3(Patch 1.0.0)

I see phone logging into FreePBX 13.0.131 but fails to download files. I now have two buttons on phone that read
Login Int
Login E…
pressing either button shows “failed to load XML”. I have set EPM to use firmware slots and FW is downloaded, but phone doesn’t download FW (yet). Do I have to login before FW downloads?

Fri Jun 17 16:13:05 2016 [pid 30993] [kfspbx] OK LOGIN: Client "10.1.7.56"
Fri Jun 17 16:13:05 2016 [pid 30995] [kfspbx] FTP response: Client “10.1.7.56”, "230 Login successful."
Fri Jun 17 16:13:05 2016 [pid 30995] [kfspbx] FTP command: Client “10.1.7.56”, "TYPE I"
Fri Jun 17 16:13:05 2016 [pid 30995] [kfspbx] FTP response: Client “10.1.7.56”, "200 Switching to Binary mode."
Fri Jun 17 16:13:05 2016 [pid 30995] [kfspbx] FTP command: Client “10.1.7.56”, "PASV"
Fri Jun 17 16:13:05 2016 [pid 30995] [kfspbx] FTP response: Client “10.1.7.56”, "227 Entering Passive Mode (10,1,7,250,219,27)."
Fri Jun 17 16:13:05 2016 [pid 30995] [kfspbx] FTP command: Client “10.1.7.56”, "PORT 10,1,7,56,195,148"
Fri Jun 17 16:13:05 2016 [pid 30995] [kfspbx] FTP response: Client “10.1.7.56”, "200 PORT command successful. Consider using PASV."
Fri Jun 17 16:13:05 2016 [pid 30995] [kfspbx] FTP command: Client “10.1.7.56”, "RETR cfg005058500e62"
Fri Jun 17 16:13:05 2016 [pid 30995] [kfspbx] FTP response: Client “10.1.7.56”, "550 Failed to open file."
Fri Jun 17 16:13:05 2016 [pid 30995] [kfspbx] FAIL DOWNLOAD: Client “10.1.7.56”, “/tftpboot/cfg005058500e62”, 0.00Kbyte/sec

Did you create your Sangoma account for zero-touch provisioning?

This sounds like your Sangoma Template is not setup correct. Did you verify that the template shows a valid IP address for Destnation address.

@BlazeStudios: I do have an account at portal.schmoozecom.com and added the MAC address and haven’t seen the phone contacting the portal. I don’t think I should need that if I am provisioning myself.

@tonyclewis: I have 10.1.7.250 in destination and provision address. This IP is also set in DHCP.

So I am under the impression that a new phone gets plugged in and user can “login” to the phone. When the user logs in, FreePBX should associate the phone with users extension. Is this assumption incorrect?

I got provisioning to work by performing network scan then assigning an extension to the phone via EPM. I still can’t get FW to update. I see and FTP request from phone but looks like it times out or doesn’t complete.

The ftp log shows this when phone tries…
Mon Jun 20 11:50:16 2016 [pid 3543] [kfspbx] OK LOGIN: Client "10.1.7.56"
Mon Jun 20 11:50:16 2016 [pid 3545] [kfspbx] FTP response: Client “10.1.7.56”, "230 Login successful."
Mon Jun 20 11:50:16 2016 [pid 3545] [kfspbx] FTP command: Client “10.1.7.56”, "TYPE I"
Mon Jun 20 11:50:16 2016 [pid 3545] [kfspbx] FTP response: Client “10.1.7.56”, "200 Switching to Binary mode."
Mon Jun 20 11:50:16 2016 [pid 3545] [kfspbx] FTP command: Client “10.1.7.56”, "CWD sangoma/1"
Mon Jun 20 11:50:16 2016 [pid 3545] [kfspbx] FTP response: Client “10.1.7.56”, "250 Directory successfully changed."
Mon Jun 20 11:50:16 2016 [pid 3545] [kfspbx] FTP command: Client “10.1.7.56”, "PASV"
Mon Jun 20 11:50:16 2016 [pid 3545] [kfspbx] FTP response: Client “10.1.7.56”, "227 Entering Passive Mode (10,1,7,250,173,81)."
Mon Jun 20 11:50:16 2016 [pid 3545] [kfspbx] FTP command: Client “10.1.7.56”, "PORT 10,1,7,56,145,57"
Mon Jun 20 11:50:16 2016 [pid 3545] [kfspbx] FTP response: Client “10.1.7.56”, "200 PORT command successful. Consider using PASV."
Mon Jun 20 11:50:16 2016 [pid 3545] [kfspbx] FTP command: Client “10.1.7.56”, "RETR fw500.rom"
Mon Jun 20 11:50:16 2016 [pid 3545] [kfspbx] FTP response: Client “10.1.7.56”, "150 Opening BINARY mode data connection for fw500.rom (15859572 bytes)."
Mon Jun 20 11:52:13 2016 [pid 3752] CONNECT: Client “10.1.7.56”

I have tried from localhost and from my PC on different vlan and get additional info showing

Mon Jun 20 11:54:29 2016 [pid 3832] [kfspbx] FTP response: Client “127.0.0.1”, "150 Opening BINARY mode data connection for fw500.rom (15859572 bytes)."
Mon Jun 20 11:54:29 2016 [pid 3832] [kfspbx] OK DOWNLOAD: Client “127.0.0.1”, “/tftpboot/sangoma/1/fw500.rom”, 15859572 bytes, 389005.46Kbyte/sec
Mon Jun 20 11:54:29 2016 [pid 3832] [kfspbx] FTP response: Client “127.0.0.1”, “226 Transfer complete.”

I’m still getting a XML error on all the soft keys as well but calls do work.

If I take my S500 home it will contact https://portal.schmoozecom.com but it won’t contact the portal when behind Cisco ASA 5515. I sent logs to Cisco and they say the portal is rejecting the packets.

I can plug phone direct to internet and set static IP and it will contact portal, but still get XML file failure trying to login.

Does phone need PnP or something else to be open to work behind ASA?

Well that’s obviously wrong. If it works when it’s NOT going through the AS, but it doesn’t work when it IS going through it, then the AS is obviously messing with the traffic, not that the portal is rejecting it.

I think that is causing all of your problems. Figure out why/how it is messing with the traffic and stop it from doing it.