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: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of John F. Baird Sent: Monday, March 29, 2004 5:34 AM To: asterisk-users@lists.digium.com 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 xxxxx to be routed to a particular extension, those from yyyyyy 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 Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
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: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Andy Powell Sent: Monday, March 29, 2004 7:16 AM To: asterisk-users@lists.digium.com 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 notbeen>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 xxxxx to be routed to a particular extension, those from yyyyyy >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 >Asterisk-Users@lists.digium.com >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 Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
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=4139999999 || 4139999999 || 6179999999 ;the 9's are real numbers in mine GIRLFAM=4159999999 ;the || = or GIRLWORK=65099999XX || 415999999X ;the 9's should be real again, X's are wild BROTHERWORK=4159999XXX CELL=14159999999 [macro-callfwd] exten => s,1,SetCallerID(${FWDCID}) ;this no workey yet exten => s,2,SetCIDName(${FOO}}) exten => s,3,Dial(IAX2/MynufonName@NuFone/${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/MynufoneName@NuFone/${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