Re: Request failed because of an invalid destination
"Potluri, Mohan" <[email protected]> Tue, 21 Jun 2005 09:15:12 -0700
| Newsgroups | gmane.comp.java.sun.jtapi |
|---|---|
| Message-ID | <589E1E30171D31418774964925D7430F205C9F@vtg-um-e2k6.sj21ad.cisco.com> |
Calling search space of the caller should be setup such that caller is able to each 529 for this redirect request to succeed.
You may want to use other redirect methods (redirect("529", CiscoConnection.REDIRECT_NORMAL, CiscoConnection.ADDRESS_SEARCH_SPACE)). To use this method calling search space of redirecting party should include the partition of 529.
-----Original Message-----
From: Discussion list for Java Telephony API [mailto:[email protected]] On Behalf Of Jörg Wiesmann
Sent: Monday, June 13, 2005 3:51 AM
To: [email protected]
Subject: [JTAPI] Request failed because of an invalid destination
Hi,
i am trying to redirect an incoming call to another phone.
I did it the following way:
setting CallControlConnection
===============================
public final void callChangedEvent(CallEv[] events) {
TerminalConnection termconn;
String name;
for (int i = 0; i < events.length; i++) {
Call call = events[i].getCall();
activeCall = (CallControlCall) call;
if ((events[i] instanceof CallCtlConnEv) || ((events[i]
instanceof TermConnEv))) {
if (events[i].getID() == CallCtlConnAlertingEv.ID ) {
callControlConnection =
(CallControlConnection)((CallCtlConnAlertingEv)events[i]).getConnection();
}
Calling my function
===================
public void setRedirectCall (CallControlConnection connection) {
try {
if (connection != null) {
System.out.println("StringObject:" + connection.toString());
Address address;
try {
address = provider.getAddress("529");
connection.redirect(address.getName());
} catch (InvalidArgumentException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
if the function is called and an active call is available it prints out the
following error:
com.cisco.jtapi.InvalidPartyExceptionImpl: Request failed because of an
invalid destination.
the address (529) is valid and also connected.
what am i doing wrong ?
i searched for a similar problem, but could not find any, with a message
like this.
Any hints are welcome !!
Regards
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".
===========================================================================
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".