[Asterisk-Users] IPComms Setup

Kevin Walsh kevin at cursor.biz
Wed Oct 5 12:42:28 MST 2005


Crystal Stream, Incorporated [crystalstreaminc at yahoo.com] 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
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/




More information about the asterisk-users mailing list