Hey Gang, Trying to figure out how I can do the following (have each part working individually but drawing a blank on combining) 1) click on-screen which sends an AMI originate (works fine) 2) the originated call is to an internal extension that looks up the number to be dialed (works) 3) then via Perl, adding in a SIPAddHeader for answer-after=0.. (works separate from the above) What I can't figure out is how I can click on screen, either send an AMI originate or something, then have the SIP header added in and have it ring back my grandstream to auto-dial back out. Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090504/82a0f8dc/attachment.htm
On 5/05/2009 1:10 p.m., J. G. wrote:> Hey Gang, > Trying to figure out how I can do the following (have each part working > individually but drawing a blank on combining) > > 1) click on-screen which sends an AMI originate (works fine) > 2) the originated call is to an internal extension that looks up the > number to be dialed (works) > 3) then via Perl, adding in a SIPAddHeader for answer-after=0.. (works > separate from the above) > > What I can't figure out is how I can click on screen, either send an AMI > originate or something, then have the SIP header added in and have it > ring back my grandstream to auto-dial back out.Instead of SIP/x for channel use Local/exten at context/n where exten is an extension and context a context :) [context] exten => _X.,1,Answer() exten => _X.,2,SipAddHeader(something) exten => _X.,3,Dial(SIP/${EXTEN} -- Kind Regards, Matt Riddell Director _______________________________________________ http://www.venturevoip.com (Great new VoIP end to end solution) http://www.venturevoip.com/news.php (Daily Asterisk News - html) http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss)
Send your call to a different extension that will set the header before calling your phone.> -----Original Message----- > From: palletboy at gmail.com > Sent: Wed, 6 May 2009 10:51:30 -0400 > To: asterisk-users at 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
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: palletboy at gmail.com > Sent: Wed, 6 May 2009 11:42:43 -0400 > To: asterisk-users at 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 <sip at inbox.com> wrote: > >> Send your call to a different extension that will set the header before >> calling your phone. >> >>> -----Original Message----- >>> From: palletboy at gmail.com >>> Sent: Wed, 6 May 2009 10:51:30 -0400 >>> To: asterisk-users at 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
In this case, "Placing a call from an outgoing channel to a local extension, this will cause the local extension not to ring until the Zap channel has picked up" - http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Originate> -----Original Message----- > From: palletboy at gmail.com > Sent: Wed, 6 May 2009 16:06:36 -0400 > To: asterisk-users at lists.digium.com > Subject: Re: [asterisk-users] AMI + AGI for outbound click to dial > > Would this return during the ring or only after the remote party has > picked > up? > > On Wed, May 6, 2009 at 12:51 PM, Jimmy Godbout <sip at inbox.com> wrote: > >> 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: palletboy at gmail.com >>> Sent: Wed, 6 May 2009 11:42:43 -0400 >>> To: asterisk-users at 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 <sip at inbox.com> wrote: >>> >>>> Send your call to a different extension that will set the header >>>> before >>>> calling your phone. >>>> >>>>> -----Original Message----- >>>>> From: palletboy at gmail.com >>>>> Sent: Wed, 6 May 2009 10:51:30 -0400 >>>>> To: asterisk-users at 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 >> > > > > -- > ----- > Jason Gehman > General Manager > North Voice Communications > www.NorthVC.com____________________________________________________________ GET FREE 5GB EMAIL - Check out spam free email with many cool features! Visit http://www.inbox.com/email to find out more!