[asterisk-users] How to give user a prompt before connecting thecall

Paul Hales pdhales at optusnet.com.au
Mon Mar 31 21:34:07 CDT 2008


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: asterisk-users-bounces at lists.digium.com [asterisk-users-bounces at lists.digium.com] On Behalf Of Paul Hales [pdhales at optusnet.com.au]
> 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 <petedao at gmail.com>
> > Sent: Monday, March 31, 2008 2:27 PM
> > To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at 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




More information about the asterisk-users mailing list