spa504g Provisioning -- 403

Discussion in '3CX Phone System - General' started by DaveSD, Mar 23, 2018.

  1. DaveSD

    Joined:
    Mar 23, 2018
    Messages:
    13
    Likes Received:
    1
    Evaluating 3cx on Windows 2012r2 Std. I am trying to get a 504g to provision using dhcp-66.

    When I attempt to load the page: http://x.x.x.x:5000/provisioning/e23fe4rkay7i/$MA.xml I get 403 - forbidden, regardless from where I attempt to load the page. I have two routable ip's assigned to the server, one is for the machine the other is assigned to the pbx software, checked windows firewall and 5000/5001 are any/any, no other firewall exists, unless there is one on the 3cx web server, wherever that is. Looked around in C:\ProgramData\3CX\Data\Http\wwwroot and the file $ma.xml doesnt exist.
     
  2. mariosM_3CX

    mariosM_3CX Support Team
    Staff Member 3CX Support

    Joined:
    Nov 1, 2017
    Messages:
    376
    Likes Received:
    35
  3. eddv123

    eddv123 Active Member

    Joined:
    Aug 15, 2017
    Messages:
    673
    Likes Received:
    104
    If you are evaluating 3CX for the first time I would suggest that you do this with a fully supported phone such as a Yealink: https://www.3cx.com/sip-phones/

    You will get a much better user and installer experience (as these have a limited feature-set) than using a "Legacy" supported handset and you can pick these phones up at a very reasonable price these days.
     
  4. DaveSD

    Joined:
    Mar 23, 2018
    Messages:
    13
    Likes Received:
    1
    got it.
    replaced $ma.xml with the mac and on the server, still cannot load http://x.x.x.78:5000/provisioning/e23fe4rkay7i/2c86d210ebea.xml from a browser getting 403. There are two routable IP's assigned to this server, one is to the machine (x.x.x.74), the other ip is assigned to the pbx (x.x.x.78)

    "If you are using http over 5000, you'll need to be local to the PBX." is this per your web server rules? windows firewall will allow... We have two locations, so we need to provision remotely anyway...
     
  5. craigreilly

    craigreilly Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    2,800
    Likes Received:
    133
    If you are remote, its HTTPS - and are you sure you are setup for 5000/5001 or 80/443?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. DaveSD

    Joined:
    Mar 23, 2018
    Messages:
    13
    Likes Received:
    1
    We are using 5000/5001. I can get to either now to load the provisioning xml http or https. I tried DHCP 66 to both the http / https url https://xxxxx.ca.3cx.us:5001/provisioning/e23fe4rkay7i/$MA.xml.

    I have done a factory reset on the SPA504G, but the phone is still not provisioning. I can see the phone in the dhcp client table, and I the phone has a valid 172.16.1.100 ip address.

    What should DHCPResyncOptions transport protocol be set to? I have tried http/https (to match the dhcp 66 url) and tftp

    Thank you for posting.
     
  7. craigreilly

    craigreilly Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    2,800
    Likes Received:
    133
    Is there a webserver running on this machine? You mention 2 IP Addresses. 1 on the machine and 1 for the PBX. Seems like a conflict somewhere.
    The xml config file doesnt exist until requested - and the MAC must be assigned to an extension as well.
    I would start over. Vanilla Windows install. 1 IP Address only.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. YiannisH_3CX

    YiannisH_3CX Support Team
    Staff Member 3CX Support

    Joined:
    May 10, 2016
    Messages:
    3,520
    Likes Received:
    240
    You could also try the manual provisioning method and see if that works. If it provisions the manual way then you can start looking an DHCP option 66 and see where that is going wrong.

    https://www.3cx.com/sip-phones/cisco-spa501g/