[Asterisk-Users] too many ex-(boy|girl)friends

Michel Belleau (malaiwah.com) michel.belleau at malaiwah.com
Wed Sep 29 04:48:10 MST 2004


Hey Randy,

You could lookup in a database to see if the flag is checked and
Goto(hell,s,1) afterwards.

Maybe like this:

exten => s,5,DBGet(blacklisted=blacklisted/${CALLERIDNUM})
exten => s,6,GotoIf(${blacklisted} = "1"?hell|1)

You just have to put every blacklisted number in the Asterisk database as it
would be seen from the callerid number.

I this this solution is better than changing your extensions.conf every time
you change (boy|girl)friend.

Michel

-----Message d'origine-----
De : asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] De la part de George
Gardiner
Envoyé : 29 septembre, 2004 05:13
À : Asterisk Users Mailing List - Non-Commercial Discussion
Objet : Re: [Asterisk-Users] too many ex-(boy|girl)friends


I'm not sure if you intended this but please note that your use of "poofs"
(a derogatory term for gays according to the dictionary) as part of your
GoTo(hell..) script might be taken by some (including me) as mildly
offensive.  I'm sure though that it was unintentional.

G.

On Tue, 28 Sep 2004 23:46:34 -0700, Randy Bush wrote:
> instead of
>
> exten => 42/1,1,GoTo(hell,s,1)
> exten => 42/42,1,GoTo(hell,s,1)
> exten => 42/666,1,GoTo(hell,s,1)
> exten => 42/69,1,GoTo(hell,s,1)
>
> i would like to do something like
>
> exten => 42/(1|42|666|69),1,GoTo(hell,s,1)
>
> or better use a variable
>
> [global]
> poofs => (1|42|666|69)
>
> [foo]
> exten => 42/${poofs},1,GoTo(hell,s,1)
>
> i keep circling the wiki and can not find the needed clue on how to do 
> this in a callerid option.  clues appreciated.
>
> randy
>
> _______________________________________________ Asterisk-Users mailing 
> list Asterisk-Users at 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 at 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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.769 / Virus Database: 516 - Release Date: 2004-09-24
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.769 / Virus Database: 516 - Release Date: 2004-09-24
 




More information about the asterisk-users mailing list