cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Announcement“Cisco Design Thinking Workshop”. Cisco Small Business is excited to invite its Silicon Valley customers to an exclusive interactive one-day session between customers and product Managers.  If you are interested in this exclusive workshop, please fill out the Registration Form. For more information, please check out our FAQ


Get the latest new and information the November issue of the Cisco Small Business Monthly Newsletter

1008
Views
0
Helpful
7
Replies
Beginner

appId support in XML-applications?

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!

Everyone's tags (6)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: appId support in XML-applications?

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


View solution in original post

7 REPLIES 7
Cisco Employee

Re: appId support in XML-applications?

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


View solution in original post

Beginner

Re: appId support in XML-applications?

Thanks Alberto, that works!

Beginner

Re: appId support in XML-applications?

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

Beginner

Re: appId support in XML-applications?

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?

Cisco Employee

Re: appId support in XML-applications?

Hi Gustav;

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

Regards
Alberto

Highlighted
Beginner

Re: appId support in XML-applications?

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.

Beginner

Re: appId support in XML-applications?

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!