RE: [Asterisk-Users] Call routing based upon callerID
Hello, There is an agi script for this, but I use goto's in the extensions.conf. Its not terribly efficient, but it gets the job done. I tried the blacklist but it only payed attention to the callerid. The number was completely ignored. I could only put in one WIRELESS CALLER, and there are a lot.. so I googled, irc'd and moved on... [globals] MYFAMILY=413999 || 413999 || 617999;the 9's are real numbers in mine GIRLFAM=415999 ;the || = or GIRLWORK=6509XX || 41599X ;the 9's should be real again, X's are wild BROTHERWORK=415XXX CELL=1415999 [macro-callfwd] exten = s,1,SetCallerID(${FWDCID});this no workey yet exten = s,2,SetCIDName(${FOO}}) exten = s,3,Dial(IAX2/[EMAIL PROTECTED]/${ARG1},8,tr) ;call me exten = s,4,Hangup [incoming] exten = s,1,Wait(0) exten = s,2,GotoIf($[${CALLERIDNUM} = ${FOO}]?9:3) ;necessary exten = s,3,GotoIf($[${CALLERIDNUM} = ${TESTVAR}]?103:4) ; test variable exten = s,4,GotoIf($[${CALLERIDNUM} = ${MYFRIENDS}]?103:5) exten = s,5,GotoIf($[${CALLERIDNUM} = ${MYFAMILY}]?103:6) exten = s,6,GotoIf($[${CALLERIDNUM} = ${GIRLFAM}]?103:7) exten = s,7,GotoIf($[${CALLERIDNUM} = ${BROTHERWORK}]?103:8) exten = s,8,GotoIf($[${CALLERIDNUM} = ${GIRLWORK}]?103:9) exten = s,9,Dial(Zap/g2,20,tr) ;either I don't know the caller, or its a business call exten = s,10,Macro(callfwd,${CELL},10,tr) ;one fxo so forward them to cell across the net exten = s,11,Answer exten = s,12,Playback(business/showmemoney) ; custom voicemail exten = s,13,VoiceMail2(s494) exten = s,14,Hangup exten = s,103,Dial(Zap/g2,20,tr) ; I should use a distinctive ring exten = s,104,Dial(IAX2/[EMAIL PROTECTED]/${CELL},10,tr) ; different syntax than the macro exten = s,105,Answer ; same outcome as the macro exten = s,106,Playback(personal/ola) exten = s,107,Voicemail2(s344) exten = s,108,Hangup Hope I helped, It took me a while. Adrian ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Call routing based upon callerID
Well, it is what he asked for, perhaps it was because I didn't do all of it for him, since I wanted him to learn rather than just copy... Let me explain: John : The scenario is that I want all calls originating from number x to be routed to a particular extension exten = s/12345678,1,congestion This means that any call with callerid of 12345678 will execute the congestion application. The application at the end can be anything at all, a Goto, a dial whatever... John: those from yy to another exten = s/24681012,1,Dial(SIP/phone2) the same as above but for 24681012 and that it run the dial application.. John: and anything else to a third. exten = s,1,Dial(SIP/phone1,30) neither of the above 2 were met, (no callerid or callerid not matching) so dial a different phone... If I've suddenly become unable to understand English then let me knowif not then hopefully this explains how to use the feature... Andy On 29/03/2004 at 20:42 Matthew B Marlowe wrote: I don't think this is what he was trying to do - And if it was, well then I'm trying to do something else. :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Powell Sent: Monday, March 29, 2004 7:16 AM To: [EMAIL PROTECTED] Subject: Re: [Asterisk-Users] Call routing based upon callerID John, This is referenced as the anti ex-girlfriend feature... example: exten = s/12345678,1,congestion exten = s/24681012,1,Dial(SIP/phone2) exten = s,1,Dial(SIP/phone1,30) also check page 31 of the handbook... hth Andy *** REPLY SEPARATOR *** On 29/03/2004 at 20:34 John F. Baird wrote: Hi, I've search and though I've found a few references I have not been able to find any concrete examples of * routing a call based upon the caller ID. The scenario is that I want all calls originating from number x to be routed to a particular extension, those from yy to another and anything else to a third. Can someone please provide a reference to samples or tell me if it cannot be done easily? Thanks, John ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Call routing based upon callerID
Thanks to all those who replied. The anti ex-girlfriend facility seems to be doing just what I was after. Maybe I just didn't have enough ex-girlfriends; or maybe just not enough that turned into stalkers. Regards, John ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Call routing based upon callerID
On Tuesday 30 March 2004 06:25, John F. Baird wrote: Thanks to all those who replied. The anti ex-girlfriend facility seems to be doing just what I was after. Maybe I just didn't have enough ex-girlfriends; or maybe just not enough that turned into stalkers. The anti-ex-girlfriend facility is actually more humorous than the example provided: the original usage was to forward the call to the ex-gf's cell when the home number called and to the home number when the cell number called. -Tilghman ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Call routing based upon callerID
There are specific examples of call routing based on CallerID in the handbook. You can read the handbook at this URL: http://www.digium.com/handbook-draft.pdf. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John F. Baird Sent: Monday, March 29, 2004 4:34 AM To: [EMAIL PROTECTED] Subject: [Asterisk-Users] Call routing based upon callerID Hi, I've search and though I've found a few references I have not been able to find any concrete examples of * routing a call based upon the caller ID. The scenario is that I want all calls originating from number x to be routed to a particular extension, those from yy to another and anything else to a third. Can someone please provide a reference to samples or tell me if it cannot be done easily? Thanks, John ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.645 / Virus Database: 413 - Release Date: 3/28/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.645 / Virus Database: 413 - Release Date: 3/28/2004 ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Call routing based upon callerID
John, This is referenced as the anti ex-girlfriend feature... example: exten = s/12345678,1,congestion exten = s/24681012,1,Dial(SIP/phone2) exten = s,1,Dial(SIP/phone1,30) also check page 31 of the handbook... hth Andy *** REPLY SEPARATOR *** On 29/03/2004 at 20:34 John F. Baird wrote: Hi, I've search and though I've found a few references I have not been able to find any concrete examples of * routing a call based upon the caller ID. The scenario is that I want all calls originating from number x to be routed to a particular extension, those from yy to another and anything else to a third. Can someone please provide a reference to samples or tell me if it cannot be done easily? Thanks, John ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Call routing based upon callerID
John, It can be done. I have not successfully done it yet though, although I have not researched it too much I would like to do it as well so if you find any information on it and get it working. Let me know. :) I know for a fact * does support it though. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John F. Baird Sent: Monday, March 29, 2004 5:34 AM To: [EMAIL PROTECTED] Subject: [Asterisk-Users] Call routing based upon callerID Hi, I've search and though I've found a few references I have not been able to find any concrete examples of * routing a call based upon the caller ID. The scenario is that I want all calls originating from number x to be routed to a particular extension, those from yy to another and anything else to a third. Can someone please provide a reference to samples or tell me if it cannot be done easily? Thanks, John ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Call routing based upon callerID
I don't think this is what he was trying to do - And if it was, well then I'm trying to do something else. :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Powell Sent: Monday, March 29, 2004 7:16 AM To: [EMAIL PROTECTED] Subject: Re: [Asterisk-Users] Call routing based upon callerID John, This is referenced as the anti ex-girlfriend feature... example: exten = s/12345678,1,congestion exten = s/24681012,1,Dial(SIP/phone2) exten = s,1,Dial(SIP/phone1,30) also check page 31 of the handbook... hth Andy *** REPLY SEPARATOR *** On 29/03/2004 at 20:34 John F. Baird wrote: Hi, I've search and though I've found a few references I have not been able to find any concrete examples of * routing a call based upon the caller ID. The scenario is that I want all calls originating from number x to be routed to a particular extension, those from yy to another and anything else to a third. Can someone please provide a reference to samples or tell me if it cannot be done easily? Thanks, John ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users