Problem with disconnecting a connection from a conference call

Kumkum Bagchi <[email protected]> Wed, 9 Mar 2005 14:40:19 -0700
Newsgroups gmane.comp.java.sun.jtapi
Message-ID <LISTSERV%[email protected]>
Hi

I am working on scenarion described below

1. Terminal T1 is the terminal the application is managing which is
forwarded to a Route >point RP and then to a CTI PORT C1 (using slectRoute
in the application).
2. When ConnInProgressEv is received for this CTI Port, accept the connection.
3. When TermConnRingingEv is received - answer the call on C1 and get the
talking terminal connection.
4. When CallCtlTermConnTalkingEv is received make a Call to A using C1. Get
the Call on C1 (callOnterminal) and Conference them.  Make a second Call to
B and conference in with Callonterminal.
5. I receive active call when the application receive the
CiscoConferenceEndEv event by calling getFinalCall().
6. I get four connections back from this call
 conn1 - with originator number
 conn2 - for C1 (CTI Port)
 conn3 - for party A and
 conn4 - for party B
7. If Party A picks up the phone then I just want to execute the following
to drop the unwanted connetion.
 Conn2.disconnect and conn4.disconnect to complete this.


Now get this - Below are four different connections I have in the conference
call.  I get state information for all the connections and also checked
canDisconnect capability on the connection and then I tried to drop one of
the connection with name B which is a internal number. I got "Address is out
of service".

dbg: cs.length 4
dbg: Connection name :: 555555555 (PSTN Caller)
dbg: Connection is in Connection.CONNECTED state
dbg: The value of canDisconnect is : false

dbg: Connection name :: C1 (CTI Route Port)
dbg: Connection is in Connection.CONNECTED state
dbg: The value of canDisconnect is : true

dbg: Connection name :: A(Wireless number)
dbg: Connection is in Connection.CONNECTED state
dbg: The value of canDisconnect is : false

dbg: Connection name :: B(Internal number)
dbg: Connection is in Connection.CONNECTED state
dbg: The value of canDisconnect is : true
dbg: Dropping B
dbg: Caught exception 2 while dropping connection from the final call
com.cisco.jtapi.InvalidStateExceptionImpl: Address is out of service
    at
com.cisco.jtapi.IntraProviderAddress.assertValidState(com/cisco/jtapi/IntraProviderAddress)
    at
com.cisco.jtapi.ConnectionImpl.assertValidAddress(com/cisco/jtapi/ConnectionImpl)
    at com.cisco.jtapi.ConnectionImpl.disconnect(com/cisco/jtapi/ConnectionImpl)
    at sConf_ved_bkp08.callChangedEvent(sConf_ved_bkp08.java:323)
    at
com.cisco.jtapi.ObserverProxy.deliverEvents(com/cisco/jtapi/ObserverProxy)
    at
com.cisco.jtapi.ObserverThread.messageReceived(com/cisco/jtapi/ObserverThread)
    at com.cisco.cti.util.MessageThread.4J(com/cisco/cti/util/MessageThread)
    at com.cisco.cti.util.MessageThread.3J(com/cisco/cti/util/MessageThread)

B is a valid address and the phone is ringing.  I have no idea what can be
wrong with this. Can anyone help?

Thanks.

Kumkum Bagchi

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