I don't entirely remember - I was writing this code from memory.

Have you done any testing?

PaulH


On Tue, 2008-04-01 at 08:47 -0500, Jeremy Mann wrote:
> Can I assume after exten=>2,1,Playback(thanksfortakingthecall) there's more 
> logic, or does asterisk handle the connection between both parties at that 
> point?
> 
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Hales
> Sent: Monday, March 31, 2008 9:34 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] How to give user a prompt before connecting 
> thecall
> 
> 
> Something like this:
> 
> Dialling:
> 
> exten => s,n(dial),Dial($ZAP/G1/${number},15,M(check)gm)
> exten => s,n,Dbget(next/number)
> exten => s,n,Goto(dial)
> 
> 
> {macro-check}
> exten => s,n,Playback(${heresacall})
> exten => s,n,Read(response,options,1)
> exten => s,n,Goto(${response},1)
> 
> exten => 1,1,Macroexit
> 
> exten => 2,1,Playback(thanksfortakingthecall)
> 
> 
> This hasn't been tested. Give it a red hot go.
> 
> Another option is to set up a queue with external numbers as members,
> and set the queue as need the memebrs to accept the calls. (not that I
> can remember that option)
> 
> PaulH
> 
> 
> On Mon, 2008-03-31 at 20:55 -0500, Jeremy Mann wrote:
> > Please do!
> >
> > ________________________________________
> > From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Paul Hales [EMAIL 
> > PROTECTED]
> > Sent: Monday, March 31, 2008 7:50 PM
> > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > Subject: Re: [asterisk-users] How to give user a prompt before  connecting  
> >     thecall
> >
> > It can be done via the 'visit a macro' part of the dial command...
> >
> > If anyone would like, i can post a code sample.
> >
> > PaulH
> >
> >
> > On Mon, 2008-03-31 at 15:33 -0400, Dean Collins wrote:
> > > Yes it is.
> > > I'm remote at the moment so I can't send you the code but google for 
> > > mobile remote receiver and you'll find what you are looking for.
> > > Lots of people do it so they don't have calls to cell phones picked up by 
> > > voicemail.
> > >
> > >
> > > Cheers
> > > dean
> > >
> > >
> > > -----Original Message-----
> > > From: Pete Kay <[EMAIL PROTECTED]>
> > > Sent: Monday, March 31, 2008 2:27 PM
> > > To: Asterisk Users Mailing List - Non-Commercial Discussion 
> > > <asterisk-users@lists.digium.com>
> > > Subject: [asterisk-users] How to give user a prompt before connecting 
> > > thecall
> > >
> > > Hello,
> > >
> > > Is it possible to request for the premission from the called party  
> > > through
> > > a prompt before routing the call?
> > > For instance, before actually connecting two parties through the use of 
> > > DIAL
> > > command in the dialplan, I want to let Asterisk to automatically
> > > ask for the called party to decide whether he/she would like to be
> > > connected.  ( ex. Press 1 to connect and 2 to hangup).
> > >
> > > Can this function be done?  If so, how to do it?
> > >
> > > Thank you .
> > >
> > > Pete Dao
> > >
> > > _______________________________________________
> > > -- 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
> >
> >
> > _______________________________________________
> > -- 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
> >
> > This e-mail, facsimile, or letter and any files or attachments transmitted 
> > with it contains information that is confidential and privileged. This 
> > information is intended only for the use of the individual(s) and 
> > entity(ies) to whom it is addressed. If you are the intended recipient, 
> > further disclosures are prohibited without proper authorization. If you are 
> > not the intended recipient, any disclosure, copying, printing, or use of 
> > this information is strictly prohibited and possibly a violation of federal 
> > or state law and regulations. If you have received this information in 
> > error, please notify Texas Health Management Group immediately at 
> > 1-817-310-4999. Texas Health Management Group, its subsidiaries, and 
> > affiliates hereby claim all applicable privileges related to this 
> > information.
> >
> > _______________________________________________
> > -- 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
> 
> 
> _______________________________________________
> -- 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
> 
> This e-mail, facsimile, or letter and any files or attachments transmitted 
> with it contains information that is confidential and privileged. This 
> information is intended only for the use of the individual(s) and entity(ies) 
> to whom it is addressed. If you are the intended recipient, further 
> disclosures are prohibited without proper authorization. If you are not the 
> intended recipient, any disclosure, copying, printing, or use of this 
> information is strictly prohibited and possibly a violation of federal or 
> state law and regulations. If you have received this information in error, 
> please notify Texas Health Management Group immediately at 1-817-310-4999. 
> Texas Health Management Group, its subsidiaries, and affiliates hereby claim 
> all applicable privileges related to this information.
> 
> _______________________________________________
> -- 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


_______________________________________________
-- 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

Reply via email to