Log In
Developer Network
Technologies
Join the Network
Member Services
Events & Community
JTAPI (JTAPI) Developer Center
Overview
Documentation
Community
Wiki
Testing
Everything
This Site
Blogs
9.1 JTAPI Documentation Now Available
Prem Bejjam
09 Jan 2013
Unified Communications 9.0 Partner Bundle Offer Now Available to Order
Amanda Whaley
21 Sep 2012
Developer Partner 2012 US Update Presentations Available
George Gary
29 Jun 2012
Developer Partner 2012 London Update Presentations Available
George Gary
10 Feb 2012
Unified Communication 8.6 NFR Bundle Now Orderable
George Gary
22 Aug 2011
Showing 1 - 5 of 30 results.
Items per Page 5
Page
(Changing the value of this field will reload the page.)
1
2
3
4
5
6
of 6
First
Previous
Next
Last
Forums
Message Boards Home
Recent Posts
Statistics
Answer
(
Unmark
)
Mark as an Answer
« Back to Cisco JTAPI Questions
Provider.getAddresses() returns a static list which does not change
Threads [
Previous
|
Next
]
Tibor Bekesi
Posts:
1
Join Date:
8/2/12
Recent Posts
Provider.getAddresses() returns a static list which does not change
jtapi
provider
ciscoprovider
getaddresses
javadoc
ciscoaddress
Answer
8/2/12 10:28 AM
Mark as an Answer
Submit
Reply with Quote
Quick Reply
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
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Abhishek Malhotra
Posts:
119
Join Date:
10/28/10
Recent Posts
RE: Provider.getAddresses() returns a static list which does not change
Answer
8/16/12 11:26 AM as a reply to Tibor Bekesi.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
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.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Collateral
No files available