Crystal Stream, Incorporated [EMAIL PROTECTED] wrote:
> this isn't working
> [IPComms-in]
> exten => s,1,Noop(${DATETIME} ${CALLERID})
> exten => s,2,SetCallerID(${CALLERID})
> exten => s,3,Answer
> exten => s,4,Goto(main-menu,s,2)
> exten => s,5,Hangup
>
> What I have is a block of 20 DIDs and I want to accept calls from all of
> them.
>
> It would be way to freaking complicated to do
> exten => 2027575120,1,Noop( ....
> .
> exten => 2027575121,1,Noop( ....
> et cetera
>
> How do I get this done?
>
You could wildcard your DDIs, replacing 20, 21 etc. with [23][0-9], or
whatever. Alternatively, you could create a macro that would look
a lot like the body of your [IPComms-in] context, and then call that
from 20 separate DDI exten lines. I'd just go with the wildcard.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ [EMAIL PROTECTED]
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users