Blogs

Showing 1 - 5 of 30 results.
Items per Page 5
of 6

Forums

« Back to Cisco JTAPI Questions

Provider.getAddresses() returns a static list which does not change

Combination View Flat View Tree View
Threads [ Previous | Next ]
Provider.getAddresses() returns a static list which does not change
jtapi provider ciscoprovider getaddresses javadoc ciscoaddress
Answer
8/2/12 10:28 AM
Hi,

I found the following statement in JTAPI javadoc:

public Address[] getAddresses() throws ResourceUnavailableException
Returns an array of Addresses associated with the Provider and within the Provider's domain. This list is static (i.e. is does not change) after the Provider is first created. If no Address objects are associated with this Provider, then this method returns null.

Do I interpret it correctly that if you create a new DN in CUCM after that your application called CiscoJtapiPeer.getProvider() , then Provider.getAddresses() will NOT contain the newly added DN?
Will the getAddresses() method always return the same constant Address[] array during the whole lifetime of the Provider object?

Best regards,
Tibor
 

I am suspecting this might be an old documentation which hasnt been updated since a while.
If you create a new address and given that address(DN/line) is in user control list, then JTAPI sends out CiscoAddrCreatedEv or CiscoAddrAddedToTerminalEv  depending on the use case and I would also expect Provider.getAddresses() to return updated Array including newly added Address after this event is delivered.
 
I quick test to confirm it would be to add a new device with a new DN to user's control list after the provider is created and try it out to confirm.

Collateral


No files available