Re: get Calling number from redirected call
Kenny Wong <[email protected]> Wed, 27 Sep 2006 12:04:59 +0800
| Newsgroups | gmane.comp.java.sun.jtapi |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_26492_27579173.1159329899076 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Joerg, I have tried using CallCtlConnEstablishedEv but it's not working for me either. I will try with CallCtlConnOfferedEv though. The transfer is being done via manually and not via code. Could I ask you another question(Or anyone with answer to this)? I have wrote an application that retrieve UUI when there is a ringing event= . It's working except for some infrequent occurrance that my application coul= d not retrieve the UUI. I am using a Avaya setup and have a IVR front to collect the digit entered by the caller, which inturn would route the call to any available agent. Thank you so much for your help. On 9/22/06, Joerg Wiesmann <[email protected]> wrote: > > Hi Kenny, > > you might try CallCtlConnOfferedEv and CallCtlConnEstablishedEv. > > Do you transfer the call via java-code (call.transfer ( ... )) > or do you want to display the number while anybody transfers the call wit= h > its phone (manual) ?? > > You may want to catch the event CallCtlTermConnHeldEv and remember the > number in a list > and display it later with that function: > http://www.i-netsource.de/index.php?option=3Dcom_content&task=3Dview&id= =3D7&Itemid=3D11 > > Hope it helps > Joerg > > > > > Kenny Wong schrieb: > > Hi Joerg, > I have tried to use the Established event but still i cant get the number= . > > Expected callflow. > - Phone 1 calls Phone 2. > - Phone 2 transfer call to phone3 > - phone 3 need to display phone 1 number. > > I have tried a test > 1) if Phone 1,2 and 3 are internal call(dialling of extension only), it > works > 2) if Phone 1 is calling from outside(dial the full telephone number), it > does not work. > > Any idea? Anyway thanks for your help. > > Thanks, > Kenny > > > > On 9/19/06, Joerg Wiesmann <[email protected]> wrote: > > > Hi, > > > > you may try this event: > > CallCtlConnEstablishedEv > > and not the Talking event. > > > > Hope it helps > > > > greetz J=F6rg Wiesmann > > > > > > > > Kenny Wong schrieb: > > > > 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 pack= age). > > 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 > > TALKING event be fired after transfer is completed? Is there another ev= ent > > 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 whic= h > > > 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! > > > > > > > > > -----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 th= e > > > body > > > of the message "signoff JTAPI-INTEREST". For general help, send emai= l > > > 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 th= e > > > body > > > of the message "signoff JTAPI-INTEREST". For general help, send emai= l > > > 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 em= ail > > 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 em= ail > > 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 emai= l > 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 emai= l > 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_26492_27579173.1159329899076 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline <div>Hi Joerg, </div> <div>I have tried using CallCtlConnEstablishedEv but it's not working for m= e either. I will try with CallCtlConnOfferedEv though.</div> <div> </div> <div>The transfer is being done via manually and not via code.</div> <div> </div> <div>Could I ask you another question(Or anyone with answer to this)?</div> <div>I have wrote an application that retrieve UUI when there is a ringing = event. It's working except for some infrequent occurrance that my applicati= on could not retrieve the UUI.</div> <div> </div> <div>I am using a Avaya setup and have a IVR front to collect the digit ent= ered by the caller, which inturn would route the call to any available agen= t.</div> <div> </div> <div>Thank you so much for your help.<br> </div> <div><span class=3D"gmail_quote">On 9/22/06, <b class=3D"gmail_sendername">= Joerg Wiesmann</b> <<a href=3D"mailto:[email protected]">j.wiesm= [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"> <div text=3D"#000000" bgcolor=3D"#ffffff">Hi Kenny,<br><br>you might try Ca= llCtlConnOfferedEv and CallCtlConnEstablishedEv.<br><br>Do you transfer the= call via java-code (call.transfer ( ... )) <br>or do you want to display t= he number while anybody transfers the call with its phone (manual) ?? <br><br>You may want to catch the event CallCtlTermConnHeldEv and remember = the number in a list <br>and display it later with that function: <a onclic= k=3D"return top.js.OpenExtLink(window,event,this)" href=3D"http://www.i-net= source.de/index.php?option=3Dcom_content&task=3Dview&id=3D7&Ite= mid=3D11" target=3D"_blank"> http://www.i-netsource.de/index.php?option=3Dcom_content&task=3Dview&am= p;id=3D7&Itemid=3D11</a><br><br>Hope it helps <br>Joerg<br><br><br><br>= <br>Kenny Wong schrieb:=20 <blockquote cite=3D"http://mid9100fd2e0609220212k60f2fd84k495f8cee7c3d9ebb@= mail.gmail.com" type=3D"cite"> <div><span class=3D"e" id=3D"q_10dd522f6c6bf7d3_1"> <div>Hi Joerg, </div> <div>I have tried to use the Established event but still i cant get the num= ber.</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 tried a test </div> <div>1) if Phone 1,2 and 3 are internal call(dialling of extension only), i= t works</div> <div>2) if Phone 1 is calling from outside(dial the full telephone number),= it does not work.</div> <div> </div> <div>Any idea? Anyway thanks for your help.</div> <div> </div> <div>Thanks,</div> <div>Kenny</div> <div><br><br> </div></span></div> <div> <div><span class=3D"e" id=3D"q_10dd522f6c6bf7d3_3"><span class=3D"gmail_quo= te">On 9/19/06, <b class=3D"gmail_sendername">Joerg Wiesmann</b> <<a onc= lick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"mailto:j.wies= [email protected]" target=3D"_blank"> [email protected]</a>> wrote:</span> </span></div> <blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0= px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"> <div><span class=3D"e" id=3D"q_10dd522f6c6bf7d3_5"> <div text=3D"#000000" bgcolor=3D"#ffffff">Hi,<br><br>you may try this event= :<br>CallCtlConnEstablishedEv<br>and not the Talking event.<br><br>Hope it = helps<br><br>greetz J=F6rg Wiesmann<br><br><br><br>Kenny Wong schrieb:=20 <blockquote cite=3D"http://mid9100fd2e0609170814h27d0be7fka1ab41a77f848b10@= mail.gmail.com" type=3D"cite"> <div><span> <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?=20 </div> <div> </div> <div>Thanks in advance</div> <div> </div> <div>Kenny<br><br> </div></span></div> <div> <div><span><span class=3D"gmail_quote">On 7/22/06, <b class=3D"gmail_sender= name">Milan Matys</b> <<a onclick=3D"return top.js.OpenExtLink(window,ev= ent,this)" href=3D"mailto:[email protected]" target=3D"_blank"> m.matys@sez= nam.cz </a>> wrote:</span>=20 <blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0= px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Thanks again i did i= t by yours first idea. I have array of calls which has<br>been held and whe= n is incoming new call i compare calling number by this=20 <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 onclick=3D"return top.js.OpenExtLink(window,event,thi= s)" href=3D"mailto:[email protected]" target=3D"_blank">JTAPI-INT= [email protected]=20 </a>] On Behalf Of J=F6rg Wiesmann<br>Sent: Friday, July 21, 2006 10:47 AM = <br>To: <a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D= "mailto:[email protected]" target=3D"_blank">JTAPI-INTEREST@JAVA.= SUN.COM=20 </a><br>Subject: Re: [JTAPI] get Calling number from redirected call<br><br= >upps .. forgot something .. it has to be:<br>TerminalConnection[] tc =3D (= (CallCtlConnEstablishedEv) <br>events[i]).getCallingTerminal().getTerminalC= onnections();=20 <br>for (int a=3D0;a<tc.length;a++) {<br> CallCo= ntrolCall ccCall =3D<br>(CallControlCall)tc[a].getConnection().getCall();<b= r> if (ccCall.getState() =3D=3D CallControlCall.ACT= IVE ) {<br> ccCall.getCalledAddress();<b= r> ccCall.getCallingAddress();<br> &n= bsp; }<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 un= subscribe, send email to <a onclick=3D"return top.js.OpenExtLink(window,eve= nt,this)" href=3D"mailto:[email protected]" target=3D"_blank"> [email protected]</a> and include in the body<br>of the message "s= ignoff JTAPI-INTEREST". For general help, send email to<br>= <a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"mailto:= [email protected]" target=3D"_blank"> [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 onclick=3D"return top.j= s.OpenExtLink(window,event,this)" href=3D"mailto:[email protected]" tar= get=3D"_blank"> [email protected] </a>and include in the body<br>of the message "s= ignoff JTAPI-INTEREST". For general help, send email to<br>= <a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"mailto:= [email protected]" target=3D"_blank"> [email protected]</a> and include in the body of the message "help= ". <br></blockquote></span></div></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=20 <a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"mailto:= [email protected]" target=3D"_blank">[email protected]</a> and incl= ude in the body of the message "signoff JTAPI-INTEREST". For gene= ral help, send email to=20 <a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"mailto:= [email protected]" target=3D"_blank">[email protected]</a> and incl= ude in the body of the message "help". </blockquote><br> </d= iv> <div><span>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=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 <a onclick=3D"return top.js.Open= ExtLink(window,event,this)" href=3D"mailto:[email protected]" target=3D= "_blank"> [email protected]</a> and include in the body of the message "sign= off JTAPI-INTEREST". For general help, send email to <a onclick=3D"ret= urn top.js.OpenExtLink(window,event,this)" href=3D"mailto:[email protected]= .com" target=3D"_blank"> [email protected]</a> and include in the body of the message "help= ". </span></div></span></div></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, s= end email to=20 <a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"mailto:= [email protected]" target=3D"_blank">[email protected]</a> and incl= ude in the body of the message "signoff JTAPI-INTEREST". For gene= ral help, send email to=20 <a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"mailto:= [email protected]" target=3D"_blank">[email protected]</a> and incl= ude in the body of the message "help". </blockquote><br> </d= iv> <div><span class=3D"e" id=3D"q_10dd522f6c6bf7d3_7">=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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 em= ail to <a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"= mailto:[email protected]" target=3D"_blank"> [email protected]</a> and include in the body of the message "sign= off JTAPI-INTEREST". For general help, send email to <a onclick=3D"ret= urn top.js.OpenExtLink(window,event,this)" href=3D"mailto:[email protected]= .com" target=3D"_blank"> [email protected]</a> and include in the body of the message "help= ". </span></div></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_26492_27579173.1159329899076--