« Back to Technical Questions

RE: CUCM Application user - CUCME analogy

Combination View Flat View Tree View
Threads [ Previous | Next ]
I have this situation:
I've configured several ephone-dn s on my CUCME and I want my application to controll/monitor only few of them,
not all of them. How can make that kind of setup on CUCME and then, how can I obtain controlled phones in my application?

I'll give a CUCM / JTAPI example - I need CUCME analogy for this example:

First we create an Application user on CUCM.
Then, on its page, we put devices we want to controll/monitor into 'Controlled devices' list.
Then, to obtain controlled devices, in application's code we can write this:

Address[] addresses = cucmProvider.getAddresses();

Now 'addresses' variable contains all devices our application is controlling.

I need CUCME analogy for this.
Could anyone help?
Thanks

Hi Nemanja,
 
You can make use of cmeProvider.getAddresses()
 
Thanks,
Anusha
 
 

Hi Nemanja,
 
You can make use of cmeProvider.getAddresses()
 
Thanks,
Anusha
 
 


 
Thanks Anusha, but I've already tried that:
cmeProvider.getAddresses() returns addresses that were created on that provider, i.e. it returns those addresses for which we had
 
cmeProvider.createAddress(...);
 
What I need is the opposite thing: I need a list of devices associated with my application so I can create address-terminal pair in it.

Use CMEPhone.addaddress method to create address-terminal pair and start monitoring phone.

  
            cmePhone = (CMEPhone) myProvider.createTerminal(mac,CMEAbstractTerminal.Type.PHONE,"ABC");
       
            cmeAddress = (CMEUserAddress) myProvider.createAddress(phone_number, CMEAbstractAddress.Type.USER);
       
            cmePhone.addAddress(cmeAddress, cstaListener);
 
Thanks !