Re: get Calling number from redirected call
Kenny Wong <[email protected]> Sun, 17 Sep 2006 23:14:14 +0800
| Newsgroups | gmane.comp.java.sun.jtapi |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_48459_21636789.1158506054697 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all, I am also trying to get the caller ID of a transfered call from my system. However have been getting the incorrect number. Expected callflow. - Phone 1 calls Phone 2. - Phone 2 transfer call to phone3 - phone 3 need to display phone 1 number. I have added observer in and is retriving the caller ID in the TALKING Event(Forget is it from the Connection package or the Call Control package)= . However the caller ID that I am getting is the phone 2 caller ID. DEduce this is because I did a 2 step transfer but shouldn't another TALKIN= G event be fired after transfer is completed? Is there another event that I could look at to retrieve the caller ID from phone 3 perspective? Thanks in advance Kenny On 7/22/06, Milan Matys <[email protected]> wrote: > > Thanks again i did it by yours first idea. I have array of calls which ha= s > 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! > > > -----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". > =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". ------=_Part_48459_21636789.1158506054697 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline <div>Hi all, </div> <div>I am also trying to get the caller ID of a transfered call from my sys= tem. However have been getting the incorrect number.</div> <div> </div> <div>Expected callflow.</div> <div>- Phone 1 calls Phone 2.</div> <div>- Phone 2 transfer call to phone3</div> <div>- phone 3 need to display phone 1 number.</div> <div> </div> <div> I have added observer in and is retriving the caller ID in the&n= bsp;TALKING Event(Forget is it from the Connection package or the Call Cont= rol package). However the caller ID that I am getting is the phone 2 caller= ID.=20 </div> <div> </div> <div>DEduce this is because I did a 2 step transfer but shouldn't another T= ALKING event be fired after transfer is completed? Is there another event t= hat I could look at to retrieve the caller ID from phone 3 perspective? </div> <div> </div> <div>Thanks in advance</div> <div> </div> <div>Kenny<br><br> </div> <div><span class=3D"gmail_quote">On 7/22/06, <b class=3D"gmail_sendername">= Milan Matys</b> <<a href=3D"mailto:[email protected]">[email protected]<= /a>> wrote:</span> <blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0= px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Thanks again i did it by yours f= irst idea. I have array of calls which has<br>been held and when is incomin= g new call i compare calling number by this <br>array. It is good idea. It's slower than this solution, but I work on i= t few<br>hours. You example explain me other thinks ( I'm not experienced p= rogrammer<br>(but I will be maybe)). :)<br><br>Have a nice weeke= nd!<br> <br><br>-----Original Message-----<br>From: Discussion list for Java Teleph= ony API<br>[mailto:<a href=3D"mailto:[email protected]">JTAPI-INT= [email protected]</a>] On Behalf Of J=F6rg Wiesmann<br>Sent: Friday, July = 21, 2006 10:47 AM <br>To: <a href=3D"mailto:[email protected]">JTAPI-INTEREST@JAVA.= SUN.COM</a><br>Subject: Re: [JTAPI] get Calling number from redirected call= <br><br>upps .. forgot something .. it has to be:<br>TerminalConnection[] t= c =3D ((CallCtlConnEstablishedEv) <br>events[i]).getCallingTerminal().getTerminalConnections();<br>for (int a= =3D0;a<tc.length;a++) {<br> CallControlCall ccCa= ll =3D<br>(CallControlCall)tc[a].getConnection().getCall();<br> = if (ccCall.getState() =3D=3D CallControlCall.ACTIVE ) {<br> ccCall.getCalledAddress();<br>&n= bsp; ccCall.getCallingAddress();<br> &nbs= p; }<br> }<br><br>:)<br><br>=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<br>To unsub= scribe, send email to=20 <a href=3D"mailto:[email protected]">[email protected]</a> and incl= ude in the body<br>of the message "signoff JTAPI-INTEREST". = For general help, send email to<br><a href=3D"mailto:[email protected]= n.com">[email protected] </a> and include in the body of the message "help".<br><br>=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<br>To= unsubscribe, send email to <a href=3D"mailto:[email protected]">listse= [email protected] </a> and include in the body<br>of the message "signoff JTAPI-INTEREST= ". For general help, send email to<br><a href=3D"mailto:lis= [email protected]">[email protected]</a> and include in the body of th= e message "help". <br></blockquote></div><br> =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". ------=_Part_48459_21636789.1158506054697--