Re: get Calling number from redirected call

Milan Matys <[email protected]> Fri, 21 Jul 2006 19:01:36 +0200
Newsgroups gmane.comp.java.sun.jtapi
Message-ID <[email protected]>
Thanks again i did it by yours first idea. I have array of calls which =
has
been held and when is incoming new call i compare calling number by this
array. It is good idea. It's slower than this solution, but I work on it =
few
hours. You example explain me other thinks ( I'm not experienced =
programmer
(but I will be maybe)).  :)

Have a nice weekend!=20


-----Original Message-----
From: Discussion list for Java Telephony API
[mailto:[email protected]] On Behalf Of J=F6rg Wiesmann
Sent: Friday, July 21, 2006 10:47 AM
To: [email protected]
Subject: Re: [JTAPI] get Calling number from redirected call

upps .. forgot something .. it has to be:
TerminalConnection[] tc =3D ((CallCtlConnEstablishedEv)
events[i]).getCallingTerminal().getTerminalConnections();
for (int a=3D0;a<tc.length;a++) {
      CallControlCall ccCall =3D
(CallControlCall)tc[a].getConnection().getCall();
      if (ccCall.getState() =3D=3D CallControlCall.ACTIVE) {
       ccCall.getCalledAddress();
       ccCall.getCallingAddress();
      }
     }

:)

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

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

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