How do I send caller info to phone and remove when call ends

Version 1
    This document was generated from CDN thread

    Created by: Praful Kapadia on 08-04-2009 09:28:06 PM
    The IP Phones Services SDK has an example (CallerInfo) of sending caller information to a phone. The JSP example sends an EXECUTE command to the phone which calls a directory service that returns details about the caller. I have implemented this by sending a CiscoIPPhoneText XML object to the phone with the caller's details.
     
    However, once the call ends the XML text remains displayed on the phone. I'd like the text to disappear when the phone call ends.
     
    I tried adding an appId to the XML object and then sending an App:Close from the call observer when it gets a notification about the call ending but this isn't working.
     
    What is the way to have text displayed on a phone during a call and have it removed once the call ends?
     
    Thanks
     
    Praful

    Subject: RE: How do I send caller info to phone and remove when call ends
    Replied by: David Staudt on 08-04-2009 10:54:24 PM
    The cleanest way would be to send an Execute object to the phone with 'Init:Services' as the URI when the call ends.
     
     

    Subject: RE: How do I send caller info to phone and remove when call ends
    Replied by: Praful Kapadia on 14-04-2009 05:26:56 PM
    Thanks David. The "Init:Services" works. It's a bit of a blunt
    instrument since it also removes any other apps on the screen eg the user
    may have been looking at the corporate directory. However, I can live
    with that.
     
    Thanks again
     
    Praful

    Subject: RE: How do I send caller info to phone and remove when call ends
    Replied by: Shameer AbdulRasheed on 21-04-2009 02:56:37 PM
    If you want the standard 'Exit' functionality to retain the previous screen, simulate the 'Exit' button press by sending 'Key:Soft3' (since by default IP Phone Text places the Exit softkey at 3'rd position), instead of 'Init:Services'.
     
    Thanks,
    Shameer.

    Subject: RE: How do I send caller info to phone and remove when call ends
    Replied by: Praful Kapadia on 21-04-2009 08:34:31 PM
    Thanks Shameer. I may end up using that. I'm quite close to what I want with the CiscoIPPhoneStatus tag but am having problems described in another thread.
     
    Praful