Content

Page tree

I am trying to provision D785 on freepbx using http. I enter the provisioning url as http://pbx-fqdn/tftproot and in logs I see below messages

Oct 26 04:03:12.935 [DEBUG2] WEBCLIENT: Socket 22 connected

Oct 26 04:03:13.094 [NOTICE] WEBCLIENT: handle_challenge: http server is asking for credentials!

Oct 26 04:03:13.094 [NOTICE] WEBCLIENT: handle_challenge: resending request !

Oct 26 04:03:13.095 [DEBUG2] WEBCLIENT: Send TCP connected

Oct 26 04:03:13.253 [NOTICE] WEBCLIENT: handle_challenge: former http client authorization failed!

Oct 26 04:03:13.253 [NOTICE] WEBCLIENT: handle_challenge: asking user for authorization data !



Please help in below two questions

1> Is the provisioning url is corect

2> as freepbx need credentials for http provisioning, were we can provide the credentials in SNOM phones

profilePicture

Avinash Mohod

End user

Joined: 21.09.2022

5 Comments

  1. Snom Federico Rossi

    Hi,
    if you set the setting server as http://pbx-fqdn/tftproot the phone will search for these files:

    http://pbx-fqdn/tftproot/snomD785.htm
    http://pbx-fqdn/tftproot/snomD785-MACADDRESS.htm
    http://pbx-fqdn/tftproot/snomD785.firmware.htm

    if the http server ask for credentials, you must add user and password on the phone, by compiling these parameters:

    https://service.snom.com/display/wiki/http_client_user
    https://service.snom.com/display/wiki/http_client_pass

    and you can do it by hand, or via SRAPS, or via another provisioning file.

  2. End user Avinash Mohod

    After adding http client user name and password, I am not getting authentication error. But now It says 404. Does it mean config file does not exist on pbx


    Oct 27 03:02:40.674 [NOTICE] PHN: Fetching URL: http://xx.1x2.x6x.xx:83/tftpboot-0004139XXX48
    Oct 27 03:02:40.675 [DEBUG2] WEBCLIENT: Send TCP none
    Oct 27 03:02:40.676 [DEBUG2] WEBCLIENT: Socket 22 connecting
    Oct 27 03:02:40.678 [DEBUG2] WEBCLIENT: Socket 22 connected
    Oct 27 03:02:40.929 [INFO ] PHN: LAN port status: propagated (1)
    Oct 27 03:02:40.932 [NOTICE] WEBCLIENT: handle_challenge: http server is asking for credentials!
    Oct 27 03:02:40.932 [NOTICE] WEBCLIENT: handle_challenge: resending request !
    Oct 27 03:02:40.932 [DEBUG2] WEBCLIENT: Send TCP connected
    Oct 27 03:02:40.942 [DEBUG0] UXM: Request backlight for module -1 with value 15
    Oct 27 03:02:41.101 [DEBUG2] WEBCLIENT: Socket 22 disconnected
    Oct 27 03:02:41.102 [DEBUG2] WEBCLIENT: Socket 22 deleted
    Oct 27 03:02:41.102 [INFO ] PHN: Config setup: code: 404, uri: http://xx.1x2.x6x.xx:83/tftpboot-0004139XXX48
    Oct 27 03:02:41.102 [WARN ] PHN: Config setup: code: 404, uri: http://xx.1x2.x6x.xx:83/tftpboot-0004139XXX48
    Oct 27 03:02:41.104 [NOTICE] PHN: Fetching URL: https://admin:...@127.0.0.1:443/dummy.htm
    Oct 27 03:02:41.104 [DEBUG2] WEBCLIENT: Send TCP none
    Oct 27 03:02:41.106 [DEBUG2] WEBCLIENT: Socket 23 connecting
    Oct 27 03:02:41.106 [ERROR ] PHN: TPL: Socket Error: 23/38/connecting, connect_cb -> Operation now in progress (115)
    Oct 27 03:02:41.106 [DEBUG2] WEBCLIENT: webclient OnConnectionFailed
    Oct 27 03:02:41.106 [DEBUG2] PHN: TplSocket::SetNextIp: ip_list_ is empty
    Oct 27 03:02:41.106 [DEBUG2] WEBCLIENT: Socket 23 disconnected
    Oct 27 03:02:41.107 [DEBUG2] WEBCLIENT: socket:23 conn_id:3 disconnected Tls:127.0.0.1:443
    Oct 27 03:02:41.107 [NOTICE] WEBCLIENT: on_tcp_close conn_id:3
    Oct 27 03:02:41.107 [DEBUG2] WEBCLIENT: Socket 23 deleted

  3. Snom Federico Rossi

    Hi,

    please change the setting server url from http://pbx-fqdn/tftproot to http://pbx-fqdn/tftproot/ (with a / at the end)

  4. End user Avinash Mohod

    Still getting 404.


    Oct 27 22:40:48.640 [DEBUG2] WEBCLIENT: Socket 21 disconnected
    Oct 27 22:40:48.307 [NOTICE] PHN: Fetching URL: http://xx.1x2.16x.xx:83/tftpboot/snomD785.htm
    Oct 27 22:40:48.640 [DEBUG2] WEBCLIENT: Socket 21 deleted
    Oct 27 22:40:48.641 [INFO ] PHN: Config setup: code: 404, uri: http://xx.1x2.16x.xx:83/tftpboot/snomD785.htm
    Oct 27 22:40:48.641 [WARN ] PHN: Config setup: code: 404, uri: http://xx.1x2.16x.xx:83/tftpboot/snomD785.htm
    Oct 27 22:40:48.642 [NOTICE] PHN: Fetching URL: http://xx.1x2.16x.xx:83/tftpboot/snomD785-0004139XXX48.htm
    Oct 27 22:40:48.643 [DEBUG2] WEBCLIENT: Send TCP none
    Oct 27 22:40:48.644 [DEBUG2] WEBCLIENT: Socket 22 connecting
    Oct 27 22:40:48.647 [DEBUG2] WEBCLIENT: Socket 22 connected
    Oct 27 22:40:48.896 [INFO ] PHN: LAN port status: propagated (1)
    Oct 27 22:40:48.897 [NOTICE] WEBCLIENT: handle_challenge: http server is asking for credentials!
    Oct 27 22:40:48.898 [NOTICE] WEBCLIENT: handle_challenge: resending request !
    Oct 27 22:40:48.898 [DEBUG2] WEBCLIENT: Send TCP connected
    Oct 27 22:40:48.909 [DEBUG0] UXM: Request backlight for module -1 with value 15
    Oct 27 22:40:49.056 [DEBUG2] WEBCLIENT: Socket 22 disconnected
    Oct 27 22:40:49.056 [DEBUG2] WEBCLIENT: Socket 22 deleted
    Oct 27 22:40:49.056 [INFO ] PHN: Config setup: code: 404, uri: http://xx.1x2.16x.xx:83/tftpboot/snomD785-0004139XXX48.htm
    Oct 27 22:40:49.057 [WARN ] PHN: Config setup: code: 404, uri: http://xx.1x2.16x.xx:83/tftpboot/snomD785-0004139XXX48.htm
    Oct 27 22:40:49.058 [NOTICE] PHN: Fetching URL: https://admin:...@127.0.0.1:443/dummy.htm
    Oct 27 22:40:49.058 [DEBUG2] WEBCLIENT: Send TCP none
    Oct 27 22:40:49.060 [DEBUG2] WEBCLIENT: Socket 23 connecting
    Oct 27 22:40:49.061 [ERROR ] PHN: TPL: Socket Error: 23/38/connecting, connect_cb -> Operation now in progress (115)
    Oct 27 22:40:49.061 [DEBUG2] WEBCLIENT: webclient OnConnectionFailed
    Oct 27 22:40:49.061 [DEBUG2] PHN: TplSocket::SetNextIp: ip_list_ is empty
    Oct 27 22:40:49.061 [DEBUG2] WEBCLIENT: Socket 23 disconnected

  5. Snom Federico Rossi

    Hi, it is the server that reply with a 404. Please check the server configuration. If you point your web browser to http://xx.1x2.16x.xx:83/tftpboot/snomD785-0004139XXX48.htm do you see the file?