TFTP Syntax for <setBackground>

Version 1
    This document was generated from CDN thread

    Created by: zane england on 02-11-2009 05:10:50 AM
    I am trying to deploy backgrounds to phones using the <setBackground> 
    The following works if posted to to <a>http://<phoneip>/CGI/Execute</a>] 
    <setBackground>
    <background>
    <image>http://<webserverip>/7965.png</image>
    <icon>http://<webserverip>/7965-tn.png</icon>
    </background>
    </setBackground>
    What is the syntax if you want to use TFTP addresses rather than putting the images up on a webserver?

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Stephan Steiner on 05-11-2009 11:38:44 PM
    Zane.. did you try the standard syntax for TFTP (like in the examples in the SDK to play audio files)?
     
    Also, where did you find the documentation for that command? I haven't seen it in the latest xsi guide, but it is one very welcome command (finally I can build my own "push an image to a 1000 phones" type of app).

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: David Staudt on 06-11-2009 07:46:49 AM
    Note that object is not documented/supported (it is used by the phone customization package.)
     
    I've heard there may be a possibility some of the phones do not have wear-leveling code protecting their flash memory, and that repeated updating of the background image - which writes to the same spot in flash every time, could shorten the lifetime of the device.  You probably wouldn't want to write a 'wallpaper rotator' app that switched backgrounds every minute.

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Stephan Steiner on 06-11-2009 05:32:28 PM
    There goes my idea of putting information in the background. <snif>

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: zane england on 08-11-2009 10:04:06 PM
    Yes it is the syntax that the phone personalisation widget uses - also you can find the schema on the CM it is called phonePersonalization.xsd
    I had a look at the SDK doc for the play URI and couldnt get that to work either - I have also tried using the same syntax as what the list.xml and lots of different permutations  

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Scott Brescia on 23-11-2009 06:54:47 PM
    I'd be curious how this works as well.  Currently I push the BG images to the phones with a lot of wonky commands (essentially mimicking the user's input as if they were hitting settings, user prefs, BG images, then selecting the image, etc...) and it's not pretty.  I'd prefer something different.  It seems that we're onto something here!

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Scott Brescia on 04-12-2009 08:07:32 PM
    Nothing?  I thought we were onto something, I'd really like to replace the awful script I use to currently change the user's background image - it literally mimicks user button presses as if there's a user at the phone pressing settings, user prefs, etc to get the background onto the phones.  It works, but it's not pretty and I'd like something that doesn't interfere with the user at all - I'd prefer to just have the background "appear" on their phones, seemingly magically!  I think this is a step in the right direction, I just need more information!

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Neal haas on 06-02-2010 07:08:46 PM
    So how do I work with this? any ideas?examples.
     
    thank you

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Eduardo Diaz on 13-07-2010 08:39:38 PM
    Nothing?  I thought we were onto something, I'd really like to replace the awful script I use to currently change the user's background image - it literally mimicks user button presses as if there's a user at the phone pressing settings, user prefs, etc to get the background onto the phones.  It works, but it's not pretty and I'd like something that doesn't interfere with the user at all - I'd prefer to just have the background "appear" on their phones, seemingly magically!  I think this is a step in the right direction, I just need more information!

     
    Hello, how you automatically execute the application on the phones? have you to execute the application on each phones?

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Scott Brescia on 13-07-2010 08:43:06 PM
    Hello, how you automatically execute the application on the phones? have you to execute the application on each phones?

     
    I wrote a script using AutoHotKey.  It uses the execute command with CGI to push commands to the phone using the web server that's built into the phones.  Kinda similar to grabbing screenshots from the devices.
     
    Executing it on all the phones was far from pretty.  I just wrote another AHK script that hammers all IPs in a given range - didn't help that our phones are scattered as far as IPs go for the phones.

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Eduardo Diaz on 14-07-2010 03:37:00 PM


    Hello, how you automatically execute the application on the phones? have you to execute the application on each phones?


     
    I wrote a script using AutoHotKey.  It uses the execute command with CGI to push commands to the phone using the web server that's built into the phones.  Kinda similar to grabbing screenshots from the devices.
     
    Executing it on all the phones was far from pretty.  I just wrote another AHK script that hammers all IPs in a given range - didn't help that our phones are scattered as far as IPs go for the phones.

     
    Hello thankyou for the answer, i am newbie using ip phones. I understand the concept but i am not clear yet in how to wrote a script that hammer all IPs in a given range. Where this script will be executed? I fund this example:
     
    http://markmail.org/message/d7gjmewexcdsaa6q

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Scott Brescia on 14-07-2010 03:43:35 PM
    Hello thankyou for the answer, i am newbie using ip phones. I understand the concept but i am not clear yet in how to wrote a script that hammer all IPs in a given range. Where this script will be executed? I fund this example:
     
    http://markmail.org/message/d7gjmewexcdsaa6q

     
    Yes, I used that example in combination with AHK.  I'm not going to walk you thru writing the script, it's just how I solved the problem.  I used that same markmail.org post you referenced to help me set it up however.

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Eduardo Diaz on 14-07-2010 04:14:22 PM


    Hello thankyou for the answer, i am newbie using ip phones. I understand the concept but i am not clear yet in how to wrote a script that hammer all IPs in a given range. Where this script will be executed? I fund this example:
     
    http://markmail.org/message/d7gjmewexcdsaa6q


     
    Yes, I used that example in combination with AHK.  I'm not going to walk you thru writing the script, it's just how I solved the problem.  I used that same markmail.org post you referenced to help me set it up however.

     
    thankyou, i didnt understood that the phones act like a web server. i will make my script.

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Scott Brescia on 14-07-2010 04:19:29 PM
    thankyou, i didnt understood that the phones act like a web server. i will make my script.



     
    So long as the "Web Access" setting is enabled on the device, you can access information about the phones by navtigating to the IP of the phone in your web browser.  Using this is how I push the commands to the phones.

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Eduardo Diaz on 15-07-2010 05:50:54 PM


    thankyou, i didnt understood that the phones act like a web server. i will make my script.




     
    So long as the "Web Access" setting is enabled on the device, you can access information about the phones by navtigating to the IP of the phone in your web browser.  Using this is how I push the commands to the phones.

     
    hello, you have been really helpful,   i have another question, i hope you can point me to the right direction, how can i get the user and password data of each phone? the phones can have an universal user and password?

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Scott Brescia on 15-07-2010 06:13:51 PM
    hello, you have been really helpful,   i have another question, i hope you can point me to the right direction, how can i get the user and password data of each phone? the phones can have an universal user and password?

     
    Ah yes, I ran into this as well.  Basically it MUST have a user associated to the device.  So in the "End User" section of callmanager, create an "admin" or some such account.  Then, assoicate ALL devices to this account.  That way you will have 1 account that has universal access to all devices.  If you add a new device, you will have to assoicate it to this account.

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Eduardo Diaz on 19-07-2010 02:52:38 PM


    thankyou, i didnt understood that the phones act like a web server. i will make my script.




     
    So long as the "Web Access" setting is enabled on the device, you can access information about the phones by navtigating to the IP of the phone in your web browser.  Using this is how I push the commands to the phones.

     
    Hello my friend, my script is ready and work, but i am having troubles with the "Web Access" settings issue, i have to set enable "Web Access" setting in each phones. May i set enable this setting to a group of phones?

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Scott Brescia on 19-07-2010 03:04:57 PM
    Hello my friend, my script is ready and work, but i am having troubles with the "Web Access" settings issue, i have to set enable "Web Access" setting in each phones. May i set enable this setting to a group of phones?



     
    Have you ever used BAT?  Depends on what version of UCM you are using, but BAT can get pretty much any settings change done for you in bulk.
     
    Here's the document for BAT in 7.1.2

    Subject: TFTP Syntax for <setBackground>
    Replied by: Eduardo Diaz on 20-08-2010 04:40:30 PM
    Hello, thanks for all! I am done! I made PHP application that move around al the phones taking the control and setting the background.

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Chris M. on 21-08-2010 03:55:28 AM
    Hello, thanks for all! I am done! I made PHP application that move around al the phones taking the control and setting the background.

    Can you please tell me how to set the background for a single Phone (remotely - automaticly)?
     
    I am using ccm6 and cisco 7985 phone.
     
    Thanks

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Scott Brescia on 23-08-2010 03:37:06 PM
    Can you please tell me how to set the background for a single Phone (remotely - automaticly)?

     
    I encourage you to read the thread.  We have created custom applications to do it.  I 'wrote' mine in AHK (mostly scripting) and the user you are quoting developed his in php so his is thru a web interface.  Very cool.
     
    But, Cisco does not provide a way to do this out of the box.  They only provide API's to connect to the phones web server.  Read the thread, there's links and help and we can help more if you need it...

    Subject: RE: TFTP Syntax for <setBackground>
    Replied by: Eduardo Diaz on 23-08-2010 07:14:55 PM
    Hello, thanks for all! I am done! I made PHP application that move around al the phones taking the control and setting the background.


    Can you please tell me how to set the background for a single Phone (remotely - automaticly)?
     
    I am using ccm6 and cisco 7985 phone.
     
    Thanks


     
    Read this thread of mails ( http://markmail.org/message/d7gjmewexcdsaa6q ), just push to the phone xml files where you indicate to the phone what commands execute. Just follow the steps to set a background normally: Settings>Select>navDwn>Select...>save>...
     
    Search in google about "CiscoIPPhoneExecute".