[asterisk-users] Asterisk Manager Interface: Auto-answer
of'Originate' command
Steve Davies
davies147 at gmail.com
Fri Jan 12 08:56:47 MST 2007
How about:
Action: originate
Channel: Local/1234 at indirect
etc
Then in extensions.conf
[indirect]
exten => _X.,1,NoOp("Click to Call")
exten => _X.,n,SetVar(_ALERT_INFO=info=alert-autoanswer)
exten => _X.,n,Goto(from-internal,${EXTEN},1)
Get the idea? Does that help?
Cheers,
Steve
On 1/12/07, Moises Silva <moises.silva at gmail.com> wrote:
> On 1/11/07, Steve Langstaff <steve.langstaff at citel.com> wrote:
> > So, to be clear, I have to do this in the application using the
> > management interface (which I don't happen to control) rather than in
> > the Asterisk dialplan (which I do)?
> Yes, because the channel you originate does not exists in the PBX yet,
> until answered. So, Im not sure how are you originating the channel,
> but the interface originating the channel, should allow you to do this
> type of things.
>
> >
> > > -----Original Message-----
> > > From: asterisk-users-bounces at lists.digium.com
> > > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
> > > Moises Silva
> > > Sent: 11 January 2007 17:40
> > > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > > Subject: Re: [asterisk-users] Asterisk Manager Interface:
> > > Auto-answer of'Originate' command
> > >
> > > Please read the voip-info.org documentation regarding
> > > Originate action, there you will find how to set variables on
> > > the originate channel.
> > >
> > > On 1/11/07, Steve Langstaff <steve.langstaff at citel.com> wrote:
> > > > Does anyone know of a way to make an originate request
> > > coming over the
> > > > management interface (e.g. AstTapi click-to-dial) include
> > > the relevant
> > > > Alert-Info SIP headers to enable the originating phone to
> > > auto-answer?
> > > >
> > > > I've tried setting up a custom context (see below), but the
> > > dial plan
> > > > is only entered AFTER the originating call is answered, so the SIP
> > > > header is added to the terminating call leg, not the
> > > originating call leg.
> > > >
> > > > [click-to-call-custom]
> > > > exten => _X.,1,NoOp("Click to Call")
> > > > exten => _X.,2,SetVar(_ALERT_INFO=info=alert-autoanswer)
> > > > exten => _X.,3,Goto(from-internal,${EXTEN},1)
> > > >
> > > > ______________________________
> > > > Steve Langstaff
> > > >
More information about the asterisk-users
mailing list