Re: State Transitions for the CallControlConnection
Carlos Garcia <[email protected]> Thu, 2 Jun 2005 15:43:01 +0200
| Newsgroups | gmane.comp.java.sun.jtapi |
|---|---|
| Message-ID | <000701c56778$feb3f470$b70100c8@pccarlos> |
Desconozco la implementación JTAPI de Cisco. Imagino Yo implemente JTAPI para los callcenters de DataVoice. www.datavoice.es. Un saludo. ----- Original Message ----- From: "Jesús Martínez" <[email protected]> To: <[email protected]> Sent: Thursday, June 02, 2005 1:40 PM Subject: Re: [JTAPI] State Transitions for the CallControlConnection Hola, Muchas gracias. El problema que tengo es que estoy intentado hacer una aplicación que permita a los usuarios establecer una serie de filtros para sus llamadas entrantes (listas negras, patrones de números, etc). Viendo la máquina de estados de CallControlConnection, parece que el único punto donde se podría bloquear la llamada entrante es cuando está en el estado OFFERED (ya que sino el terminal sonaría). Pues bien, he intentado hacer esto de la siguiente forma: 1. He creado un Observer que implementa la Interfaz CallControlConnectionObserver 2. Cuando cambia el estado de la llamada, compruebo los estados, si me ha llegado el estado OFFERED (CallCtlConnOfferedEv) cojo la conexión y le hago un reject. CallCtlConnOfferedEv cccoev = (CallCtlConnOfferedEv) evlist[i] CiscoConnection ca = (CiscoConnection) cccoev.getConnection(); try{ ca.reject(); ... El caso es que esto funciona la mayoría de las veces, pero en ocasiones al realizar el reject ocurre una "InvalidStateException" ya que el estado ha pasado a ser ALERTING. La principal duda es si se puede modificar es máquina finita de estado, ya que parece que los estados llegan de forma asincrona... De todas formas se aceptan todo tipo de sugerencias... Muchas gracias y un saludo. *********************************************************** Jesús Martínez Martínez Sección de Redes Area de las Tecnologías y las Comunicaciones Aplicadas Despacho B1.2.002 - Edificio ATICA 30100 Campus de Espinardo E-mail: [email protected] Tfno: 968 39 8209 -----Mensaje original----- De: Discussion list for Java Telephony API [mailto:[email protected]] En nombre de Carlos Garcia Enviado el: jueves, 02 de junio de 2005 13:29 Para: [email protected] Asunto: Re: [JTAPI] State Transitions for the CallControlConnection Puedes preguntarme en Castellano. Un saludo desde Madrid. ----- Original Message ----- From: "Jesús Martínez Martínez" <[email protected]> To: <[email protected]> Sent: Thursday, June 02, 2005 1:00 PM Subject: [JTAPI] State Transitions for the CallControlConnection > Hello, > > I have a problem with the State Transitions for the CallControlConnection. > > The problem is the following one: > > I want to avoid that some calls arrive at a determined linea. For the > time being I have tried to do a reject when the call passes al state > OFFERED, but while I am carrying out the reject, the call passes to > ESTABLISHED and to ALERTING, so that the telephone sounds during an > instant. > > You hava any suggestion of as I can avoid this. > > Thanks and perdon my English :) > > ======================================================================== === > 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". =========================================================================== 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".