How to limit or reset the ciscoipphoneexecute with play URI.

Version 1
    This document was generated from CDN thread

    Created by: Stefania Oliviero on 18-06-2013 09:24:14 AM
    HI to all. 
    I have a system that notify events to IPPhones pushing CiscoIPPhoneExecute XML  object with Play URI.
    Given that notification are asyncronous, it can happen we send hundreds of notification to the phone.
    Is there a way to reset or to clear pushed XML URI Object, after sent to the phone ?

    Thanks.

    Subject: RE: How to limit or reset the ciscoipphoneexecute with play URI.
    Replied by: David Staudt on 19-06-2013 01:52:17 PM
    Sending a push with 'Init:Services' URI will cause the XML app window to close.  Also note that the 'Refresh:' header is supported, and that you can use 'Init:Services' as the URI. 

    However I think in that scenario, you need to push a URL request to the phone, causing the phone to request a page from your server, which response is a CiscoIPPhoneText (or whatever you want displayed) with a 'Refresh: 5;url=Init:Services' for a 5 second timer.

    Subject: RE: How to limit or reset the ciscoipphoneexecute with play URI.
    Replied by: Stefania Oliviero on 20-06-2013 03:20:18 AM
    I have nothing to display on the phone, only sound notifications with Play URI.
    I think 
    'Init:Services doesn't do what I need because it would be serialized as the other push. 
    What I need is a way to reset URI Play request I've sent on the phone  before a particular event has occured, so if I've sent for examples 100 notifications, and the phone in the meantime has executed the first 50s, when that particular event occures I have to command the phone to reset the remaining notifications.
    I have to send notifications until this event occures.

    As a workaround I send a restart command via AXL to the phone to stop sound notifications, but this solution is not the best (phone is out of order for some seconds).


    Subject: RE: How to limit or reset the ciscoipphoneexecute with play URI.
    Replied by: David Staudt on 20-06-2013 10:59:02 AM
    Trying to understand a bit more how the app works: does your app send multiple CiscoIPPhoneExecute/Play requests sequentially?  If so, it sounds like the phone is 'queueing' these up, and playing them one after another?  I'm not sure how many such requests the phone would queue up - I'm kind of surprised that it would queue any significant number...are you sure the phone is accepting/queueing 100 Execute requests?

    If that is the case, then I can't think of any way to clear queues requests out, other than resetting  the phone.  Probably the best recommendation would be to enhance the application so that it tracks and actively manages the notification requests, so that you aren't sending multiple, stacked/queued commands.  If the application implements audio streaming via the RTPRx request, then of course you have full real-time control of notification audio at the phone...

    Subject: RE: How to limit or reset the ciscoipphoneexecute with play URI.
    Replied by: Stefania Oliviero on 20-06-2013 12:05:48 PM
    You've correctly understood our app.
    Thanks for the answer. We'll try to limit notifications before sending to the phone.