09-09-2012 03:40 AM - edited 03-16-2019 01:06 PM
Hi,
I am using 7900, 8900 and 9900 series phones on a non-CM environment, totally unsupported, but working perfectly. A couple simple PHP scripts (sorry, IANAP) do the housekeeping and things are nice and tidy.
Only one issue clouds the landscape, and that is pushing a background over a lot of phones with a script.
I am using wget thus:
wget --http-user=theusergoeshere --http-passwd=thepasswordgoeshere --post-file Logo7911.url http://thephonesipaddresshere/CGI/Execute
Where Logo7911.url is:
XML=%3CsetBackground%3E%20%20%20%3Cbackground%3E%20%20%20%20%20%3Cimage%3Ehttp://theserversipaddress/tftp/Desktops/95x34x1/logo-95x34x1.png%3C/image%3E%20%20%20%20%20%3Cicon%3Ehttp://theserversipaddress/tftp/Desktops/95x34x1/logo-24.png%3C/icon%3E%20%20%20%3C/background%3E%20%3C/setBackground%3E
Which is an escaped and prefixed version of:
<setBackground>
<background>
<image>http://theserversipaddress/tftp/Desktops/95x34x1/logo-95x34x1.png</image>
<icon>http://theserversipaddress/tftp/Desktops/95x34x1/logo-24.png</icon>
</background>
</setBackground>
So I see the following result:
--2012-09-09 12:21:58-- http://thephonesipaddresshere/CGI/Execute
Connecting to thephonesipaddresshere:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Failed writing HTTP request: Bad file descriptor.
Retrying.
--2012-09-09 12:21:59-- (try: 2) http://thephonesipaddresshere/CGI/Execute
Connecting to thephonesipaddresshere:80... connected.
HTTP request sent, awaiting response... 400 Bad Request
2012-09-09 12:21:59 ERROR 400: Bad Request.
Between the first request and the retry, I can see the phone calling home to the authenticationURL it has configured to validate the credentials, which I do with a one-liner that simply spits out "AUTHORIZED". So my guess is that the intended operation is we query the phone, it says 401 but calls home, and upon retry it has already called home and validated the credentials, so it should give us an answer. However, the answer we get is not what I'm hoping for; we get a 400. By sniffing the traffic I can see what the phone says along with that 400:
<errorResponse>
<type> Unsupported Operation</type>
<data> Personalization is disabled</data>
</errorResponse>
So I have tried to search around about enabling personalization but this is where I am stuck. I have tried to generate a new xml configuration with a 2901 I have for that, but it didn't help either.
So, what am I missing?
Thanks!
Solved! Go to Solution.
09-12-2012 11:23 PM
Hi
I've attached a config from one of my phones - you'll see a line like this in it:
That's what you are missing - I think it should be 1 but it may be 0.
I've attached the full xml for review
Regards
Principal Engineer at Logicalis UK
Please rate helpful posts...
09-12-2012 11:23 PM
Hi
I've attached a config from one of my phones - you'll see a line like this in it:
That's what you are missing - I think it should be 1 but it may be 0.
I've attached the full xml for review
Regards
Principal Engineer at Logicalis UK
Please rate helpful posts...
09-13-2012 02:12 PM
That was it! For the record, 1 is the right value to allow setBackground (and perhaps other methods). Thanks much!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide