SoftKey:Exit on IP Phone Input

Version 1
    This document was generated from CDN thread

    Created by: Tom Barrand on 15-07-2009 05:20:13 PM
    I am using an IP Phone Input to capture some data and I need some soft keys on the screen.
    I have added a softkey that has a URL of "SoftKey:Exit" but it doesn't work as expected. It just seems to submit back to the page.
    Any ideas?
    Also, I have tried "Init:Services" this works on a 7971 but doesn't seem to work on an older 7940. Is this as expected?

    Subject: RE: SoftKey:Exit on IP Phone Input
    Replied by: David Staudt on 15-07-2009 08:28:11 PM
    The Softkey:Exit button works (slightly) like a browser's back-button.  As the phone requests pages, it stores the URLs on an internal stack (which holds up to ten URLs).  When the SoftKey:Exit command is executed, the phone requests the previous URL on the stack - and the next previous, etc.
    In your case I believe the URL on the stack probably has URL requests parameters, etc. which results in the server returning the populated XML object again.  In order to avoid this, make sure such XML responses provide an Expires HTTP header which expires immediately (note that 0 or -1 are not valid values for Expires:...need to provide a valid formatted date value.)  This will prevent the URL from being placed on the 'history' stack.
    Init:Services should work to close the Services plane entirely, on all models.  You may want to check with the latest available phone firmware.

    Subject: RE: SoftKey:Exit on IP Phone Input
    Replied by: Tom Barrand on 16-07-2009 09:09:03 PM
    Thanks David. My issue was due to not having the Expires header set.