Re: Difference between Address.addCallObserver and Terminal.addCallObserver
Javier Estrada <[email protected]> Thu, 9 Feb 2006 08:45:23 -0800
| Newsgroups | gmane.comp.java.sun.jtapi |
|---|---|
| Message-ID | <[email protected]> |
Stephan, Observers (or listeners) in JTAPI can be interested in events from a _different perspective_: - A call, regardless of where the call occurs. (Call.addCallObserver) - Calls on a given address. - Calls on a given terminal (e.g, a telephone set) (Terminal.addCallObserver) Regardless of where you register for the events, JTAPI guarantees that you will receive only one event. An implementation does something like this (pseudo): U = Union; Given a Call c, a Terminal t and an Address a: // Union of all observers Observers = c.observers U t.observers U a.observers // Eliminate duplicates. Observers.EliminateDuplicates() -----Original Message----- From: Discussion list for Java Telephony API [mailto:[email protected]] On Behalf Of Stephan Steiner Sent: Thursday, February 09, 2006 8:18 AM To: [email protected] Subject: [JTAPI] Difference between Address.addCallObserver and Terminal.addCallObserver Hi I don't quite get the difference and the JTAPI documentation is rather vague on this subject. I suppose if we have one terminal with exactly one address, I can make a call to either one and the result is the same. However, what if the Terminal has multiple Addresses? Would going over each Address of the Terminal and registering a CallObserver result in the same as one call to Terminal.addCallObserver? And since I'm using the Cisco JTAPI provider it gets even better: We can actually have an existing Terminal to which an Address is added, or removed while a JTAPI application is running. Does anybody know if in case I have added a CallObserver to my Terminal, and now an Address is added to it or removed from it.. if I will get the CallEvs for the new Address or if I will have to register a CallObserver on each new Address (and consequently also remove the CallObserver from each Address that is taken away from the device). This actually isn't a rare case when Extension Mobility is used.. Terminals can get new Addresses added or removed all the time during an Extension Mobility login / logout. I'd appreciate any input you can give on this subject. Regards Stephan ======================================================================== === To unsubscribe, send email to [email protected] and include in the body of the message "signoff JTAPI-INTEREST". For general help, send email to [email protected] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff JTAPI-INTEREST". For general help, send email to [email protected] and include in the body of the message "help".