Re: Call Conferencing question

"Murat Balkan (Koç.net)" <[email protected]> Thu, 21 Jul 2005 09:06:39 +0300
Newsgroups gmane.comp.java.sun.jtapi
Message-ID <[email protected]>
ConsultCall works fine thank you for your help.
Is there a way to see that the alerting side is forwarded to voice mail, that is another address(dn)
I checked addresschanged event but nothing drops. Is there a way to get that?



-----Original Message-----
From: Discussion list for Java Telephony API [mailto:[email protected]] On Behalf Of Jörg Wiesmann
Sent: Thursday, July 21, 2005 8:48 AM
To: [email protected]
Subject: Re: [JTAPI] Call Conferencing question

You may try this

if (observedAddress.getConnections() != null &&
observedAddress.getConnections()[0].getState() == Connection.CONNECTED) {
            Connection connection = observedAddress.getConnections()[0];
            CiscoCall callMaster = (CiscoCall)
observedAddress.getConnections()[0].getCall();
            CiscoCall callCreateNew;
            try {
                callCreateNew = (CiscoCall) provider.createCall();
                try {
                    callCreateNew.conference(callMaster);
                } catch (Exception e) {
                    System.out.println(observedAddress.getTerminals()
[0].getTerminalConnections()[0]);
                    TerminalConnection terminalNewCreated =
observedAddress.getTerminals()[0].getTerminalConnections()[0];
                    if (callMaster.getConferenceController() == null) {

                        callMaster.setConferenceController
(terminalNewCreated);
                        callCreateNew.setConferenceEnable(true);
                    }
                    callCreateNew.consult(terminalNewCreated,
numberAddingToConference);
                    callMaster.conference(callCreateNew);
                }
            } catch (Exception e) {
                Logger.getLogger(this.getClass()).warn("Conference could
not be created " + e);
            }
        } else {
            Logger.getLogger(this.getClass()).info("Connection must be
established to create a conference");
        }



where observedAddress is your Address, which is actually talking to someone.
That code allows you to add somebody to a conference when there is an
active call available.

greetz Jörg Wiesmann

===========================================================================
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". 
_____________________________________________________________________________________________________________________________________________ 
Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa,  icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz  ve  tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz.  Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez.  
This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential  information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however,  sender  cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence. 
_____________________________________________________________________________________________________________________________________________ 
 
 
 

===========================================================================
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".