I am following the example at http://www.voip-info.org/wiki/view/Asterisk+tips+findme but I find that no matter what, the call is connected. Can anyone confirm that config is working for them? Any suggestions appreciated. I need to transfer calls to a list of cell phones, ring all of them, allow them to screen the call, connect the call to the first number that accepts the call, and allow others to reject the call. Thanks, Andy [macro-screen] exten => s,1,Wait(1) exten => s,n,Background(csp_ackshort-male) exten => s,n,Set(TIMEOUT(response=10)) exten => 1,1,NoOp(Call Accepted) exten => 2,1,Set(MACRO_RESULT=CONTINUE) exten => t,1,Set(MACRO_RESULT=CONTINUE) ;----original macro ;exten => 1,1,NoOp(Caller accepted) ; Do not set MACRO_RESULT to anything to connect the caller ;exten => i,1,Set(MACRO_RESULT=CONTINUE) ;exten => t,1,Set(MACRO_RESULT=CONTINUE) [default] include => architel include => local include => trunkintl exten => _6XXXXXXXXXX,1,Dial(ZAP/G1/${EXTEN:1},40,M(screen)) exten => _6XXXXXXXXXX,2,Hangup [findme] exten => s,1,Playback(transfer_csp-male) exten => s,n,Dial(LOCAL/6${findme1}&LOCAL/6${findme2},40,m) exten => s,n,Hangup()
Andy Hester wrote:> exten => s,n,Set(TIMEOUT(response=10))Should be exten => s,n,Set(TIMEOUT(response)=10) Regards, Philipp -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk? -> http://www.das-asterisk-buch.de Gesch?ftsf?hrer: Stefan Wintermeyer Handelsregister: Neuwied B 14998
-----Original Message----- From: asterisk-users-bounces@lists.digium.com on behalf of Philipp Kempgen Sent: Sun 4/1/2007 4:02 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] [MACRO-SCREEN] and MACRO_RESULT Andy Hester wrote:> exten => s,n,Set(TIMEOUT(response=10))Should be exten => s,n,Set(TIMEOUT(response)=10) Regards, Philipp ------------------------------ Thanks Philipp, I fixed this, but I still have the problem that the call is connected regardless... -Andy -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 2961 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070401/9cf67017/attachment.bin
The logic of the macro is totally opposite of what it should be. I do recall sending a corrected version of the script to someone a while back, it might be on the mailing lists archive. However, there is an option for the Dial() command to do exactly what you wish p: This option enables screening mode. This is basically Privacy mode without memory of how to handle the caller. It looks for the file sounds/priv-callerintros/${IF($[ "${CALLERID(num)}" != "" ]?${CALLERID(num)}:NOCALLERID_${EXTEN}${CUT(CHANNEL,/,1)}=${CUT(CHANNEL,/,2)})}.gsm and if it is not found, prompts the caller to say his name. It then rings the called party and plays sounds/priv-callpending, sounds/priv-callerintros/<see-above>, and sounds/screen-callee-options. If the called party enters 1, the call is accepted, 2, the DIAL command exits with ${DIALSTATUS} set to NOANSWER, 3, set to TORTURE and 4, set to DONTCALL. If no valid entry is made, the DIAL command exits with ${DIALSTATUS} set to ANSWER. The check for pre-existence of the name recording may not be what you want. For example, everyone from the same number is not necessarily the same person, especially if the number is OUTOFAREA, but if the file is there, no new name will be recorded. Since the files are never removed, you may wish to remove them with a System(rm /var/lib/asterisk/sounds/priv-callerintros/${IF($[ "${CALLERID(num)}" != "" ]?${CALLERID(num)}:NOCALLERID_${EXTEN}${CUT(CHANNEL,/,1)}=${CUT(CHANNEL,/,2)})}.*) right before the Dial command and clean up old ones with a cron job. On 4/1/07, Andy Hester <ahester@architel.com> wrote:> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com on behalf of Philipp Kempgen > Sent: Sun 4/1/2007 4:02 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] [MACRO-SCREEN] and MACRO_RESULT > > Andy Hester wrote: > > > exten => s,n,Set(TIMEOUT(response=10)) > > Should be > exten => s,n,Set(TIMEOUT(response)=10) > > > Regards, > Philipp > ------------------------------ > > Thanks Philipp, > > I fixed this, but I still have the problem that the call is connected regardless... > > -Andy > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >
Andrew Joakimsen wrote:> The logic of the macro is totally opposite of what it should be. I do > recall sending a corrected version of the script to someone a while > back, it might be on the mailing lists archive. > > However, there is an option for the Dial() command to do exactly what you wish > > p: This option enables screening mode. This is basically Privacy modeThanks for the response - I missed that Dial option... Couple of questions on this: 1. I do not want to screen based on caller, instead I need to play the same message to a list of potential call recipients and allow each recipient to decide whether or not to accept the call based on whether or not they are available (for work for example). I understand that this option checks for a file. I will be transferring a call to this call coverage. How do I make sure that all the calls look for the same recording to play to the call screeners? 2. Does anyone have any dial plan examples of this type of set up? Thanks, -- Andy Hester Network Engineer Architel -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 3397 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070402/00837a78/attachment.bin
I have created this before. I have to dig up the dial plan. The way I created it is it would call user1. User1 had the option to take the call, pass it to the next user or send it to VM. If he passed it to the next user, User2 had the same options as user1 and it flows down the list. Also every user has the option to opt in or out to receive calls or to have them just passed up (i.e. so that if user2 is busy then it should jump from user1 to user3). ----- Original Message ----- From: "Andy Hester" <ahester@architel.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Monday, April 02, 2007 8:15 PM Subject: RE: [asterisk-users] [MACRO-SCREEN] and MACRO_RESULT Andrew Joakimsen wrote:> The logic of the macro is totally opposite of what it should be. I do > recall sending a corrected version of the script to someone a while > back, it might be on the mailing lists archive. > > However, there is an option for the Dial() command to do exactly what you > wish > > p: This option enables screening mode. This is basically Privacy modeThanks for the response - I missed that Dial option... Couple of questions on this: 1. I do not want to screen based on caller, instead I need to play the same message to a list of potential call recipients and allow each recipient to decide whether or not to accept the call based on whether or not they are available (for work for example). I understand that this option checks for a file. I will be transferring a call to this call coverage. How do I make sure that all the calls look for the same recording to play to the call screeners? 2. Does anyone have any dial plan examples of this type of set up? Thanks, -- Andy Hester Network Engineer Architel --------------------------------------------------------------------------------> _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >