Nate Carlson
2004-Sep-21 10:05 UTC
[Asterisk-Users] Anti Ex-Girlfriend feature for entire area codes?
Hey all, Someone's posted one of my 800#'s on a poster in California for free concert tickets, so I'm getting calls from California AC's at all times of the day asking for tickets. I'm just using the 800# for friends and family, and don't know anyone in these area codes, so I'd like to just give these callers either congestion or a prerecorded message. Works fine if I do: exten => 8005551212/4085551212,1,Congestion exten => 8005551212/4085551212,2,Hangup() But if I try: exten => 8005551212/408XXXXXXX,1,Congestion exten => 8005551212/408XXXXXXX,2,Hangup() It doesn't catch it. Is there any way to do something similar and allow wildcards? Thanks! ------------------------------------------------------------------------ | nate carlson | natecars@natecarlson.com | http://www.natecarlson.com | | depriving some poor village of its idiot since 1981 | ------------------------------------------------------------------------
Andrew Thompson
2004-Sep-21 10:13 UTC
[Asterisk-Users] Anti Ex-Girlfriend feature for entire area codes?
Nate Carlson wrote:> But if I try: > > exten => 8005551212/408XXXXXXX,1,Congestion > exten => 8005551212/408XXXXXXX,2,Hangup() > > It doesn't catch it. Is there any way to do something similar and allow > wildcards? Thanks! >See: http://www.voip-info.org/tiki-index.php?page=Asterisk%20config%20extensions.conf Look a few blocks into the examples section, you need an underscore in there. When I saw this message, I realized that I goofed in my example for the .call file earlier today. -- Andrew Thompson http://aktzero.com/
Rob Fugina
2004-Sep-21 10:13 UTC
[Asterisk-Users] Anti Ex-Girlfriend feature for entire area codes?
On Tue, 21 Sep 2004 12:05:29 -0500 (CDT), Nate Carlson <natecars@natecarlson.com> wrote:> Hey all, > > Someone's posted one of my 800#'s on a poster in California for free > concert tickets, so I'm getting calls from California AC's at all times of > the day asking for tickets. I'm just using the 800# for friends and > family, and don't know anyone in these area codes, so I'd like to just > give these callers either congestion or a prerecorded message. > > Works fine if I do: > > exten => 8005551212/4085551212,1,Congestion > exten => 8005551212/4085551212,2,Hangup() > > But if I try: > > exten => 8005551212/408XXXXXXX,1,Congestion > exten => 8005551212/408XXXXXXX,2,Hangup() > > It doesn't catch it. Is there any way to do something similar and allow > wildcards? Thanks!A pattern should start with an underscore, right?