Douglas Garstang
2006-Dec-20 14:54 UTC
[asterisk-users] Re: Match a Numer - then continue with, dialplan
> -----Original Message----- > From: Tony Mountifield [mailto:tony@softins.clara.co.uk] > Sent: Wednesday, December 20, 2006 2:41 PM > To: asterisk-users@lists.digium.com > Subject: [asterisk-users] Re: Match a Numer - then continue with, > dialplan > > > In article > <645FEC31A18FE54A8721500CDD55A7B6035D0C6C@mail.oneeighty.com>, > Douglas Garstang <dgarstang@oneeighty.com> wrote: > > > > Let's try this a different way. Let's say you have two > companies. When someone calls a > > number in their own company, we use their INTERNAL caller > id. When they call someone in > > another company, we want to send their EXTERNAL caller id. > How would you do this? > > Firstly, in the setup you are envisaging, how do you distinguish which > company the caller is calling from? Their extensions number? > The context > at which they enter the dialplan? Or something else?Good questions, all of them. Unfortnately, I don't have answers to them. I wanted to take our 3000 line python script, which we'd used due to inadequacies of the dialplan, and throw the horrible nasty thing out the window.> > Secondly, how do you distinguish between destination numbers > in one company > from those in another? Number range? Context?My brain hurts.
Michael Collins
2006-Dec-20 15:22 UTC
[asterisk-users] Re: Match a Numer - then continue with, dialplan
> > Firstly, in the setup you are envisaging, how do you distinguishwhich> > company the caller is calling from? Their extensions number? > > The context > > at which they enter the dialplan? Or something else? > > Good questions, all of them. Unfortnately, I don't have answers tothem. I> wanted to take our 3000 line python script, which we'd used due to > inadequacies of the dialplan, and throw the horrible nasty thing outthe> window. > > > > > Secondly, how do you distinguish between destination numbers > > in one company > > from those in another? Number range? Context? >Tony, Thank you for asking the appropriate questions! I think you've gotten to the crux of the matter. Doug, take some Advil and read the rest of this post tomorrow! :) At my work, we have a saying that we use when trying to figure out how to overcome some technical challenge. It helps us to focus on the solution, not the problem. We simply ask, "What is Utopia?" Then, in plain English, we describe the perfect world. (Choose the language of your locale for this exercise.) Doug, could we try this exercise? Could you collate the bits and pieces of your posts in this thread and distill them into a point-by-point description of your Utopia? Use as few technical terms and Asterisk-specific references as possible. A good starting point is the list of to-do's that you do for each call: Do they have voicemail? Do they have feature ABC? Do they have feature XYZ? After listing all of that, then give us the description of what needs to happen next, the part about deciding which caller ID info to send. Pretend like you're explaining it to a bunch of idiots who understand only small words and short sentences. :) My gut tells me that the solution lies in the big picture, not the details. The more eyes that see the big picture the better. Thanks for your patience! -MC
Tony Mountifield
2006-Dec-20 16:07 UTC
[asterisk-users] Re: Match a Numer - then continue with, dialplan
In article <645FEC31A18FE54A8721500CDD55A7B6035D0C79@mail.oneeighty.com>, Douglas Garstang <dgarstang@oneeighty.com> wrote:> From: Tony Mountifield [mailto:tony@softins.clara.co.uk] > > Firstly, in the setup you are envisaging, how do you distinguish which > > company the caller is calling from? Their extensions number? > > The context > > at which they enter the dialplan? Or something else? > > Good questions, all of them. Unfortnately, I don't have answers to them. I wanted to take > our 3000 line python script, which we'd used due to inadequacies of the dialplan, and throw > the horrible nasty thing out the window.Well, OK. But how did IT know whether a source extension or a destination number belonged to company A, B or C?> > Secondly, how do you distinguish between destination numbers > > in one company > > from those in another? Number range? Context? > > My brain hurts.Hmmm. If you're trying to make logic decisions, or we're trying to suggest possibilities, you/we need to know on what information the decisions are to be based! Cheers Tony. -- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org