<setBackground> ... again... :(

Version 1
    This document was generated from CDN thread

    Created by: Laurent TRELET on 30-03-2011 12:24:36 PM
    Hello,
     
    I need to deploy backgrounds on IP Phones in my CUCM cluster 7.1.5 (phone personalization enabled on phones).
     
    I developped an application to send XML requests to phones like i saw in previous posts. I send on http://" + ipaddrPhone + "/CGI/Execute the following XML code :
     
    <setBackground>
    <background>
    <image>http:/@/IP/webressources/Img9.png</image>
    <icon>http://@IP/webressources/TN_Img9.png</icon>
    </background>
    </setBackground>
     
    But phones return me an error (400) Bad Request. HTTP Status. It is like the phone cannot understand this XML command.
     
    I think my code is Ok because when i send the following XML request, it is working fine for example... :
     
    <CiscoIPPhoneText>
    <Title>titre</Title>
    <Prompt>prompt</Prompt>
    <Text>texte</Text>
    <SoftKeyItem><Name>Exit</Name><URL>SoftKey:Exit</URL><Position>4</Position></SoftKeyItem>
    </CiscoIPPhoneText>
     
    Do you know if this command <setBackground> is still accepted by phones. I know it is not supported by Cisco but i think it will be very useful for me to deploy backgrounds on a lot of phones.
     
    Maybe some of lower-case characters must be in capital... I tried a lot of solutions but the result is always the same...
     
    Thank you in advance for your help.
     
    Best regards.

    Subject: RE: <setBackground> ... again...
    Replied by: Laurent TRELET on 01-04-2011 06:00:29 AM
    Hello,

    I tried to spy what it is sent to the phone when i use "PhoneDesigner".

    And it is exactly the same syntax... I really don't understand why the request is accepted with "PhoneDesigner" and not with my code... And all other PushXML commands are OK...

    Any idea ?

    Thanks

    Regards.

    Subject: Re: New Message from Laurent TRELET in IP Phone Services (IPPS) - IPPhone S
    Replied by: Gerald Chong on 01-04-2011 06:29:24 AM
    How about the http header?

    Sent via BlackBerry® from Telstra

    ________________________________
    From: Cisco Developer Community Forums <cdicuser@developer.cisco.com>
    Date: Fri, 1 Apr 2011 18:00:30 +0800
    To: cdicuser@developer.cisco.com<cdicuser@developer.cisco.com>
    ReplyTo: "cdicuser@developer.cisco.com" <cdicuser@developer.cisco.com>
    Subject: New Message from Laurent TRELET in IP Phone Services (IPPS) - IP Phone Services Questions: RE: <setBackground> ... again...

    Laurent TRELET has created a new message in the forum "IP Phone Services Questions":

    --------------------------------------------------------------
    Hello,

    I tried to spy what it is sent to the phone when i use "PhoneDesigner".

    And it is exactly the same syntax... I really don't understand why the request is accepted with "PhoneDesigner" and not with my code... And all other PushXML commands are OK...

    Any idea ?

    Thanks

    Regards.
    --
    To respond to this post, please click the following link:

    <http://developer.cisco.com/web/ipps/forums/-/message_boards/view_message/3413093>

    or simply reply to this email.

    Subject: RE: <setBackground> ... again...
    Replied by: Laurent TRELET on 01-04-2011 08:05:06 AM
    Hello !

    I have

    ContentType = "text/xml".

    I also tried

    ContentType = "application/x-www-form-urlencoded"

    But with the same result.

    I perform the same authentication like the others pushXML requests.
    The encoding type is UTF-8.

    I also wrote req.Accept = "*/*";

    Do you think, the headers must be different in a PushXML request to do a <CiscoIPPhoneText> or <CiscoIPPhoneStatusFile> than in a PushXML request to perform a <setBackground> ?

    Thanks for your response.

    Subject: RE: <setBackground> ... again...
    Replied by: Laurent TRELET on 01-04-2011 09:03:02 AM
    Ok, I found my error.

    It wasn't really in the request format... My webserver (on which there were my images ressources) had a problem. So, for the phone, the URL was invalid.

    Sorry for the flood ! ^^

    But maybe it could anybody else...

    Best regards.

    Subject: RE: <setBackground> ... again...
    Replied by: Florian Kroessbacher on 11-04-2011 05:49:30 PM
    This is intersting,
     
    would it be possible to share the code?
     
    cheers!