Hi, I would like to develop a dialplan that allows the callee to reject the call like this:- 1) Call comes in and receives a greeting and get put into a queue. 2) A second call is placed to the member of staff (SIP phone or mobile phone) 3) The member of staff answers the call and is presented with a few options. 4) If the member of staff presses 1, the incoming call is connected to the member of staff. 5) If the member of staff hangs up or presses 2, the incoming call is sent to a voicemail box. The problem being, I can't see to place the second call without bridging the first call. Can anyone point me in the right direction? Many thanks Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100317/7fd2ce14/attachment.htm
Sounds like you want some type of call screening. Check out the p option to the Dial command.> Hi, >? > I would like to develop a dialplan that allows the callee to reject > the call like this:- >? > 1) Call comes in and receives a greeting and get put into a queue. > 2) A second call is placed to the member of staff (SIP phone or > mobile phone) > 3) The member of staff answers the call and is presented with a few > options. > 4) If the member of staff presses 1, the incoming call is connected > to the member of staff. > 5) If the member of staff hangs up or presses 2, the incoming call > is sent to a voicemail box. >? > The problem being, I can't see to place the second call without > bridging the first call. >? > Can anyone point me in the right direction? >? > Many thanks > Dan
This is just my approach, but I would run call 1 into an AGI that produced the second call through AMI, then proceeded based on the return. - exten => 123,1,answer - exten => 123,2,AGI(callproc.agi) - exten => 123,3,Gotoif($["${PROC}" = "VM"]?voicemail) - exten => 123,4,Queue - exten => 123,5(voicemail),Voicemailmain - exten => 123,6,hangup callproc.agi calls your staff member - if they press 1, variable proc is set to VM. _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Dan Journo Sent: Wednesday, March 17, 2010 10:36 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Call Filtering Hi, I would like to develop a dialplan that allows the callee to reject the call like this:- 1) Call comes in and receives a greeting and get put into a queue. 2) A second call is placed to the member of staff (SIP phone or mobile phone) 3) The member of staff answers the call and is presented with a few options. 4) If the member of staff presses 1, the incoming call is connected to the member of staff. 5) If the member of staff hangs up or presses 2, the incoming call is sent to a voicemail box. The problem being, I can't see to place the second call without bridging the first call. Can anyone point me in the right direction? Many thanks Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100318/3cc46ec0/attachment.htm