In your AMI portion, you set the outgoing call first, then the extension you want to be reached at:
Action: Originate Channel: Zap/g2/8135551212 Context: default Exten: 101 Priority: 1 Timeout: 30000 In the dialplan: [default] exten => 101,1,SIPAddHeader(... exten => 101,n,Dial(... exten => 101,n,... J. > -----Original Message----- > From: pallet...@gmail.com > Sent: Wed, 6 May 2009 11:42:43 -0400 > To: asterisk-users@lists.digium.com > Subject: Re: [asterisk-users] AMI + AGI for outbound click to dial > > Ping-ponging the call? > That's a good idea.. > > Now, to try to accomplish that in an AGI script. > > Thanks Jim! > PB > > On Wed, May 6, 2009 at 11:18 AM, Jimmy Godbout <s...@inbox.com> wrote: > >> Send your call to a different extension that will set the header before >> calling your phone. >> >>> -----Original Message----- >>> From: pallet...@gmail.com >>> Sent: Wed, 6 May 2009 10:51:30 -0400 >>> To: asterisk-users@lists.digium.com >>> Subject: Re: [asterisk-users] AMI + AGI for outbound click to dial >>> >>> Ok - after a lot of playing I'm still a bit stuck. >>> >>> I'd like to accomplish the following - can't get it to work as it >>> should >>> (at >>> least in my head! LOL) >>> >>> I've got an app that initiates an AMI call for Originate. I want to >>> click a >>> number onscreen, send the Originate, then (this is the part I can't >>> figure >>> out) have the box call my extension, adding in the SIPAddHeader info >>> for >>> answer-after:0 (so my phone auto-picks up) as well as spawning a >>> MixMonitor >>> to record the call in a specified format. (I have the AGI working for >>> the >>> mixmonitor) >>> >>> Make sense? maybe? ... >>> <chuckle> >>> >>> Thanks for the help! >>> PB >> >> _______________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users >> > > > > -- > ----- > Jason Gehman > General Manager > North Voice Communications > www.NorthVC.com _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users