HTTP provisioning

Status
Not open for further replies.

alcoutop

New Member
May 1, 2019
26
5
3
34
Hello everyone,

I was able to provision my Aastra phones via HTTP. However, I had to disable the http username and password to get it working.
The reason I had to do it is because Aastra phones don't have the field to insert the provisioning information (username and password).
Aastra phones provide the protocol (HTTP), path and port.

1562795749382.png

I've got some coworkers saying that we might have an option to set up my phone as like username:pasword@provision_url

Do you guys have any further info about it?
I've tried different combinations but still doesn't work.
Thank you!
 

JamesBorne

Active Member
Jan 24, 2019
294
57
28
Australia
I've got some coworkers saying that we might have an option to set up my phone as like username:pasword@provision_url

Your colleague is right, did you try that?
It's as straightforward as https://uSeRnAm3:pA55wOrd@sub.domain.tld/app/provision

(I've done this with both Grandstream and Yealink)

Replace uSeRnAm3 with your username.
Replace pA55wOrd with your password.
Replace https with http if you hate security.
 
  • Like
Reactions: alcoutop

alcoutop

New Member
May 1, 2019
26
5
3
34
@JamesBorne thanks again for the help. Tried but didn't work.
The only thing different is that I have IP Address instead.
Below, my logs:

Code:
==> error.log <==
2019/07/11 18:22:36 [error] 630#630: *5735 open() "/var/www/fusionpbx/http:/admin:555@192.168.100.5/app/provision/security.tuz" failed (2: No such file or directory), client: 192.168.100.6, server: fusionpbx, request: "GET /http://admin:555@192.168.100.5/app/provision/security.tuz HTTP/1.1", host: "192.168.100.5:80"

==> access.log <==
192.168.100.6 - - [11/Jul/2019:18:22:36 -0700] "GET /http://admin:555@192.168.100.5/app/provision/security.tuz HTTP/1.1" 404 169 "-" "Aastra57i MAC:00-08-5D-2B-6D-FF V:3.2.2.56-SIP"
192.168.100.6 - - [11/Jul/2019:18:22:36 -0700] "GET /http://admin:555@192.168.100.5/app/provision/aastra.cfg HTTP/1.1" 401 23 "-" "Aastra57i MAC:00-08-5D-2B-6D-FF V:3.2.2.56-SIP"
192.168.100.6 - - [11/Jul/2019:18:22:36 -0700] "GET /http://admin:555@192.168.100.5/app/provision/aastra.cfg HTTP/1.1" 401 13 "-" "Aastra57i MAC:00-08-5D-2B-6D-FF V:3.2.2.56-SIP"

==> error.log <==
2019/07/11 18:22:47 [error] 630#630: *5738 open() "/var/www/fusionpbx/http:/admin:555@192.168.100.5/app/provision/security.tuz" failed (2: No such file or directory), client: 192.168.100.6, server: fusionpbx, request: "GET /http://admin:555@192.168.100.5/app/provision/security.tuz HTTP/1.1", host: "192.168.100.5:80"

==> access.log <==
192.168.100.6 - - [11/Jul/2019:18:22:47 -0700] "GET /http://admin:555@192.168.100.5/app/provision/security.tuz HTTP/1.1" 404 169 "-" "Aastra57i MAC:00-08-5D-2B-6D-FF V:3.2.2.56-SIP"
192.168.100.6 - - [11/Jul/2019:18:22:47 -0700] "GET /http://admin:555@192.168.100.5/app/provision/aastra.cfg HTTP/1.1" 401 13 "-" "Aastra57i MAC:00-08-5D-2B-6D-FF V:3.2.2.56-SIP"

==> error.log <==
2019/07/11 18:22:49 [error] 630#630: *5740 open() "/var/www/fusionpbx/http:/admin:555@192.168.100.5/app/provision/security.tuz" failed (2: No such file or directory), client: 192.168.100.6, server: fusionpbx, request: "GET /http://admin:555@192.168.100.5/app/provision/security.tuz HTTP/1.1", host: "192.168.100.5:80"

==> access.log <==
192.168.100.6 - - [11/Jul/2019:18:22:49 -0700] "GET /http://admin:555@192.168.100.5/app/provision/security.tuz HTTP/1.1" 404 169 "-" "Aastra57i MAC:00-08-5D-2B-6D-FF V:3.2.2.56-SIP"
192.168.100.6 - - [11/Jul/2019:18:22:49 -0700] "GET /http://admin:555@192.168.100.5/app/provision/aastra.cfg HTTP/1.1" 401 13 "-" "Aastra57i MAC:00-08-5D-2B-6D-FF V:3.2.2.56-SIP"

==> error.log <==
2019/07/11 18:22:51 [error] 630#630: *5742 open() "/var/www/fusionpbx/http:/admin:555@192.168.100.5/app/provision/security.tuz" failed (2: No such file or directory), client: 192.168.100.6, server: fusionpbx, request: "GET /http://admin:555@192.168.100.5/app/provision/security.tuz HTTP/1.1", host: "192.168.100.5:80"

==> access.log <==
192.168.100.6 - - [11/Jul/2019:18:22:51 -0700] "GET /http://admin:555@192.168.100.5/app/provision/security.tuz HTTP/1.1" 404 169 "-" "Aastra57i MAC:00-08-5D-2B-6D-FF V:3.2.2.56-SIP"
192.168.100.6 - - [11/Jul/2019:18:22:51 -0700] "GET /http://admin:555@192.168.100.5/app/provision/aastra.cfg HTTP/1.1" 401 13 "-" "Aastra57i MAC:00-08-5D-2B-6D-FF V:3.2.2.56-SIP"

==> error.log <==
2019/07/11 18:22:53 [error] 630#630: *5744 open() "/var/www/fusionpbx/http:/admin:555@192.168.100.5/app/provision/security.tuz" failed (2: No such file or directory), client: 192.168.100.6, server: fusionpbx, request: "GET /http://admin:555@192.168.100.5/app/provision/security.tuz HTTP/1.1", host: "192.168.100.5:80"

==> access.log <==
192.168.100.6 - - [11/Jul/2019:18:22:53 -0700] "GET /http://admin:555@192.168.100.5/app/provision/security.tuz HTTP/1.1" 404 169 "-" "Aastra57i MAC:00-08-5D-2B-6D-FF V:3.2.2.56-SIP"
192.168.100.6 - - [11/Jul/2019:18:22:53 -0700] "GET /http://admin:555@192.168.100.5/app/provision/aastra.cfg HTTP/1.1" 401 13 "-" "Aastra57i MAC:00-08-5D-2B-6D-FF V:3.2.2.56-SIP"

==> error.log <==
2019/07/11 18:22:55 [error] 630#630: *5746 open() "/var/www/fusionpbx/http:/admin:555@192.168.100.5/app/provision/security.tuz" failed (2: No such file or directory), client: 192.168.100.6, server: fusionpbx, request: "GET /http://admin:555@192.168.100.5/app/provision/security.tuz HTTP/1.1", host: "192.168.100.5:80"

==> access.log <==
192.168.100.6 - - [11/Jul/2019:18:22:55 -0700] "GET /http://admin:555@192.168.100.5/app/provision/security.tuz HTTP/1.1" 404 169 "-" "Aastra57i MAC:00-08-5D-2B-6D-FF V:3.2.2.56-SIP"
192.168.100.6 - - [11/Jul/2019:18:22:55 -0700] "GET /http://admin:555@192.168.100.5/app/provision/aastra.cfg HTTP/1.1" 401 13 "-" "Aastra57i MAC:00-08-5D-2B-6D-FF V:3.2.2.56-SIP"

==> error.log <==
2019/07/11 18:22:57 [error] 630#630: *5748 open() "/var/www/fusionpbx/http:/admin:555@192.168.100.5/app/provision/security.tuz" failed (2: No such file or directory), client: 192.168.100.6, server: fusionpbx, request: "GET /http://admin:555@192.168.100.5/app/provision/security.tuz HTTP/1.1", host: "192.168.100.5:80"

==> access.log <==
192.168.100.6 - - [11/Jul/2019:18:22:57 -0700] "GET /http://admin:555@192.168.100.5/app/provision/security.tuz HTTP/1.1" 404 169 "-" "Aastra57i MAC:00-08-5D-2B-6D-FF V:3.2.2.56-SIP"
192.168.100.6 - - [11/Jul/2019:18:22:57 -0700] "GET /http://admin:555@192.168.100.5/app/provision/aastra.cfg HTTP/1.1" 401 13 "-" "Aastra57i MAC:00-08-5D-2B-6D-FF V:3.2.2.56-SIP"
 

JamesBorne

Active Member
Jan 24, 2019
294
57
28
Australia
This doesn't look right to me...
Code:
GET /http://admin:555@192.168.100.5/app/provision/security.tuz HTTP/1.1
GET /http://admin:555@192.168.100.5/app/provision/aastra.cfg HTTP/1.1

Mine look like
Code:
public.ip - - [12/Jul/2019:13:16:48 +1000] "GET /app/provision/001122334455.boot HTTP/1.1" 404 169 "-" "Yealink SIP-T58 58.83.0.15 00:11:22:33:44:55"
public.ip - - [12/Jul/2019:13:16:48 +1000] "GET /app/provision/y000000000000.boot HTTP/1.1" 404 169 "-" "Yealink SIP-T58 58.83.0.15 00:11:22:33:44:55"
public.ip - - [12/Jul/2019:13:16:48 +1000] "GET /app/provision/y000000000058.cfg HTTP/1.1" 401 23 "-" "Yealink SIP-T58 58.83.0.15 00:11:22:33:44:55"
public.ip - - [12/Jul/2019:13:16:48 +1000] "GET /app/provision/y000000000058.cfg HTTP/1.1" 200 73473 "-" "Yealink SIP-T58 58.83.0.15 00:11:22:33:44:55"


Notice how my entries are the GET request from /app..... (which is a folder on the root of the webserver) and your GET have a / and also have the full URI?

I would have a look at your documentation there.
On a hunch I would say there is one "field" for the provision server, and one for the path.
So you have one box where you type http://admin:555@192.168.100.5
And another where you type /app/provision

Either that, or it just isn't possible.
 
  • Like
Reactions: alcoutop
Status
Not open for further replies.