Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Cisco XML Obj/command for doing nothing?

Hello there! I was wondering if I can write a cisco XML obj to instruct the phone do nothing? I'm pushing a XML page to the phone, if certain condition holds, the phone will display an image, otherwise it should do/show nothing. How can I do that? which obj shall I use? Thank you very much for your help!

2 ACCEPTED SOLUTIONS

Accepted Solutions
New Member

Re: Cisco XML Obj/command for doing nothing?

As long as you aren't using CiscoIPPhoneStatus, you could push as URL1 Init:AppStatus (I assume--I've never tested this but I'd guess this would work)

New Member

Re: Cisco XML Obj/command for doing nothing?

I have two approaches:

One is well-known: send the Key:Services command.

The only problem with that is if the user of the phone were to hit Key:Services after your image was sent (therefore clearing the screen), but before you send the Key:Services command (which will now instead show the services menu to the now-confused user)

If possible, I'd recommend sending SoftKey:Exit instead--which will clear the screen only if an xml object is showing which has an exit softkey present. The downside to this is similiar to the above scenario--if the user were to get one of the native menus open, such as directories or services, they will be cleared as well when you send this command (because they also have an Exit softkey!).

So either option has a small window of time where the user may get a little frustrated, but in general that should be a good solution.

Once you've seen the pros and cons of the above two solutions in practice, and if you decide the cons are too great, you could query the phone first, using http:/IP_PHONE_ADDRESS/CGI/ModelInfo, and only send the SoftKey:Exit or Key:Services if your screen is showing at the time of the query (which you could determine based on the title of the XML object you are sending, which will show up in the /ModelInfo query). There is still a window in which the user could push a key on the phone, but it is greatly diminished if you take this route.

19 REPLIES
New Member

Re: Cisco XML Obj/command for doing nothing?

As long as you aren't using CiscoIPPhoneStatus, you could push as URL1 Init:AppStatus (I assume--I've never tested this but I'd guess this would work)

New Member

Re: Cisco XML Obj/command for doing nothing?

Yes! It works! Thanks a lot!

Now I wonder if one I send a page to "cancel" a page currently shown on the phone? i.e., if I have a page displayed an image on the phone, now I want to send another page over to the phone to "remove" that image and have the phone go back to the default screen(as if the user pressed the "cancel" button). Any ideas? Thank you very much for your help!

New Member

Re: Cisco XML Obj/command for doing nothing?

I have two approaches:

One is well-known: send the Key:Services command.

The only problem with that is if the user of the phone were to hit Key:Services after your image was sent (therefore clearing the screen), but before you send the Key:Services command (which will now instead show the services menu to the now-confused user)

If possible, I'd recommend sending SoftKey:Exit instead--which will clear the screen only if an xml object is showing which has an exit softkey present. The downside to this is similiar to the above scenario--if the user were to get one of the native menus open, such as directories or services, they will be cleared as well when you send this command (because they also have an Exit softkey!).

So either option has a small window of time where the user may get a little frustrated, but in general that should be a good solution.

Once you've seen the pros and cons of the above two solutions in practice, and if you decide the cons are too great, you could query the phone first, using http:/IP_PHONE_ADDRESS/CGI/ModelInfo, and only send the SoftKey:Exit or Key:Services if your screen is showing at the time of the query (which you could determine based on the title of the XML object you are sending, which will show up in the /ModelInfo query). There is still a window in which the user could push a key on the phone, but it is greatly diminished if you take this route.

New Member

Re: Cisco XML Obj/command for doing nothing?

Thanks!!! I tried "SoftKey:Exit" and it returns "URI not found"? "Key:Services" works fine but I really would prefer "SoftKey:Exit" if it works

New Member

Re: Cisco XML Obj/command for doing nothing?

Do you have an Exit Softkey showing? It has to be showing. I thought that it wouldn't complain if it wasn't showing--so if you do use SoftKey:Exit, I think it's probably wise to do the /ModelInfo request to maek sure it's actually showing.

New Member

Re: Cisco XML Obj/command for doing nothing?

Thanks!!! I tried "SoftKey:Exit" and it returns "URI not found"? "Key:Services" works fine but I really would prefer "SoftKey:Exit" if it works

New Member

Re: Cisco XML Obj/command for doing nothing?

I think your browser didn't submit correctly.

New Member

Re: Cisco XML Obj/command for doing nothing?

You mean the browser on the phone, or the browser I used to the test the Execute obj? I also send it through my code and it's the same, Key:Services works but SoftKey:Exit does not. Anyhow I guess I have to check the Model. Thank you so very much for your help!!!

New Member

Re: Cisco XML Obj/command for doing nothing?

No, I mean your last post! :) ... There are two identical posts from you (even the same, wrong timestamp). I figured you may have actually said something important in your second post.

If you are still pursuing the SoftKey:Exit course--do you have an Exit Softkey showing when you send the SoftKey:Exit command? If not, I suppose then that the phone will complain (I've never used the SoftKey:Exit approach before--I assumed the phone would quietly reject the command if there was no softkey, but your experiments show that it makes a complaint). I'm curious... do you have the Ekit key showing?

New Member

Re: Cisco XML Obj/command for doing nothing?

I see... somehow the cisco site did not reponse, so I ended up submit twice...

Yes, I do have a Exit softkey shown the moment I pushed "SoftKey:Exit" over, here is my code:

And here is what I got:

**************************************

Besides, as for ModelInfo, When visit http://PhoneIP/CGI/ModelInfo with proper credential, I got a ?

Think abou it I realize I really need either "SoftKey:Exit", or "Key:Services"+ModelInfo, but only "Key:Services" works at the moment....guess there's some setting I can fiddle with? Thanks again for all the helpful hints/suggestions!

New Member

Re: Cisco XML Obj/command for doing nothing?

1 thing: The Exit softkey you have pushed to the phone has to be a true Exit softkey (i.e., URL of softkey when created is SoftKey:Exit)--not just a softkey you named Exit.

But I think the 6 is the real problem. 6 is an undocumented error code, but I have seen it before in odd situation (which I can't remember exactly).

Whatever the case, you are in unchartered territory as far as I know. What model IP phone is this? What CCM version is this? What's the IP phone firmware #?

One thing that comes to mind is VMWare CCM--it's not supported I believe, and may cause this sort of issue.

You should be able to go to CGI/ModelInfo in a browser and see an XML dump with proper credentials, as you've done (not in an Execute command). Are you able to go to the IP of the phone and see the diagnostic IP phone webpage?

New Member

Re: Cisco XML Obj/command for doing nothing?

Currently I'm kind of experimenting on a testing cluster(which I do not own), won't be too surprised if something wasn't set up 100% it should be. I'll check details tomorrow. IP phone web page has no problme, actually I can visit /CGI/CallInfo fine as well. BTW, how do I find out the firmware#, from the phone settings button? Again thanks a lot for the reply!

New Member

Re: Cisco XML Obj/command for doing nothing?

http://phone_Ip/DeviceInformationX

What's the 'modelNumber' and versionID?

New Member

Re: Cisco XML Obj/command for doing nothing?

It returns error code 0, but this is what I get from http://PhoneIP/GCI/Java/Serviceability?adapter=device.statistics.device:

Version: SCCP70.8-0-2SR1S

Model Number: CP-7079G

CCM V4.1

New Member

Re: Cisco XML Obj/command for doing nothing?

7079? Um... I don't know what that translates to

Settings > Model INformation should have the Model Number

New Member

Re: Cisco XML Obj/command for doing nothing?

Opppps, it's CP-7970G, thanks!

New Member

Re: Cisco XML Obj/command for doing nothing?

Did you find the solution to this problem? I am still facing this issue in 79x1 and 7970 phone models.

Re: Cisco XML Obj/command for doing nothing?

Init:Services closes any open service (if there's any.. otherwise it does nothing).

Or you could use the App uri..

App:close:0::applicationid

Would close the application with application id "applicationid". Mind the notes in the ip phone services development guide (get the one for ccm7.. it talks about the features introduced in the 8.2(3)+ loads).. if you're sending this in a CiscoIPPhoneExecute the applicationid is mandatory and you cannot use priority 0

Both URIs require up-to-date firmware loads.. you cannot do the latter unless you have modern phones (the 06/11/41/61/70 and above generation will do.. the 05/12/40/60 won't do but they might do the Init URI which might have been around as an undocumented feature for a while).

New Member

Re: Cisco XML Obj/command for doing nothing?

I ran into the same issue trying to send an 'Key:Exit' in certain situations. I got around it by sending 'Key:Soft3' (or wherever the key shows up on the screen).

369
Views
0
Helpful
19
Replies
CreatePlease to create content