[asterisk-users] Asterisk Manager Interface:
Auto-answerof'Originate' command
Steve Langstaff
steve.langstaff at citel.com
Fri Jan 12 09:43:10 MST 2007
That's better - the originating phone now auto-answers. Thanks.
Unfortunately the terminating phone also auto-answers, so I guess I've
got to find out how to not inherit the ALERT_INFO variable across the
channels (I've tried ALERT_INFO without the '_' prefix, but then the
originating phone does not get the variable.
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
> Steve Davies
> Sent: 12 January 2007 15:57
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] Asterisk Manager Interface:
> Auto-answerof'Originate' command
>
> 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
> > > > >
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list