×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

appId support in XML-applications?

Answered Question
Oct 29th, 2010
User Badges:

Is the Application Event Handles part of the Cisco XML App Developer Guide applicable to the SPA500-series? I'm specifically looking into closing an

app by pressing a specific softkey (<SoftKeyItem><Name>Exit</Name><URL>App:Close:1:2:app/id</URL><Position>4</Position></SoftKeyItem>, this within a CiscoIPPhoneMenu object. But when pressing the button it gets black and phone locks up. I want the phone to exit to the "normal" screen when pressing this button and closing the application, if app events are not supported, is there any other way to accomplish this?

 

Thanks in advance!

Correct Answer by Alberto Montilla about 6 years 9 months ago

Dear Sir;


Please try this one:



   <SoftKeyItem>
  <Name>ExitName>
  <URL>Key:ServicesURL>
<Position>1Position>
SoftKeyItem>

This should bring you to the services menu. Let me know if it works.

Regards
Alberto


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Alberto Montilla Wed, 11/03/2010 - 06:37
User Badges:
  • Cisco Employee,

Dear Sir;


Please try this one:



   <SoftKeyItem>
  <Name>ExitName>
  <URL>Key:ServicesURL>
<Position>1Position>
SoftKeyItem>

This should bring you to the services menu. Let me know if it works.

Regards
Alberto


gustavolsson Wed, 11/10/2010 - 06:33
User Badges:

Forgot to ask... Your answer implies that appId's are not supported, will this be implemented in the future?

gustavolsson Wed, 11/24/2010 - 11:25
User Badges:

I've tried this on the SPA525G/G2 but it doesn't work (works on 50x thou) phone doesn't hang but nothing happens. Any advice as to what URL to try on the 525G/G2?

Alberto Montilla Thu, 11/25/2010 - 08:14
User Badges:
  • Cisco Employee,

Hi Gustav;


It should work, can you please let me know the FW version used on G2 and the exact syntax used?


Regards
Alberto

gustavolsson Mon, 12/06/2010 - 08:33
User Badges:

Hi Alberto and sorry for my late reply. I use a SPA525G2 with firmware 7.4.6.


I have been trying around with this and bumped into another issue while testing. When i test this in my development environment I use tcp port 8089 as the server port for the xml applications on my computer. Hence, the URL I provide to the phone contains a port (ie. http://192.168.1.96:8089/xml/profile/set?pid=XXX) this does not seem to work. The exact same XML works fine when I don't specify a port in the URL. So something there is definitely fishy.


Another thing I've noticed, in CDP, you label the WAN port "eth0" in the SPA525 while it's called "Port 1" in the other SPA-series phones. Not exactly a big issue but stringency is usually nice :-)


With regards to the button, for some reason I use "Key:Service", (ie. _not_ Key:Services, note the lacking "s") in the XML application, and that works fine on the SPA50x-phones. I can't remember why, and I (because of the issue above) can't try this on a 525 in my test-setup. Hopefully I will have the time to try this out tomorrow in a more ordered fashion. I will try both "Key:Service" and "Key:Services" on both SPA504G and SPA525G2 and get back to you with the results.

gustavolsson Tue, 12/07/2010 - 05:43
User Badges:

Ok, so I've tried around with this and this is what I've found out:


URL with :port in -tag in XML app:

Supplying the a URL with a port (ie. http://192.168.1.96:8089/) in a XML app provided to a 525G, does not work. Supplying a URL with a port in the PSK_X parameter does work. The first page gets loaded but subsequent pages does not load, display says something like "data format error".


Regarding Key:Service/Key:Services:

504G, using Key:Service works in the sense that the application exits with the log below:


Dec  7 14:27:50 dhcp-136.office.telavox.se CMXAPP:HandleUrl:Key:Service (null) 0 Key

Dec  7 14:27:50 dhcp-136.office.telavox.se CMXAPP: URL expended to Key:Service

Dec  7 14:27:50 dhcp-136.office.telavox.se CMX:KEY:39 ()

Dec  7 14:27:50 dhcp-136.office.telavox.se CMX:KEY:map to CC_KEY as -1797877920

Dec  7 14:27:50 dhcp-136.office.telavox.se =====>appexit 94e94090


504G, using Key:Services does not work, it looks like it's mapped to a "real" key, but the application does not exit, it just shows "Requesting..." in the display with the following log:

Dec  7 14:22:19 dhcp-136.office.telavox.se CMXAPP:HandleUrl:Key:Services (null) 0 Key

Dec  7 14:22:19 dhcp-136.office.telavox.se CMXAPP: URL expended to Key:Services

Dec  7 14:22:19 dhcp-136.office.telavox.se CMX:KEY:28 (Services)

Dec  7 14:22:19 dhcp-136.office.telavox.se =====>appexit 94e93370


525G2, using Key:Services works as expected, the application exits

525G2, using Key:Service does not work, the button gets "visibly" pushed but application does not exit.


So I guess Key:Services is the right URL to use (both you and the documentation says so) but in the case with the 504G, it seems like it doesn't have the effect intended. But supplying an invalid URL to the 504G (ie. Key:Service) exits the application for the "wrong" reason maybe?


Thanks in advance!

Actions

This Discussion

Related Content