[asterisk-users] Re: Match a Numer - then continue with dialplan

Douglas Garstang dgarstang at oneeighty.com
Wed Dec 20 14:24:32 MST 2006


> -----Original Message-----
> From: Mike [mailto:mlists at bigrideau.com]
> Sent: Wednesday, December 20, 2006 2:18 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] Re: Match a Numer - then continue with
> dialplan
> 
> 
>  
> >> Perhaps I can get a clarification before proceeding further...
> >>
> >> In reading the thread the situation seems to be: Company A 
> >> users has a 
> >> user with extension/callerid XXX, he calls someone in company 
> >> B and you 
> >> want to set the callerid to company A's "main number" 
> rather than the 
> >> userr's default callerid?
> >>
> >> Is this correct?
> >>     
> >
> > Mike,
> >
> > Exactamundo.
> >
> > Doug.
> Ok.
> 
> How about:
> 
> ;outgoing context for company A
> [companyA]
> 
> ;Various include statements
> include => foo
> .
> .
> .
> ;Handle calls from A -> B
> ;Here BBBBXXXX will match company B numbers
> exten => BBBBXXXX, 1, Set(CALLERID=CompanyAMain)
> exten => BBBBXXXX, 1, Dial(${EXTEN}
> 
> You can do the inverse for companyB, or you could l have a 
> single macro 
> that deals with calls to/from each company and decides what 
> do to based 
> on the callerid making the call.
> 
> Mike.

Mike, this is a hosted IPT solution. There's potentially going to be hundreds (we hope) of companies hosted and configured on this box. I'd have to write static code to compare every number in every company to every number in every other company, and that's just not feesible.

Doug.


More information about the asterisk-users mailing list