Yealink Forums

Full Version: Remote Phonebook provision tXXp phones HTTP 401 error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

When I tried to download remote phonebook from directory with htaccess. The phone try with empty http username (don't authenticate), and return with 401 HTTP error.

Here's the apache log:
x.x.x.x - - [18/Aug/2015:10:26:27 +0000] "GET /dir_to_phonebook/phonebookgenerator.php?mac=00156529fbee HTTP/1.1" 401 653 "-" "Yealink SIP-T26P 00:15:65:29:fb:ee"

x.x.x.x - "" [18/Aug/2015:10:26:27 +0000] "GET /dir_to_phonebook/phonebookgenerator.php?mac=00156529fbee HTTP/1.1" 401 652 "-" "Yealink SIP-T26P 00:15:65:29:fb:ee"

apache (Server version: Apache/2.4.7 (Ubuntu)) config:

<Directory dir_to_phonebook>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require env let_me_in

AuthType Basic
AuthName "For Authorized Personal Only"
AuthUserFile /etc/apache2/.htpasswd
Require user user_to_authenticate

which phone book you are using ? is it XML phone book ?

if yes and the http server need authorized , then you need to fill in the whole URL with the user name and password completely in the remote phone book URL.

the format should be like below :

http://username:passsword@server address:serverport/remote phone book.xml
thanks for reply!

I think it's not so secure, becouse everyone can read the user and the password from the phone web config page ("user" account see the phonebook settings).

Is this the only way to authenticate?
Reference URL's