Re: [Asterisk-java-users] How to use A-J to inject input to Dialplan?
Brought to you by:
srt
From: Greg H. <gre...@gm...> - 2013-06-05 16:14:11
|
Hi Yves, It is a definite requirement that I not be able to alter a customer Asterisk configuration. Possibly something like tagging on a .conf file in the future but that's about it. I do know I am dialing a meeting room but it is still up to the user to enter a proper PIN number, so I guess I could do something like collect all entered info from a user then submit all at once to meetme using OriginateToApplication(). Hopefully that will alter the Asterisk dial plan so it will know it already has the PIN and it will not have to play the recording to ask for it? It's great to learn about OriginateToApplication(). I use Originate() today for all dialed calls, and maybe that is an issue. I wonder if I try using OriginateToApplication(), specifying meetme and without a PIN, maybe internally a route will be setup in Asterisk to know to send my PIN digits to the meetme app. I can play with that a bit. Thanks! Greg On Wed, Jun 5, 2013 at 8:21 AM, Yves A. <yv...@gm...> wrote: > OK, > > if you can play DTMF on "normal" calls, but not on meetme conferences... > have you tried to change the config parameter I recommended in my last > eMail or > can´t you change this, because you want to avoid ANY changes in the config > files on the target asterisk? > > If you know that you are dialling into a meetme room (and I think you > know, otherwise I would be totally confused..), you can dial directly into > the > asterisk application meetme and pass the required parameters like > roomnumber and pin... no need to play around with DTMF... > > The following lines given as an example would establish a connection from > the (SIP-)extension 567 to the meetme room 1024 that is protected with > the PIN 123456. > > DefaultAsteriskServer asteriskServer = new DefaultAsteriskServer("###your > asterisk server ip or dns-name###", "###username with appropriate > rights###", "###password###); > asteriskServer.getManagerConnection().login(); > asteriskServer.originateToApplication("SIP/567", "meetme", "1024,,123456", > 15000l); > > regards, > yves > > |