Re: [Asterisk-java-users] asteriskServer.getChannelByName Timeout waiting for events from StatusAct
Brought to you by:
srt
From: Yves A. <yv...@gm...> - 2014-03-12 07:21:16
|
hi, well... now I am more confused than before... would be helpful to read your scenario and objective from the beginning... Dont save words, the more you explain, the better... What is the purpose of sending DTMF into a conversation? Incoming calls can be handled either by hooking on events or routing the call to a (java-)agi. But again, as long as I do not exactly understand your objective / problem / scenario these are only common tips... yves Am 11.03.2014 17:03, schrieb Jorge: > Hi : > > Thank you very much for your answer. What I would like to do is to > send and receive dtmf tones when Asterisk call to a telephone o > receive a call from a telephone. The problem I had I don´t know how to > manage the call connection so I decided to call to a conference. On > this way the call is not hung up while I am sending the tones. > > The idea is the other won´t listen the tones so I can manage n > connections using only one conference room. > > I think 2) really dosen´t matter because no other data will flow > throught this call only DTMF tones. I am not sure if I understood this > point properly. > > You said "call via java into the conference and send the tones would > be easier." I think this is right but I need to handle incoming > calls, this why I need the channel. > > Do you need more information? > > Thank you for your answer. > > > > Jorge > > ---------------------------------------------------------------------------------------------------------------------------------------------- > > > <https://twitter.com/#%21/correderajorge> <http://www.correderajorge.es/> > > En función de la /Ley Orgánica 15/1999/, este mensaje de correo > electrónico y sus documentos adjuntos están dirigidos > /exclusivamente/ a los destinatarios especificados y su información es > de uso /estrictamente privado/ salvo que se especifique lo contrario. > La información contenida puede ser /confidencial/ y/o estar > /legalmente protegida/. Si usted recibe este mensaje por /error/, por > favor comuníqueselo inmediatamente al remitente y /elimínelo/ ya que > carece de autorización de todo tipo. /Se prohíbe expresamente/ la > revelación, distribución, impresión o copia de toda o alguna parte de > la información contenida en este mensaje > > > > 2014-03-11 16:49 GMT+01:00 Yves A. <yv...@gm... > <mailto:yv...@gm...>>: > > Hi, > > Just to make sure I understand you right...: > > 1.) Phone x calls into your conference via pstn > 2.) you want to "hijack" the channel or superimpose DTMF ? > > If you use asterisk 11.x you could do some specials like this, but > to call via java into the conference and send the tones would be > easier... or > is it a constraint, that other users in the conference must not > hear the tones? > > regards, > yves > > > Am 11.03.2014 15:03, schrieb Jorge: >> Hi: >> >> I have the next scenario. I am triying to call from pstn to a >> conference in Asterisk server. I have set up the dial plan so the >> main telephone number is the the conference so calling for >> example 555-555555 you get into the conference. >> >> My objective is capturing this channel from java to send tones >> from Asterisk to the phone. What I am triying to do is the next >> thing : >> >> managerEventListener = new ManagerEventListener(){ >> public void onManagerEvent(ManagerEvent event) { >> if(event instanceof MeetMeJoinEvent ){ >> MeetMeJoinEvent meetMeJoinEvent = >> (MeetMeJoinEvent) event; >> String server = meetMeJoinEvent.getServer(); >> meetMeJoinEvent.getCallerIdNum(); >> System.out.println(meetMeJoinEvent.getChannel()); >> try{ >> AsteriskChannel asteriskChannel = >> asteriskServer.getChannelByName(meetMeJoinEvent.getChannel()); >> System.out.println(asteriskChannel); >> //asteriskChannel.playDtmf("1"); >> System.out.println("terminado"); >> }catch(ManagerCommunicationException e){ >> logger.error("Error al obtener el canal " + e); >> System.out.println("Error " + e); >> } >> } >> } >> }; >> >> That is to say I am capturing the MeetMeJoinEvent to see when >> this phone has been connected to the conference. With this event >> I am able to get the channel name and with the instruction the >> channel structure but I get : >> "org.asteriskjava.live.ManagerCommunicationException: Timeout >> waiting for events from StatusAction" >> >> The great thing is that when I originate the call from Asterisk >> with "asteriskChannel = >> asteriskServer.originateToExtension("DAHDI/g0/" + numero, >> contexto , conferenciaNumeroSip, 1, 10000);" it is able to get >> the channel. >> >> Could you let me know what I am doing wrong? >> >> Thank you very much for your help. >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/13534_NeoTech >> >> >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... <mailto:Ast...@li...> >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases > and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > <mailto:Ast...@li...> > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |