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

Randy Bush randy at psg.com
Tue Sep 28 23:46:34 MST 2004


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




More information about the asterisk-users mailing list