Jump to content

PnP Buttons not reflected on snom870


shigeru
 Share

Recommended Posts

I have setup the snom870 phone button customization for the domain as below;

1;flag;62;24/7
2;speed;*92;Black List
3;url;{https-url tftp}/snom870-cam-frontHD.xml;Front Cam
4;blf;xx;xxxxxxxx
5;blf;xx;xxxxxxxx
6;blf;xx;xxxxxxxx
7;blf;xx;xxxxxxxx
8;blf;xx;xxxxxxxx
9;blf;xx;xxxxxxxx
10;speed;xxxxxxxxxxx;xxxxxxxxxx
11;speed;xxxxxxxxxxx;xxxxxxxxxx
12;speed;xxxxxxxxxxx;xxxxxxxxxx
13;park;66;Orbit 1
14;park;67;Orbit 2
15;url;{https-url tftp}/snom870-cam-frontHD-snap.xml;Pseudo Video

 

However if I access the actual URL for the provision setting XML (https://xx.xx.xx.xx/snom_870_buttons.xml?model=snom870), I get the following;

<?xml version="1.0" encoding="utf-8"?>
<functionKeys>
 <fkey idx="0" context="active" perm="RW">{button 1}</fkey>
 <fkey idx="1" context="active" perm="RW">{button 2}</fkey>
 <fkey idx="2" context="active" perm="RW">{button 3}</fkey>
 <fkey idx="3" context="active" perm="RW">{button 4}</fkey>
 <fkey idx="4" context="active" perm="RW">{button 5}</fkey>
 <fkey idx="5" context="active" perm="RW">{button 6}</fkey>
 <fkey idx="6" context="active" perm="RW">{button 7}</fkey>
 <fkey idx="7" context="active" perm="RW">{button 8}</fkey>
 <fkey idx="8" context="active" perm="RW">{button 9}</fkey>
 <fkey idx="9" context="active" perm="RW">{button 10}</fkey>
 <fkey idx="10" context="active" perm="RW">{button 11}</fkey>
 <fkey idx="11" context="active" perm="RW">{button 12}</fkey>
 <fkey idx="12" context="active" perm="RW">{button 13}</fkey>
 <fkey idx="13" context="active" perm="RW">{button 14}</fkey>
 <fkey idx="14" context="active" perm="RW">{button 15}</fkey>
 <fkey idx="15" context="active" perm="RW">{button 16}</fkey>
 <fkey idx="16" context="active" perm="RW">{button 17}</fkey>
 <fkey idx="17" context="active" perm="RW">{button 18}</fkey>
 <fkey idx="18" context="active" perm="RW">{button 19}</fkey>
 <fkey idx="19" context="active" perm="RW">{button 20}</fkey>
 <fkey idx="20" context="active" perm="RW">{button 21}</fkey>
 <fkey idx="21" context="active" perm="RW">{button 22}</fkey>
 <fkey idx="22" context="active" perm="RW">{button 23}</fkey>
 <fkey idx="23" context="active" perm="RW">{button 24}</fkey>
 <fkey idx="24" context="active" perm="RW">{button 25}</fkey>
 <fkey idx="25" context="active" perm="RW">{button 26}</fkey>
 <fkey idx="26" context="active" perm="RW">{button 27}</fkey>
 <fkey idx="27" context="active" perm="RW">{button 28}</fkey>
 <fkey idx="28" context="active" perm="RW">{button 29}</fkey>
 <fkey idx="29" context="active" perm="RW">{button 30}</fkey>
 <fkey idx="30" context="active" perm="RW">{button 31}</fkey>
 <fkey idx="31" context="active" perm="RW">{button 32}</fkey>
 <fkey idx="32" context="active" perm="RW">{button 33}</fkey>
 <fkey idx="33" context="active" perm="RW">{button 34}</fkey>
 <fkey idx="34" context="active" perm="RW">{button 35}</fkey>
 <fkey idx="35" context="active" perm="RW">{button 36}</fkey>
 <fkey idx="36" context="active" perm="RW">{button 37}</fkey>
 <fkey idx="37" context="active" perm="RW">{button 38}</fkey>
 <fkey idx="38" context="active" perm="RW">{button 39}</fkey>
 <fkey idx="39" context="active" perm="RW">{button 40}</fkey>
 <fkey idx="40" context="active" perm="RW">{button 41}</fkey>
 <fkey idx="41" context="active" perm="RW">{button 42}</fkey>
 <fkey idx="42" context="active" perm="RW">{button 43}</fkey>
 <fkey idx="43" context="active" perm="RW">{button 44}</fkey>
 <fkey idx="44" context="active" perm="RW">{button 45}</fkey>
 <fkey idx="45" context="active" perm="RW">{button 46}</fkey>
 <fkey idx="46" context="active" perm="RW">{button 47}</fkey>
 <fkey idx="47" context="active" perm="RW">{button 48}</fkey>
 <fkey idx="48" context="active" perm="RW">{button 49}</fkey>
 <fkey idx="49" context="active" perm="RW">{button 50}</fkey>
 <fkey idx="50" context="active" perm="RW">{button 51}</fkey>
 <fkey idx="51" context="active" perm="RW">{button 52}</fkey>
 <fkey idx="52" context="active" perm="RW">{button 53}</fkey>
 <fkey idx="53" context="active" perm="RW">{button 54}</fkey>
 <fkey idx="54" context="active" perm="RW">{button 55}</fkey>
 <fkey idx="55" context="active" perm="RW">{button 56}</fkey>
 <fkey idx="56" context="active" perm="RW">{button 57}</fkey>
 <fkey idx="57" context="active" perm="RW">{button 58}</fkey>
 <fkey idx="58" context="active" perm="RW">{button 59}</fkey>
 <fkey idx="59" context="active" perm="RW">{button 60}</fkey>
 <fkey idx="60" context="active" perm="RW">{button 61}</fkey>
 <fkey idx="61" context="active" perm="RW">{button 62}</fkey>
 <fkey idx="62" context="active" perm="RW">{button 63}</fkey>
 <fkey idx="63" context="active" perm="RW">{button 64}</fkey>
 <fkey idx="64" context="active" perm="RW">{button 65}</fkey>
 <fkey idx="65" context="active" perm="RW">{button 66}</fkey>
 <fkey idx="66" context="active" perm="RW">{button 67}</fkey>
 <fkey idx="67" context="active" perm="RW">{button 68}</fkey>
 <fkey idx="68" context="active" perm="RW">{button 69}</fkey>
 <fkey idx="69" context="active" perm="RW">{button 70}</fkey>
 <fkey idx="70" context="active" perm="RW">{button 71}</fkey>
 <fkey idx="71" context="active" perm="RW">{button 72}</fkey>
 <fkey idx="72" context="active" perm="RW">{button 73}</fkey>
 <fkey idx="73" context="active" perm="RW">{button 74}</fkey>
 <fkey idx="74" context="active" perm="RW">{button 75}</fkey>
 <fkey idx="75" context="active" perm="RW">{button 76}</fkey>
 <fkey idx="76" context="active" perm="RW">{button 77}</fkey>
 <fkey idx="77" context="active" perm="RW">{button 78}</fkey>
 <fkey idx="78" context="active" perm="RW">{button 79}</fkey>
 <fkey idx="79" context="active" perm="RW">{button 80}</fkey>
 <fkey idx="80" context="active" perm="RW">{button 81}</fkey>
 <fkey idx="81" context="active" perm="RW">{button 82}</fkey>
 <fkey idx="82" context="active" perm="RW">{button 83}</fkey>
 <fkey idx="83" context="active" perm="RW">{button 84}</fkey>
 <fkey idx="84" context="active" perm="RW">{button 85}</fkey>
 <fkey idx="85" context="active" perm="RW">{button 86}</fkey>
 <fkey idx="86" context="active" perm="RW">{button 87}</fkey>
 <fkey idx="87" context="active" perm="RW">{button 88}</fkey>
 <fkey idx="88" context="active" perm="RW">{button 89}</fkey>
 <fkey idx="89" context="active" perm="RW">{button 90}</fkey>
 <fkey idx="90" context="active" perm="RW">{button 91}</fkey>
 <fkey idx="91" context="active" perm="RW">{button 92}</fkey>
 <fkey idx="92" context="active" perm="RW">{button 93}</fkey>
 <fkey idx="93" context="active" perm="RW">{button 94}</fkey>
 <fkey idx="94" context="active" perm="RW">{button 95}</fkey>
 <fkey idx="95" context="active" perm="RW">{button 96}</fkey>
 <fkey idx="96" context="active" perm="RW">{button 97}</fkey>
 <fkey idx="97" context="active" perm="RW">{button 98}</fkey>
 <fkey idx="98" context="active" perm="RW">{button 99}</fkey>
 <fkey idx="99" context="active" perm="RW">{button 100}</fkey>
 <fkey idx="100" context="active" perm="RW">{button 101}</fkey>
 <fkey idx="101" context="active" perm="RW">{button 102}</fkey>
 <fkey idx="102" context="active" perm="RW">{button 103}</fkey>
 <fkey idx="103" context="active" perm="RW">{button 104}</fkey>
 <fkey idx="104" context="active" perm="RW">{button 105}</fkey>
 <fkey idx="105" context="active" perm="RW">{button 106}</fkey>
 <fkey idx="106" context="active" perm="RW">{button 107}</fkey>
 <fkey idx="107" context="active" perm="RW">{button 108}</fkey>
 <fkey idx="108" context="active" perm="RW">{button 109}</fkey>
 <fkey idx="109" context="active" perm="RW">{button 110}</fkey>
 <fkey idx="110" context="active" perm="RW">{button 111}</fkey>
 <fkey idx="111" context="active" perm="RW">{button 112}</fkey>
 <fkey idx="112" context="active" perm="RW">{button 113}</fkey>
 <fkey idx="113" context="active" perm="RW">{button 114}</fkey>
 <fkey idx="114" context="active" perm="RW">{button 115}</fkey>
 <fkey idx="115" context="active" perm="RW">{button 116}</fkey>
 <fkey idx="116" context="active" perm="RW">{button 117}</fkey>
 <fkey idx="117" context="active" perm="RW">{button 118}</fkey>
 <fkey idx="118" context="active" perm="RW">{button 119}</fkey>
 <fkey idx="119" context="active" perm="RW">{button 120}</fkey>
 <fkey idx="120" context="active" perm="RW">{button 121}</fkey>
 <fkey idx="121" context="active" perm="RW">{button 122}</fkey>
 <fkey idx="122" context="active" perm="RW">{button 123}</fkey>
 <fkey idx="123" context="active" perm="RW">{button 124}</fkey>
 <fkey idx="124" context="active" perm="RW">{button 125}</fkey>
 <fkey idx="125" context="active" perm="RW">{button 126}</fkey>
 <fkey idx="126" context="active" perm="RW">{button 127}</fkey>
 <fkey idx="127" context="active" perm="RW">{button 128}</fkey>
 <fkey idx="128" context="active" perm="RW">{button 129}</fkey>
 <fkey idx="129" context="active" perm="RW">{button 130}</fkey>
 <fkey idx="130" context="active" perm="RW">{button 131}</fkey>
 <fkey idx="131" context="active" perm="RW">{button 132}</fkey>
 <fkey idx="132" context="active" perm="RW">{button 133}</fkey>
 <fkey idx="133" context="active" perm="RW">{button 134}</fkey>
 <fkey idx="134" context="active" perm="RW">{button 135}</fkey>
 <fkey idx="135" context="active" perm="RW">{button 136}</fkey>
 <fkey idx="136" context="active" perm="RW">{button 137}</fkey>
 <fkey idx="137" context="active" perm="RW">{button 138}</fkey>
</functionKeys>

 

Above customization is done to the Domain wide, though. Any ideas? Thanks.

 

Version:	5.0.3 (CentOS64)
Created on:	Dec 14 2012 14:28:41
License Status:	snom ONE free

Link to comment
Share on other sites

Before anything else, can you tell me why you don't use the simplified way of just selected the snom870 in domain buttons and make your selections on those buttons so that they are delivered to the snom870? Have I missed something where it is necessary to do it the way you did? The reason I ask is that we have really simplified the process I wanted to know what that process does not cover.

 

Thanks.

Link to comment
Share on other sites

When you access it through the web browser, make sure that you include the /prov behind the server name. Also, and probably much easier, you can just take a look into the "generated" folder what the PBX has generated for the phone without the need to tweak your browser...

 

I have put the URL (https://xx.xx.xx.xx/prov/snom_870_buttons.xml?model=snom870) as you have suggested and have got this as response. And there is no file named "snom_870_buttons.xml" in generated folder and there was not.

<html><head>
<title>Error</title>
</head><body>
<h1>File snom_870_buttons.xml not found</h1>
<b></b>
<p>Please ask your system administrator to check the log file.</p>
</body></html>

 

post-25305-0-20671400-1358294035_thumb.png

 

Any suggestions? Thank you.

Link to comment
Share on other sites

Before anything else, can you tell me why you don't use the simplified way of just selected the snom870 in domain buttons and make your selections on those buttons so that they are delivered to the snom870? Have I missed something where it is necessary to do it the way you did? The reason I ask is that we have really simplified the process I wanted to know what that process does not cover.

 

Thanks.

 

Yes, I did in the way you suggested. But then it is rather troublesome to take a screenshot, modify the image to protect privacy, then attach it to this post. So after I did the setting saved, I switched to the text mode and copied those text into the post and took out the privacy portion. Hope this make sense to you.

 

Regards,

Link to comment
Share on other sites

Before anything else, can you tell me why you don't use the simplified way of just selected the snom870 in domain buttons and make your selections on those buttons so that they are delivered to the snom870? Have I missed something where it is necessary to do it the way you did? The reason I ask is that we have really simplified the process I wanted to know what that process does not cover.

 

Thanks.

 

 

 

http://wiki.snomone.com/index.php?title=Configuring_Buttons

 

Let us know of this helps.

 

Thanks

Link to comment
Share on other sites

Yes, I did in the way you suggested. But then it is rather troublesome to take a screenshot, modify the image to protect privacy, then attach it to this post. So after I did the setting saved, I switched to the text mode and copied those text into the post and took out the privacy portion. Hope this make sense to you.

 

Regards,

 

 

I am sorry, there was a slight problem with the 8 series phones. The next version will take care of that.

In the mean time can you add the lines below in the pnp.xml file and save and then restart the pbx.

 

<file name="snom_870_buttons.xml" encoding="xml">

<pattern>snom_870_buttons.xml</pattern>

<vendor>snom</vendor>

<protocol>https</protocol>

</file>

 

That should deliver the right file.

 

Thanks.

Link to comment
Share on other sites

I am sorry, there was a slight problem with the 8 series phones. The next version will take care of that.

In the mean time can you add the lines below in the pnp.xml file and save and then restart the pbx.

 

<file name="snom_870_buttons.xml" encoding="xml">

<pattern>snom_870_buttons.xml</pattern>

<vendor>snom</vendor>

<protocol>https</protocol>

</file>

 

That should deliver the right file.

 

Thanks.

 

I have added to the end of the pnp.xml as shown below, then restarted...

  <file name="yealink_common.txt" encoding="ascii">
   <pattern>y############.cfg</pattern>
   <vendor>Yealink</vendor>
   <model>T28</model>
   <pnp-vendor>Yealink</pnp-vendor>
   <pnp-url>{http-url}</pnp-url>
   <pnp-content-type>application/url</pnp-content-type>
   <parameter name="protocol_type">
     <display>Protocol Type (HTTP, TFTP)</display>
     <value>HTTP</value>
   </parameter>
   <parameter name="yealink_firmware">
     <display>Firmware version</display>
     <value>2.41.0.27.rom</value>
   </parameter>
 </file>
 <file name="yealink_mac.txt" encoding="ascii">
   <pattern>0015########.cfg</pattern>
   <vendor>Yealink</vendor>
   <model>T28</model>
 </file>
 <file name="snom_870_buttons.xml" encoding="xml">
   <pattern>snom_870_buttons.xml</pattern>
   <vendor>snom</vendor>
   <protocol>https</protocol>
 </file>
</plug-and-play>

 

But it did not produce any new file in the generated folder nor the button settings provisioned as intended.

post-25305-0-74997100-1358380782_thumb.png

 

Also the access to the provision information via browser returned the same response as before, basically the modification to pnp.xml made no change. Did I put those snippets at the wrong place?

Link to comment
Share on other sites

http://wiki.snomone.com/index.php?title=Configuring_Buttons

 

Let us know of this helps.

 

Thanks

 

As I have mentioned earlier, I have made configuration according to the WiKi page you have provided, just for the convenience sake to include in this posting system, I have copied the text version, as the snapshots of the web browser rendering will most likely cut the parameter inputs by the size of its text field and also will get messy as I have to cover the privacy related information in the image.

 

Thanks.

Link to comment
Share on other sites

No the placement seems to be correct.

 

I am sure you have checked it, but just to be sure, please check if your changes are still there in pnp.xml when you restart the system.

 

And you do make these changes in the customize page in the domain by selecting the pnp.xml file, changing it, saving it and restarting the pbx in the services?

 

I just repeated the process and in the browser I get the correct output when I add those lines in the pnp.xml. But if I remove them I get file not found.

 

In the browser, do you use:

 

https://[yourdomain]/prov/snom_870_buttons.xml?model=snom870

 

[yourdomain] of course needs to be replaced by your ip or domain name.

 

If it asks for certificate, you can add a temporary exception and in login/pass, give the login and pass of your first extension in the domain.

 

Until it returns the right file here, the phone won't get it either.

 

For further test, to see if you get any file from the system at all try:

 

http://[yourdomain]/prov/snom870.htm

 

It should return the next batch of files the phone should get. You can also copy and paste the buttons entry from here to try in the browser.

 

I hope this helps.

 

Thank you.

Link to comment
Share on other sites

No the placement seems to be correct.

 

I am sure you have checked it, but just to be sure, please check if your changes are still there in pnp.xml when you restart the system.

 

And you do make these changes in the customize page in the domain by selecting the pnp.xml file, changing it, saving it and restarting the pbx in the services?

 

I just repeated the process and in the browser I get the correct output when I add those lines in the pnp.xml. But if I remove them I get file not found.

 

In the browser, do you use:

 

https://[yourdomain]/prov/snom_870_buttons.xml?model=snom870

 

[yourdomain] of course needs to be replaced by your ip or domain name.

 

If it asks for certificate, you can add a temporary exception and in login/pass, give the login and pass of your first extension in the domain.

 

Until it returns the right file here, the phone won't get it either.

 

For further test, to see if you get any file from the system at all try:

 

http://[yourdomain]/prov/snom870.htm

 

It should return the next batch of files the phone should get. You can also copy and paste the buttons entry from here to try in the browser.

 

I hope this helps.

 

Thank you.

 

I have confirmed that the addition is present over reboots. Also when I check the snom870.htm I get the following, which I believe is how it should be including the "snom_870_buttons.xml?model=snom870" portion.;

<?xml version="1.0" encoding="utf-8"?>
<setting-files>
 <file url="http://192.168.x.x:80/prov/snom_3xx_fw.xml?model=snom870" />
 <file url="https://192.168.x.x:443/prov/snom_3xx_phone.xml?model=snom870" />
 <file url="https://192.168.x.x:443/prov/snom_870_buttons.xml?model=snom870" />
 <file url="https://192.168.x.x:443/prov/snom_web_lang.xml?model=snom870" />
 <file url="https://192.168.x.x:443/prov/snom_gui_lang.xml?model=snom870" />
</setting-files>

 

However querying URL https://192.168.x.x:443/prov/snom_870_buttons.xml?model=snom870 continue to yield the following.

<html><head>
<title>Error</title>
</head><body>
<h1>File snom_870_buttons.xml not found</h1>
<b></b>
<p>Please ask your system administrator to check the log file.</p>
</body></html>

 

Any more suggestion? Thanks.

Link to comment
Share on other sites

That's very strange.

 

Maybe another thing you can do is add the same thing in the admin pnp.xml.

In admin templates choose the pnp.xml, the same way you did for domain and add that piece I sent you. Then save and restart.

 

Also even if you don't get it in the browser, try it on the phone anyway, because the phone adds the domain, user and password etc. that are required.

 

Other than that, also try the same in the browser for another phone type like snom720, for testing just to see if you at least get other files not related to 8-series phones. You don't have to add anything for that. Just in the browser try:

 

https://192.168.x.x:443/prov/snom_720_buttons.xml?model=snom720

Link to comment
Share on other sites

That's very strange.

 

Maybe another thing you can do is add the same thing in the admin pnp.xml.

In admin templates choose the pnp.xml, the same way you did for domain and add that piece I sent you. Then save and restart.

 

Also even if you don't get it in the browser, try it on the phone anyway, because the phone adds the domain, user and password etc. that are required.

 

Other than that, also try the same in the browser for another phone type like snom720, for testing just to see if you at least get other files not related to 8-series phones. You don't have to add anything for that. Just in the browser try:

 

https://192.168.x.x:443/prov/snom_720_buttons.xml?model=snom720

 

This time the behavior has changed a bit. Now when I try to access the URL: https://192.168.x.x/prov/snom_870_buttons.xml?model=snom870, it asks for HTTPs login credentials. What credentials should I give?

 

May be some hope there?

 

UPDATE: I went forward resetting the phone and it has got the settings reflected! Super!

 

Now that the button settings are coming down, I have one more issue. As shown in the initial post of mine about button setting;

 

3;url;{https-url tftp}/snom870-cam-frontHD.xml;Front Cam

I realized that the {https-url tftp} part does not get interpreted. Is there any code that interpreted like other settings or just it is a limitation?

 

Thank you.

Link to comment
Share on other sites

I don't understand.

 

Why don't you just give the exact url here because this is the final setting from the user and will not be interpreted.

 

Well, it is a matter of convenience. When some reorganization happens and IP address or FQDN changes, I will not have to make changes here and there if I could use {https-url tftp} and other related codes. Otherwise, every time a network level change is made, a staff has to check snomONE configuration parameters one-by-one.

 

Hope you understand.

Link to comment
Share on other sites

I understand, but for now unfortunately you have to use the fixed url.

If it's a dns entry, as it usually is for a domain, it should not be a big issue.

 

Rarely will be the case needed, but since you have implemented the code in your template, I thought it would be convenient if it worked in this way also. I hope you would consider implementing this for the future release of snomONE.

 

Thanks.

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...