cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1469
Views
0
Helpful
2
Replies

Phone logo - again - how to push network-wide?

alfredos
Level 1
Level 1

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!

1 Accepted Solution

Accepted Solutions

Aaron Harrison
VIP Alumni
VIP Alumni

Hi

I've attached a config from one of my phones - you'll see a line like this in it:

1

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

Aaron Harrison

Principal Engineer at Logicalis UK

Please rate helpful posts...

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

View solution in original post

2 Replies 2

Aaron Harrison
VIP Alumni
VIP Alumni

Hi

I've attached a config from one of my phones - you'll see a line like this in it:

1

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

Aaron Harrison

Principal Engineer at Logicalis UK

Please rate helpful posts...

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

That was it! For the record, 1 is the right value to allow setBackground (and perhaps other methods). Thanks much!