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: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 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/[EMAIL PROTECTED]
> 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 <[EMAIL PROTECTED]> wrote:
> > On 1/11/07, Steve Langstaff <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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
> 
_______________________________________________
--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

Reply via email to