[Asterisk-Users] 1 extension entry for multiple purposes?

Adam Goryachev mailinglists at websitemanagers.com.au
Tue Sep 21 07:41:34 MST 2004


On Tue, 2004-09-21 at 23:49, Matthew Boehm wrote:
> Not to flame a respond, but I only count 13 lines, not 200.

That is 13 lines that *I* quoted from your email, you quoted a lot more
from the previous email (the entire email in fact)

> Anyway, what you posted is exactly what I am trying to prevent.
> Do you see how you had to put 2 SetCIDNum entries for 2 seperate
> dial-out numbers? Why can I not make 1 SetCIDNum entry for all
> outgoing numbers below it like I tried to do with the 's' extension?

No, I put 2 setcidnum entries, one for each destination prefix...

> All 200 of our extensions need to be seen to the outside world as the
> same number (212-433-3344) but internally need to be seen as their
> 4 digit extension which has no outside world mapping (ie: no direct
> number to extension).
> 
> Is it possible to have 1 SetCIDNum line for all outgoing calls?
> >  exten => _9212XXXXXXX,1,SetCIDNum(212-433-3344)
> >  exten => _9212XXXXXXX,2,Dial(SIP/${EXTEN}@<router IP>,15,tr)
> >  exten => _91XXXXXXXXXX,1,SetCIDNum(212-433-3344)
> >  exten => _91XXXXXXXXXX,2,Dial(SIP/${EXTEN}@<router IP>,15,tr))

Hmmm, thinking... perhaps something like this:
exten => _9.,1,SetCIDNum(212-433-3344)
exten => _9.,2,Dial(SIP/${EXTEN}@<router IP>,15,tr)

The only advantage to the previous config is that you don't need to wait
DigitTimeout or whatever, for the dial to complete....

Maybe this would work as well:
exten => _9,1,SetCIDNum(2124333344)
exten => _9,2,DISA(something??)


There are probably many other ways to accomplish this, I'm sure there
should be a simple method using a macro, and different contexts, but I
just can't think properly at the moment, (it's past my bedtime)...

PS, also, consider that finding the solution to your request might cost
you more than simply using the solution you already have. Though you
probably should use a variable instead of hard-coding the phone number
in multiple places... 

Regards,
Adam





More information about the asterisk-users mailing list