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 19:40:55
|
Hi Yves, I am sorry to be confusing. My application has a GUI interface that includes a dialer module. The user first would dial the conference room number (1024). The lower layer A-J interface would use Originate() to create a call to that conference room. The Meetme app would run in the dial plan and play out the request for a PIN. The user would then enter that PIN ("123") and the A-J layer would take that input and use PlayDtmfAction to drive it to Meetme. So it's up to the user to enter the correct PIN to be sent in PlayDtmfAction, to be allowed to enter room 1024. Like I said, if the user dialed another SIP extension like 1000, then once the connection is made further dialer input will get successfully passed via PlayDtmfAction to that other SIP endpoint. As far as bridging the extension, I think that might not be done in the dialplan until the PIN is accepted. If I request channel info for the active call, the destination channel ID first is 1024@from-internal:1. In cases where the PIN gets accepted, the destination will be different when the channel info gets requested again (something like STARTMEETME/1024). Since I am hearing the announcement to request PIN, I think I should have a bridge in place but then why doesn't app_read.c collect the digits I enter? As far as OriginateToApplication, I understand it will not alter the dial plan. I just thought that since I specify meetme as an app there, then further calls to the channelID associated with this session may be able to direct things like DTMF to meetme. Just a guess though! Thanks again, Greg On Wed, Jun 5, 2013 at 3:25 PM, Yves A. <yv...@gm...> wrote: > Hi, > > now I am totally confused... I thought, your application has to play the > PIN DTMF... now you say, that the user still has to enter the pin... > So what is the problem to bridge the extension of your user with the > conference-room extension? After connecting the two partys you´re > done, the user hears the announcement and enters the pin...? If you can´t > go this way I think I still did not catch your real objective... > > OriginateToApplication will not alter any part of the dialplan... its just > a method to dial directly "into" asterisk apps... they do even not have > to occur anywhere in the dialplan... > > As I mentioned earlier, you can use the originate(originateAction) method > to jump to a certain priority in the dialplan... therefor you use > the method originateAction.setPriority(int priority)... > > If the things still do not work the way you need, I think we should chat > or phone... in that case eMail me directly and I´ll send you my > skype ID. > > have fun, > yves > > > |