Sending info from the phone to the webservice

Version 1
    This document was generated from CDN thread

    Created by: Steve Schultz on 05-08-2009 08:33:56 PM
    I would like to be able to press a softkey on the phone and have the phone request an URL, but I don't want my webservice to push any XML to the phone in this particular case. To further complicate things, when the softkey is released, I'd like the phone to request a different URL and again I don't want the webservice to push any XML to the phone.
     
    In essence, I'd like my webservice to detect when I press or release certain buttons, but I'd like the option of not sending XML to the phone.
     
    How can I do that?
    Thanks, Steve

    Subject: RE: Sending info from the phone to the webservice
    Replied by: Maroun Baydoun on 06-08-2009 09:03:16 AM
    When you add a softkey to an object you can specify the URL and the URLDown for that softkey. As for not sending any xml back to the phone, that can only be done if you immedialty exit the service after pressing and releasing the softkey, otherwise the phone will expect an xml response.

    Subject: RE: Sending info from the phone to the webservice
    Replied by: Steve Schultz on 06-08-2009 06:38:20 PM
    I am trying to use the URL and the URLDown properties for the softkey.
    Below is my XML. The problem is that when the URLDown is executed, the phone makes a request to the webservice which pushes a page to the phone to display. Then when I release the button, the URL property is not executed because the webservice has pushed a page to the phone between pushing down and releasing the button.
     
    In short, I need to inform the webservice when I press a button down, and also inform the webservice when I release the button. Any suggestions would be appreciated.
     
    Hope I managed to explain my problem.
     
    <CiscoIPPhoneMenu>
      <Title>
        Radio1
      </Title>
      <Prompt>
      </Prompt>
      <SoftKeyItem>
        <Name>
          PTT
        </Name>
        <URL>
          http://172.16.3.174/RadioWebServices/PhoneService.asmx/ReleaseRadioPTT?radio_name=Radio1
        </URL>
        <URLDown>
          http://172.16.3.174/RadioWebServices/PhoneService.asmx/ActivateRadioPTT?radio_name=Radio1
        </URLDown>
        <Position>
          1
        </Position>
      </SoftKeyItem>
    </CiscoIPPhoneMenu>

    Subject: RE: Sending info from the phone to the webservice
    Replied by: David Staudt on 06-08-2009 07:35:41 PM
    I think the URLDown mechanism was put in place pretty much solely to support the RTP media URIs.  You could trigger on these, though it's prety hacky:
     
    - URLDown as RTPTx to an IP/Port on which your app is listening for RTP.  When your app starts receiving packs, you know the key is down.
    - URL as RTPStop.  When the app stops receiving packets, you know the key is back up.
     
     

    Subject: RE: Sending info from the phone to the webservice
    Replied by: Steve Schultz on 07-08-2009 02:51:24 PM
    That's a good idea, but wouldn't that send a lot of packets to the web service?
    The system might have a dozen or more phones connected to the web service and the amount of traffic might become a concern.
    Is there anyway to do this without a lot of RTP traffic?