Re: Anti-Ex Girl Friend logic (was Re: [Asterisk-Users] Set context based on CID...)
I do it through AGI, I send the call to an external perl script, check the called-from-id against a mysql database, then send the call back to a context based on a ruleset I use, call-approved/call-not-approved/no digits received. Each context having a different voice message, so that the caller will know the problem, it works very well. Regards MIKE Blatantly stolen from Mark's presentation: exten = 600/2565551212,1,Congestion exten = 600,1,Dial(Zap/9,15) exten = 600,2,Voicemail(u600) exten = 600,102,Voicemail(b600) If the Caller*ID matches the ex-girlfriend (2565551212), provide immediate congestion tone. Otherwise try dialing on Zap/9 for up to 15 seconds. If there is no answer send them to voicemail, preceeded by unavailable message. If the interface is busy, send them to voicemail with a busy message. Jeremy McNamara Matt McIntyre wrote: I was wondering if someone might be able to offer a suggestion to me about how I might go about dropping a caller into a context specific to their CID. For example, I would like to be able to dial Asterisk from a specific number (a mobile phone) and have it drop me into a context other then the one that normal callers receive that has more options tailored to things I might want to do. I assume that answer can somehow be used to do this but I thought I might ask the experts and see what they might have to say. Thanks in advance, (You guys are great) Matt ^ ! Matt McIntyre (KF4FGZ) ! Certified Novell Administrator ! (336) 334-1134 (Campus telephone) ! (336) 215-7199 (Mobile telephone) - Please note the change ! (336) 334-1134 (Facsimile) ! E-MAIL: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ! AIM: MixMANJaVa ! ICQ: 11956085 ^ ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Set context based on CID...
I was wondering if someone might be able to offer a suggestion to me about how I might go about dropping a caller into a context specific to their CID. For example, I would like to be able to dial Asterisk from a specific number (a mobile phone) and have it drop me into a context other then the one that normal callers receive that has more options tailored to things I might want to do. I assume that answer can somehow be used to do this but I thought I might ask the experts and see what they might have to say. Thanks in advance, (You guys are great) Matt ^ ! Matt McIntyre (KF4FGZ) ! Certified Novell Administrator ! (336) 334-1134 (Campus telephone) ! (336)215-7199 (Mobile telephone) - Please note the change ! (336) 334-1134 (Facsimile) ! E-MAIL: [EMAIL PROTECTED] ! AIM: MixMANJaVa ! ICQ: 11956085 ^
Re: [Asterisk-Users] Set context based on CID...
[incoming] exten = _X.,1,DBGet(NEWCONTEXT=context/${CALLERIDNUM}) exten = _X.,2,Goto(${NEWCONTEXT},${EXTEN},1) exten = _X.,102,Goto(allother,${EXTEN},1) Martin On Fri, 26 Sep 2003, Matt McIntyre wrote: I was wondering if someone might be able to offer a suggestion to me about how I might go about dropping a caller into a context specific to their CID. For example, I would like to be able to dial Asterisk from a specific number (a mobile phone) and have it drop me into a context other then the one that normal callers receive that has more options tailored to things I might want to do. I assume that answer can somehow be used to do this but I thought I might ask the experts and see what they might have to say. Thanks in advance, (You guys are great) Matt ^ ! Matt McIntyre (KF4FGZ) ! Certified Novell Administrator ! (336) 334-1134 (Campus telephone) ! (336) 215-7199 (Mobile telephone) - Please note the change ! (336) 334-1134 (Facsimile) ! E-MAIL: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] ! AIM: MixMANJaVa ! ICQ: 11956085 ^ ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
Anti-Ex Girl Friend logic (was Re: [Asterisk-Users] Set context based on CID...)
Blatantly stolen from Mark's presentation: exten = 600/2565551212,1,Congestion exten = 600,1,Dial(Zap/9,15) exten = 600,2,Voicemail(u600) exten = 600,102,Voicemail(b600) If the Caller*ID matches the ex-girlfriend (2565551212), provide immediate congestion tone. Otherwise try dialing on Zap/9 for up to 15 seconds. If there is no answer send them to voicemail, preceeded by unavailable message. If the interface is busy, send them to voicemail with a busy message. Jeremy McNamara Matt McIntyre wrote: I was wondering if someone might be able to offer a suggestion to me about how I might go about dropping a caller into a context specific to their CID. For example, I would like to be able to dial Asterisk from a specific number (a mobile phone) and have it drop me into a context other then the one that normal callers receive that has more options tailored to things I might want to do. I assume that answer can somehow be used to do this but I thought I might ask the experts and see what they might have to say. Thanks in advance, (You guys are great) Matt ^ ! Matt McIntyre (KF4FGZ) ! Certified Novell Administrator ! (336) 334-1134 (Campus telephone) ! (336) 215-7199 (Mobile telephone) - Please note the change ! (336) 334-1134 (Facsimile) ! E-MAIL: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ! AIM: MixMANJaVa ! ICQ: 11956085 ^ ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users