Programmatically lock the IP phone

Unanswered Question
Aug 12th, 2008
User Badges:

Through Google I have searched that some SI companies can develop an application to lock the IP phone. The user needs to type the correct PIN before he/she can dial the number. Is there any API in JTAPI to do so? Or any API in AXL/SOAP?


Thanks


Tony

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
stephan.steiner Tue, 08/12/2008 - 23:12
User Badges:
  • Silver, 250 points or more

Hmm.. the way you describe it, you're looking for business account codes rather than a locking mechanism.


Locking entails that the device must be unlocked before calls can be made... business account codes leave the device accessible for anyone.


So if you really are looking for device locking, you can build it with AXL.. you need a service to lock / unlock which queries the user's pin (there's an authenticate function in axl to check the pin.. you need CCM5 or higher though), then you'd change the css of the device (e.g. to a css that only allows for internal calls upon locking, and back to the normal css upon unlocking).


As for account codes.. I think that's in CCM but I'd check the admin guide or the feature and service guide as I've never had the need to use something like that. If it's not there, it certainly can be built as well but it would be cumbersome as you'd either need some kind of IVR along with CTI functionality, or you take away people's ability to dial directly and have them dial from a service.

mvtonytjo Wed, 08/13/2008 - 02:31
User Badges:

Thanks for your reply!!


I am looking for device locking.


I know there is an authenticate function in AXL to check the PIN.


However, how could I restrict the user such that he/she must type the correct PIN before he/she can dial any number or use other services such as Directory, Message or Service button?


Tony

mvtonytjo Sun, 08/31/2008 - 23:51
User Badges:

Hi Cumhur,


Actually I am looking for any way to implement the feature like Andtek!!


I am wondering if there is any API provided by Cisco?


Tony

agiaccone Mon, 09/01/2008 - 03:17
User Badges:
  • Bronze, 100 points or more

Maybe you could use the AXL API to create the lockout function together with an IP Phone Service :


Create an IP Phone Service that asks for a PIN.

Via AXL you could query the CUCM about the device from which the IPPS has been invoked to which end user is associated with.

Then check the PIN against that end user.

If the PIN is correct, via AXL change the CSS of the line in order to "unlock" it.

Create another IPPS (or use the same, checking for the device's CSS) to lock the phone which simply do the same steps but put the device's line in the "locked" CSS.


Maybe not simple, but not impossible.


HTH,

Alberto




stephan.steiner Mon, 09/01/2008 - 23:33
User Badges:
  • Silver, 250 points or more

The andtek application also updates the phone itself, removing all services but itself by the sound of its description. Plus they clear the call log on the phone (no idea if they can restore it though.. I say no since there's no way to access that information externally and there's no way to redirect those 3 menu items to your own application).

Clearing the call history is as simple as sending the following url in a CiscoIpPhoneExecute: Init:CallHistory.


Using extension mobility also solves those three things and facilitates deployment as well. For deployment, provisioning and locking phones I'd suggest EM instead of working (modifying) on the phones directly.

mvtonytjo Wed, 09/03/2008 - 22:37
User Badges:

In the Andtek application, there is a "lock" logo, does anybody know how to do it?


And Stephan, as you have mentioned extension mobility, do you think is there any difference between this Andtek application and extension mobility?


Thanks

Tony

stephan.steiner Wed, 09/03/2008 - 23:34
User Badges:
  • Silver, 250 points or more

Well, extension mobility is an easy way to lock the phone since it takes any personal information away from the phone.. and if you configure it appropriately you can make the phone to only call the front desk and prevent the phone from being called from any other phone in logged out state. The only drawback i that users need to know not only their pin but also userid when logging back in.


And as far as the logo goes.. it's a PNG they're displaying using a CiscoIPPhoneStatusFile XML element. Look here for more details: http://www.cisco.com/en/US/docs/voice_ip_comm/cuipph/all_models/xsi/7_0/english/programming/guide/xsi70obj.html#wp1061000


They just push the CiscoIPPhoneStatusFile pointing to the lock image to the phone when you lock it, and clear the screen (or show another image.. I don't really know the product) again when you unlock the phone.

msabir Thu, 09/04/2008 - 06:47
User Badges:
  • Bronze, 100 points or more

One can probably write an application that uses CiscoIPPhoneStatusFile along with JTAPI events to lock the phone. We can take a shot at it if there is enough interest in the market.

stephan.steiner Tue, 09/23/2008 - 23:23
User Badges:
  • Silver, 250 points or more

You want to log out idle people? I think you'd face a considerable user backlash over something like that.

But I guess it would be possible having a page that is called after the idle timeout and when called triggers some action like an em logout on the phone.

agiaccone Wed, 09/24/2008 - 07:44
User Badges:
  • Bronze, 100 points or more

It is possible to configure this scenario, having the device have the same dn of the device profile but in a different partition.

Calling Search Spaces should seek first for the "Logged in" partition and then the "Logged out" partition.


However to force users to login for each phone call and then log out could be too complicated IMHO.

Maybe using a good billing software could be a good solution to take phones' usage under control.


HTH,

Alberto

stephan.steiner Wed, 09/24/2008 - 09:27
User Badges:
  • Silver, 250 points or more

EM is a bit cumbersome. I'm not that proficient in CCM administration but a quick glance at the chapter on client matter codes and forced authorization codes makes me think that if you combine the two (have a client authorization code per user... acting sorta like the pin) and fac to make sure that chargeable calls can only be made if an appropriate cmc has been entered you could effectively get to a point where you can only dial out by entering a user specific code.


The alternative, to continue with the suggestion the poster before me made, could be to have an application to lock on demand.. where locking basically means changing the line's partition (entails a soft reset.. and I'm not sure how CCM6 handles with respect to that if you are using extension mobility)..

I personally wouldn't go for an auto locking system but instead have people lock/unlock automatically and perhaps push a CiscoIPPhoneStatus showing a lock icon when the phone is "locked".

Actions

This Discussion