Jump to content

Recommended Posts

Posted

Hello,

 

I'm new on this but I want to provision the Addressbook of the PBX to the snom 3xx phones.

 

From our local dealer I received a PHP script that generates a URL that should be used to do this. It's like this:

 

<form><table>
<tr><td>IP Address Server</td><td><input name=ipaddr></td></tr>
<tr><td>Username</td><td><input name=username></td></tr>
<tr><td>Password</td><td><input type=password name=password></td></tr>
</table>
</form>
<?php
if($username)
echo "<a href=http://$ipaddr/snom/adrbook.xml?user=".md5("$username:$password").">http://$ipaddr/snom/adrbook.xml?user=".md5("$username:$password")."<br>";
?>

 

That creates a URL like:

 

http://Voip02:800/snom/adrbook.xml?user=00...000000000000000 (000 is MD5 Hash;)).

 

I put the URL in the SNOM phone in the Directory button with "Action URL" set but it doesn't work.

 

Am I doing something wrong? or do I need to configure something else first?

(I set the PnP flags in Domain settings (username/password).

Posted

 

You are close. I would use something like this

http://$pbx/snom/adrbook.xml?user=$index&auth=md5("$username:$password")

You also need to know the index in the users table. I know that was stupid, but at the moment that's the way it is. And of course the hash should be something more "random"...

Posted
You are close. I would use something like this

http://$pbx/snom/adrbook.xml?user=$index&auth=md5("$username:$password")

You also need to know the index in the users table. I know that was stupid, but at the moment that's the way it is. And of course the hash should be something more "random"...

 

Oke, now It generates a link like:

 

Where:

$pbx = 10.38.52.10:800

user = 2 (when moving the mouse over the "edit" image to receive the id of the extenstion (the extension number = 32).

the username = admin and the password is hofstee (set in provisioning settings).

 

http://10.38.52.10:800/snom/adrbook.xml?us...12f8206f2da7c10

 

But when putting the url in the phone it's not working, opening it in IE opens the PBX login screen.

Btw, it needs to load the domain addressbook.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...