Has anyone ever tried to run multiple instances of Asterisk on a single system, running each with a different username, and each in a separate base directory? Something like /home/pbx/business-1, home/pbx/business-2 etc? Did it work? I assume for every service that Asterisk runs, on each instance, you'd have to use a different port numbers, which may get confusing. Each businesses phones would have to be configred with different SIP ports then too. What about processes? I notice that Asterisk runs about 26 processes (or are they threads?) for a single instance. Doug.
You might be able to use virtual NICs to eliminate the problem with "non-standard" ports for a company's SIP phones. Or real NICs using a couple of multi-homed cards. I haven't tried it, though. On 8/16/06, Douglas Garstang <dgarstang@oneeighty.com> wrote:> > Has anyone ever tried to run multiple instances of Asterisk on a single > system, running each with a different username, and each in a separate base > directory? Something like /home/pbx/business-1, home/pbx/business-2 etc? > > Did it work? I assume for every service that Asterisk runs, on each > instance, you'd have to use a different port numbers, which may get > confusing. Each businesses phones would have to be configred with different > SIP ports then too. > > What about processes? I notice that Asterisk runs about 26 processes (or > are they threads?) for a single instance. > > Doug. > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060816/4de602ec/attachment.htm
On 8/16/06, Douglas Garstang <dgarstang@oneeighty.com> wrote:> > Has anyone ever tried to run multiple instances of Asterisk on a single > system, running each with a different username, and each in a separate base > directory? Something like /home/pbx/business-1, home/pbx/business-2 etc? > > Did it work? I assume for every service that Asterisk runs, on each > instance, you'd have to use a different port numbers, which may get > confusing. Each businesses phones would have to be configred with different > SIP ports then too. > > What about processes? I notice that Asterisk runs about 26 processes (or > are they threads?) for a single instance. > > Doug. >You can put Asterisk to hear in the same default port, but you must use another IP address, theoretically. -- Ralph Liebessohn ICQ: 74835911 Skype: liebessohn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060816/0b09717c/attachment.htm
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Douglas Garstang wrote:> Has anyone ever tried to run multiple instances of Asterisk on a single system, running each with a different username, and each in a separate base directory? Something like /home/pbx/business-1, home/pbx/business-2 etc? > > Did it work? I assume for every service that Asterisk runs, on each instance, you'd have to use a different port numbers, which may get confusing. Each businesses phones would have to be configred with different SIP ports then too. > > What about processes? I notice that Asterisk runs about 26 processes (or are they threads?) for a single instance.Why not just use different contexts for each company? - -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://freevoip.gedameurope.com (Free Asterisk Voip Community) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE416ZS6d5vy0jeVcRAkkJAJ9ePGEV4H5GNOljhx+syWb42IdoRACfcSet 6dTJAdgseqkUk63mGTOONik=2M0q -----END PGP SIGNATURE-----
Douglas Garstang wrote:> Has anyone ever tried to run multiple instances of Asterisk on a single system, running each with a different username, and each in a separate base directory? Something like /home/pbx/business-1, home/pbx/business-2 etc? > > Did it work? I assume for every service that Asterisk runs, on each instance, you'd have to use a different port numbers, which may get confusing. Each businesses phones would have to be configred with different SIP ports then too. > > What about processes? I notice that Asterisk runs about 26 processes (or are they threads?) for a single instance.Why do you need multiple instances? Just setup your Asterisk configuration to separate the various 'customers' or 'tenants'. CAKE Jeremy McNamara
Well, we're talking about several dozen, maybe 100, companies, per Asterisk box here. -----Original Message----- From: David Freeman [mailto:sugardave@gmail.com] Sent: Wednesday, August 16, 2006 11:36 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Asterisk 'Hosting' You might be able to use virtual NICs to eliminate the problem with "non-standard" ports for a company's SIP phones. Or real NICs using a couple of multi-homed cards. I haven't tried it, though. On 8/16/06, Douglas Garstang < dgarstang@oneeighty.com> wrote: Has anyone ever tried to run multiple instances of Asterisk on a single system, running each with a different username, and each in a separate base directory? Something like /home/pbx/business-1, home/pbx/business-2 etc? Did it work? I assume for every service that Asterisk runs, on each instance, you'd have to use a different port numbers, which may get confusing. Each businesses phones would have to be configred with different SIP ports then too. What about processes? I notice that Asterisk runs about 26 processes (or are they threads?) for a single instance. Doug. _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users <http://lists.digium.com/mailman/listinfo/asterisk-users> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060816/63accf2e/attachment.htm
> -----Original Message----- > From: Matt Riddell (NZ) [mailto:matt.riddell@sineapps.com] > Sent: Wednesday, August 16, 2006 12:06 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Asterisk 'Hosting' > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Douglas Garstang wrote: > > Has anyone ever tried to run multiple instances of Asterisk > on a single system, running each with a different username, > and each in a separate base directory? Something like > /home/pbx/business-1, home/pbx/business-2 etc? > > > > Did it work? I assume for every service that Asterisk runs, > on each instance, you'd have to use a different port numbers, > which may get confusing. Each businesses phones would have to > be configred with different SIP ports then too. > > > > What about processes? I notice that Asterisk runs about 26 > processes (or are they threads?) for a single instance. > > Why not just use different contexts for each company?Because Asterisk wasn't designed with carrier class features in mind. It was designed for a single enterprise. The dialplan, and config files, start to get very very complicated after you add more than a few companies. Combine that with having to have multiple extensions for a single function (our Queues are accessed by a regular extension but then have to dial another 'virtual' extension so that DUNDi can work out the 'primary' server for a queue) and so on. Anyway, it's becoming unmanagable. Doug.
> -----Original Message----- > From: Jeremy McNamara [mailto:jj@nufone.net] > Sent: Wednesday, August 16, 2006 12:23 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Asterisk 'Hosting' > > > Douglas Garstang wrote: > > Has anyone ever tried to run multiple instances of Asterisk > on a single system, running each with a different username, > and each in a separate base directory? Something like > /home/pbx/business-1, home/pbx/business-2 etc? > > > > Did it work? I assume for every service that Asterisk runs, > on each instance, you'd have to use a different port numbers, > which may get confusing. Each businesses phones would have to > be configred with different SIP ports then too. > > > > What about processes? I notice that Asterisk runs about 26 > processes (or are they threads?) for a single instance. > > > > Why do you need multiple instances? Just setup your Asterisk > configuration to separate the various 'customers' or 'tenants'.It's obvious that Asterisk was designed more for the enterprise (ie a single company), rather than for the carrier (ie multiple companies). It's a bit hard to explain here, but even with more than a few companies, the config files and dial plan start to become horribly complex. Our first customer has 15 contexts (right now) in extensions.conf (we've broken each company into a separate files included from extensions.conf and sip.conf for some manageability). At several hundred companies, that's several thousand contexts. We have three Asterisk boxes, and can add more, but the config is (almost) idential between them for redundancy, and this means that each Asterisk box has to have a dialplan configured for all companies. Doug.
Use a virtual private asterisk system. You'll be happier if you did. http://www.telephreak.org/papers/vpa/> > Has anyone ever tried to run multiple instances of Asterisk > on a single system, running each with a different username, > and each in a separate base directory? Something like > /home/pbx/business-1, home/pbx/business-2 etc? > > > > Did it work? I assume for every service that Asterisk runs, > on each instance, you'd have to use a different port numbers, > which may get confusing. Each businesses phones would have to > be configred with different SIP ports then too. > > > > What about processes? I notice that Asterisk runs about 26 > processes (or are they threads?) for a single instance. > >It's obvious that Asterisk was designed more for the enterprise (ie a single company), rather than for the carrier (ie multiple companies). It's a bit hard to explain here, but even with more than a few companies, the config files and dial plan start to become horribly complex.
Greetings, has anyone ever set up Asterisk and Speakeasy VOIP? It uses a Motorola VT1005 - any luck with this? TIA -Mike
Brandon, Thanks. We're a liiiiitle past that stage of complexity. I'm just throwing the question out there because it's becoming obvious that trying to provision hundreds of customers on a cluster of Asterisk systems is going to be very hard to manage. -----Original Message----- From: Brandon Galbraith [mailto:brandon.galbraith@gmail.com] Sent: Wednesday, August 16, 2006 12:53 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Asterisk 'Hosting' Doug, I'd suggest using contexts, but then having two servers for redundancy also. That way, if one asterisk box goes down, you don't have 50-100 clients completely down. -brandon On 8/16/06, Douglas Garstang < dgarstang@oneeighty.com> wrote: Well, we're talking about several dozen, maybe 100, companies, per Asterisk box here. -----Original Message----- From: David Freeman [mailto: sugardave@gmail.com] Sent: Wednesday, August 16, 2006 11:36 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Asterisk 'Hosting' You might be able to use virtual NICs to eliminate the problem with "non-standard" ports for a company's SIP phones. Or real NICs using a couple of multi-homed cards. I haven't tried it, though. On 8/16/06, Douglas Garstang < dgarstang@oneeighty.com> wrote: Has anyone ever tried to run multiple instances of Asterisk on a single system, running each with a different username, and each in a separate base directory? Something like /home/pbx/business-1, home/pbx/business-2 etc? Did it work? I assume for every service that Asterisk runs, on each instance, you'd have to use a different port numbers, which may get confusing. Each businesses phones would have to be configred with different SIP ports then too. What about processes? I notice that Asterisk runs about 26 processes (or are they threads?) for a single instance. Doug. _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users <http://lists.digium.com/mailman/listinfo/asterisk-users> _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Brandon Galbraith Email: brandon.galbraith@gmail.com <mailto:brandon.galbraith@gmail.com> AIM: brandong00 Voice: 630.400.6992 "A true pirate starts drinking before the sun hits the yard-arm. Yarrrr. --thelost" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060816/987faf0a/attachment.htm
> -----Original Message----- > From: Matt Riddell (NZ) [mailto:matt.riddell@sineapps.com] > Sent: Wednesday, August 16, 2006 1:35 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Asterisk 'Hosting' > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Douglas Garstang wrote: > > > It's obvious that Asterisk was designed more for the > enterprise (ie a single company), rather than for the carrier > (ie multiple companies). It's a bit hard to explain here, but > even with more than a few companies, the config files and > dial plan start to become horribly complex. > > > > Our first customer has 15 contexts (right now) in > extensions.conf (we've broken each company into a separate > files included from extensions.conf and sip.conf for some > manageability). At several hundred companies, that's several > thousand contexts. We have three Asterisk boxes, and can add > more, but the config is (almost) idential between them for > redundancy, and this means that each Asterisk box has to have > a dialplan configured for all companies. > > And so you're thinking it would be better to run several hundred > Asterisk instances?! > > Good luck. > > I think your project would work a lot better if you worked like this: > > 1) Get requirements > 2) Map features and limitations of products > 3) Write PseudoCode > 4) Work out ways to load test your ideas > 5) Write real code > 6) Load test again with real code > > Hint: Layer your system so that each component is not doing too much > > Hint #2: Read: http://www.astricon.net/files/David_Zimmer_EUR06.pdfInteresting, but there's no meat. Do you know if they've actually implemented this yet, or are still designing it? This is essentially the same thing as we are doing (except I'm expected to do it all myself), except we aren't using realtime because it's not documented, and the asterisk dialplan language isn't advanced enough to deliver all the feature sets we need. We have a 2000+ line python script that handles all call routing logic.
You think 3 contexts, serving hundreds of companies is going to handle internal cid, external cid, cid override, pic codes, rate centers, incoming and outgoing black lists and white lists, findme/follow me with caller id based routing, transferring and forwarding between multiple hosts in a cluster.... and so on while ALSO letting customers maintain all this via a web interface? Even the MySQL dial plan command couldn't handle the findme/followme because it couldn't save the state of the query used to retrieve the next number from the findme/followme list and then perform further nested queries to do blacklist/white list, pic code lookups, rate center lookups on each number. We have several layers of organisationl units, and when person A calls person B, and both are in the same company, we use an internal cid. If person A and person B are in different companies, we use an external cid, and if the caller uses a star code, we use an external cid. We had to get the only Gold Rated MySQL consultants to help us design this damn thing. That's just a taste of the complexity. Now, let the customer manage all this via a web interface and THREE contexts in a flat file isn't quite going to handle it. I also find your assumption that I'm an idiot pretty offensive. Doug. -----Original Message----- From: Jeremy McNamara [mailto:jj@nufone.net] Sent: Wed 8/16/2006 5:32 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Cc: Subject: Re: [asterisk-users] Asterisk 'Hosting' Douglas Garstang wrote: We have a 2000+ line python script that handles all call routing logic. You expect that to scale? I do call routing in 3 contexts with ~maybe~ a dozen extension each - and we have many thousands of customers and more than hundreds of companies using our Asterisk systems as a hosted solution. I really think you need to totally re-think your operation - and no, I'm not going to explain it to you, so don't even ask. Jeremy McNamara _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Oh, and I see nufone caters to residential. We only cater to business customers, who's needs are a lot more demanding. And you know what, maybe it won't scale, but the native dial plan couldn't handle the requirements at all. If central management (ie web site) is a requirement, then you have to use a database. As I said in my earlier post, the MySQL dial plan command couldn't handle nested queries.We can't be pushing confg files down to Asterisk and doing multiple reloads several times a minute just because Joe Smith wanted to findme/followme to his cellphone after his office phone, while Mart Bloggs is wanting to hange her external caller id. We can upgrade the python agi script to a client-server based fast agi later on. Right now I'm the only person working on this stuff and I only have one pair of arms. Doug. -----Original Message----- From: Douglas Garstang Sent: Wed 8/16/2006 9:58 PM To: Asterisk Users Mailing List - Non-Commercial Discussion; Asterisk Users Mailing List - Non-Commercial Discussion Cc: Subject: RE: [asterisk-users] Asterisk 'Hosting' You think 3 contexts, serving hundreds of companies is going to handle internal cid, external cid, cid override, pic codes, rate centers, incoming and outgoing black lists and white lists, findme/follow me with caller id based routing, transferring and forwarding between multiple hosts in a cluster.... and so on while ALSO letting customers maintain all this via a web interface? Even the MySQL dial plan command couldn't handle the findme/followme because it couldn't save the state of the query used to retrieve the next number from the findme/followme list and then perform further nested queries to do blacklist/white list, pic code lookups, rate center lookups on each number. We have several layers of organisationl units, and when person A calls person B, and both are in the same company, we use an internal cid. If person A and person B are in different companies, we use an external cid, and if the caller uses a star code, we use an external cid. We had to get the only Gold Rated MySQL consultants to help us design this damn thing. That's just a taste of the complexity. Now, let the customer manage all this via a web interface and THREE contexts in a flat file isn't quite going to handle it. I also find your assumption that I'm an idiot pretty offensive. Doug. -----Original Message----- From: Jeremy McNamara [mailto:jj@nufone.net] Sent: Wed 8/16/2006 5:32 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Cc: Subject: Re: [asterisk-users] Asterisk 'Hosting' Douglas Garstang wrote: We have a 2000+ line python script that handles all call routing logic. You expect that to scale? I do call routing in 3 contexts with ~maybe~ a dozen extension each - and we have many thousands of customers and more than hundreds of companies using our Asterisk systems as a hosted solution. I really think you need to totally re-think your operation - and no, I'm not going to explain it to you, so don't even ask. Jeremy McNamara _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
> -----Original Message----- > From: Jeremy McNamara [mailto:jj@nufone.net] > Sent: Wednesday, August 16, 2006 11:47 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Asterisk 'Hosting' > > > Douglas Garstang wrote: > > Oh, and I see nufone caters to residential. We only cater > to business customers, who's needs are a lot more demanding. > > Apparently you haven't actually gone to our website which, since you > brought it up, will be re-launched on September 5th, 2006 with new > support for ENTERPRISE AND CARRIER SOLUTIONS - All Powered by > Asterisk.Apparently you can't read, because this is all I see. "On Tuesday, September 5th, 2006 at 8 AM Eastern, we will launch our exciting new website. Join our announcement list to learn about many of the new services and features you can expect from NuFone."> > We will also launch an official support team, which I am very glad to > say that I WILL NOT be a part of, because as most people here know, I > yell at stupid people.Good luck with supporting enterprise and carrier solutions with 3 contexts.
> -----Original Message----- > From: Jeremy McNamara [mailto:jj@nufone.net] > Sent: Thursday, August 17, 2006 12:29 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Asterisk 'Hosting' > > > Douglas Garstang wrote: > > Good luck with supporting enterprise and carrier solutions > with 3 contexts. > > > Mr. Troll, I don't need luck, because I am doing it already. > Perhaps > you can't comprehend the fact that NuFone is not the only > operation I am > involved with. > > Plus, don't forget about the thousands of hours or more that I have > billed out consulting others on their system design. > > > Go away.That's funny. I remember asking a question, and I remember you immediately attacking my intelligence, and now I'm suddenly a troll. I can comprehend that Nufone is not the operation you are involved with. However, it's the first time you've stated that, so if you think I should have known that already, then you've either a) lost touch with reality or b) think your some big shot and I should know who you are by name. I see you haven't addressed the specifics of my reply to you. Did you eat too much cheese yesterday?
> -----Original Message----- > From: Jeremy McNamara [mailto:jj@nufone.net] > Sent: Thursday, August 17, 2006 1:25 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Asterisk 'Hosting' > > > Douglas Garstang wrote: > > That's funny. I remember asking a question, and I remember > you immediately attacking my intelligence, and now I'm > suddenly a troll. > > > > I can comprehend that Nufone is not the operation you are > involved with. However, it's the first time you've stated > that, so if you think I should have known that already, then > you've either a) lost touch with reality or b) think your > some big shot and I should know who you are by name. > > > You made an obvious assumption by looking at my email > address, without > bothering to consider any other operations I may be involved > in or have > assisted in development and deployment. > > I could care less who you think I am, really and who knows, I > may have > no clue what reality is - But who really does? > > > > I see you haven't addressed the specifics of my reply to you. > > > I don't see any specific questions, only statements that prove you > haven't fully comprehended what you have gotten yourself into.What's not specific about this...? "handle internal cid, external cid, cid override, pic codes, rate centers, incoming and outgoing black lists and white lists, findme/follow me with caller id based routing, transferring and forwarding between multiple hosts in a cluster.... and so on while ALSO letting customers maintain all this via a web interface?"
> -----Original Message----- > From: Jeremy McNamara [mailto:jj@nufone.net] > Sent: Thursday, August 17, 2006 1:44 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Asterisk 'Hosting' > > > Douglas Garstang wrote: > > What's not specific about this...? > > "handle internal cid, external cid, cid override, pic > codes, rate centers, incoming and outgoing black lists and > white lists, findme/follow me with caller id based routing, > transferring and forwarding between multiple hosts in a cluster.... > > > > Again, it tells me you have not fully thought out exactly how each of > those functions fit within the realm of Asterisk.I spent 8+ hours a day, 5+ days per week for over 6 months thinking how these functions fit within the realm of Asterisk. At every single turn, after going down every single path, there where limitations that forced us to backtrack and evaluate a different approach. A script that could handle call routing, in conjection with MySQL and stored procedures was the only way to implement our requirements. The MySQL command had limitations, realtime was way too resource intensive, unreliable and undocumented and so on. Yep... i definitely haven't thought about this at all.> > Before you even bothered to learn basic asterisk > fundamentals, you have > went and reinvented the wheel for absolutely no reason. > > > > and so on while ALSO letting customers maintain all this > via a web interface?" > > > And the problem is? Our current members portal already does 90% of > everything you listed. When the new version comes out we will pick up > the remaining points and perhaps more. > > > Yet once again you have proven beyond any shadow of a doubt, > you didn't > bother to comprehend the power of Asterisk before > bastardizing it with > your ungodly huge python script.Yet again you have not addressed my statements that showed that the MySQL Dial plan command was not capable of nesting SQL queries, and therefore not capable of implementing findme/followme.
> -----Original Message----- > From: Douglas Garstang > Sent: Thursday, August 17, 2006 2:04 PM > To: 'Asterisk Users Mailing List - Non-Commercial Discussion' > Subject: RE: [asterisk-users] Asterisk 'Hosting' > > > > -----Original Message----- > > From: Jeremy McNamara [mailto:jj@nufone.net] > > Sent: Thursday, August 17, 2006 1:44 PM > > To: Asterisk Users Mailing List - Non-Commercial Discussion > > Subject: Re: [asterisk-users] Asterisk 'Hosting' > > > > > > Douglas Garstang wrote: > > > What's not specific about this...? > > > "handle internal cid, external cid, cid override, pic > > codes, rate centers, incoming and outgoing black lists and > > white lists, findme/follow me with caller id based routing, > > transferring and forwarding between multiple hosts in a cluster.... > > > > > > > > Again, it tells me you have not fully thought out exactly > how each of > > those functions fit within the realm of Asterisk. > > I spent 8+ hours a day, 5+ days per week for over 6 months > thinking how these functions fit within the realm of > Asterisk. At every single turn, after going down every single > path, there where limitations that forced us to backtrack and > evaluate a different approach. A script that could handle > call routing, in conjection with MySQL and stored procedures > was the only way to implement our requirements. The MySQL > command had limitations, realtime was way too resource > intensive, unreliable and undocumented and so on. Yep... i > definitely haven't thought about this at all.Oops. I almost forgot intra-organisational 4 digit extension dialling. Not just company, but organisational, where a company may have multiple organisational units. It might be possible to hack together a flat intra-business 4 digit extension dial lookup in the native dialplan, but trying to make it a multi-level organisation lookup would be pure hell... unless you farm the task out to a more advanced scripting langauge like python, perl whatever.
> -----Original Message----- > From: Andrew Kohlsmith [mailto:akohlsmith-asterisk@benshaw.com] > Sent: Thursday, August 17, 2006 2:12 PM > To: asterisk-users@lists.digium.com > Subject: Re: [asterisk-users] Asterisk 'Hosting' > > > On Thursday 17 August 2006 16:04, Douglas Garstang wrote: > > Yet again you have not addressed my statements that showed > that the MySQL > > Dial plan command was not capable of nesting SQL queries, > and therefore not > > capable of implementing findme/followme. > > Off the top of my head I am fairly certain that I have come > up with an AGI > which would implement findme/followme *without* nested SQL > queries, or even > stored procedures.Yes, that's what we have done. I assume your referring to a small, function specific agi script. We have it as one large script instead. Obviously if you make a dozen of more agi calls like that during the course of processing a single call, it's going to get slow, and the caller may notice the effect. We didn't/don't have the resources available to be writing a multi-threaded fast agi server right now to fix that. Yep... as Jeremy said, I sure haven't thought about this at all. Nope...
> -----Original Message----- > From: Douglas Garstang > Sent: Thursday, August 17, 2006 2:17 PM > To: 'Asterisk Users Mailing List - Non-Commercial Discussion' > Subject: RE: [asterisk-users] Asterisk 'Hosting' > > > > -----Original Message----- > > From: Douglas Garstang > > Sent: Thursday, August 17, 2006 2:04 PM > > To: 'Asterisk Users Mailing List - Non-Commercial Discussion' > > Subject: RE: [asterisk-users] Asterisk 'Hosting' > > > > > > > -----Original Message----- > > > From: Jeremy McNamara [mailto:jj@nufone.net] > > > Sent: Thursday, August 17, 2006 1:44 PM > > > To: Asterisk Users Mailing List - Non-Commercial Discussion > > > Subject: Re: [asterisk-users] Asterisk 'Hosting' > > > > > > > > > Douglas Garstang wrote: > > > > What's not specific about this...? > > > > "handle internal cid, external cid, cid override, pic > > > codes, rate centers, incoming and outgoing black lists and > > > white lists, findme/follow me with caller id based routing, > > > transferring and forwarding between multiple hosts in a > cluster.... > > > > > > > > > > > > Again, it tells me you have not fully thought out exactly > > how each of > > > those functions fit within the realm of Asterisk. > > > > I spent 8+ hours a day, 5+ days per week for over 6 months > > thinking how these functions fit within the realm of > > Asterisk. At every single turn, after going down every single > > path, there where limitations that forced us to backtrack and > > evaluate a different approach. A script that could handle > > call routing, in conjection with MySQL and stored procedures > > was the only way to implement our requirements. The MySQL > > command had limitations, realtime was way too resource > > intensive, unreliable and undocumented and so on. Yep... i > > definitely haven't thought about this at all. > > Oops. I almost forgot intra-organisational 4 digit extension > dialling. Not just company, but organisational, where a > company may have multiple organisational units. It might be > possible to hack together a flat intra-business 4 digit > extension dial lookup in the native dialplan, but trying to > make it a multi-level organisation lookup would be pure > hell... unless you farm the task out to a more advanced > scripting langauge like python, perl whatever.I see the MySQL dial plan command still doesn't support stored procedures either, unless you hack around with the source.
> -----Original Message----- > From: Rushowr [mailto:rushowr@phreaker.net] > Sent: Thursday, August 17, 2006 2:50 PM > To: 'Asterisk Users Mailing List - Non-Commercial Discussion' > Subject: RE: [asterisk-users] Asterisk 'Hosting' > > > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Douglas > Garstang > Sent: Thursday, August 17, 2006 4:39 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: RE: [asterisk-users] Asterisk 'Hosting' > > > -----Original Message----- > > From: Douglas Garstang > > Sent: Thursday, August 17, 2006 2:17 PM > > To: 'Asterisk Users Mailing List - Non-Commercial Discussion' > > Subject: RE: [asterisk-users] Asterisk 'Hosting' > > **snip** > > > > I spent 8+ hours a day, 5+ days per week for over 6 > months thinking > > > how these functions fit within the realm of Asterisk. At every > > > single turn, after going down every single path, there where > > > limitations that forced us to backtrack and evaluate a different > > > approach. A script that could handle call routing, in conjection > > > with MySQL and stored procedures was the only way to > implement our > > > requirements. The MySQL command had limitations, realtime was way > > > too resource intensive, unreliable and undocumented and so on. > > > Yep... i definitely haven't thought about this at all. > > > > Oops. I almost forgot intra-organisational 4 digit > extension dialling. > > Not just company, but organisational, where a company may have > > multiple organisational units. It might be possible to hack > together a > > flat intra-business 4 digit extension dial lookup in the native > > dialplan, but trying to make it a multi-level organisation lookup > > would be pure hell... unless you farm the task out to a > more advanced > > scripting langauge like python, perl whatever. > > >I see the MySQL dial plan command still doesn't support > stored procedures > either, > >unless you hack around with the source. > > I've just recently come up against this limitation. Care to > share info/code > concerning making stored procs work with the addon?Hi. I only just stumled across it myself. I was trying to prove a point to Jeremy. On the voip wiki: http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+MYSQL under a comment titled 'Calling MySQL 5 stored procedures from app_mysql', it looks like someone has managed to modify the source to get it to work. I haven't tried it yet... Doug.
> -----Original Message----- > From: Benny Amorsen [mailto:benny+usenet@amorsen.dk] > Sent: Monday, August 21, 2006 3:39 AM > To: asterisk-users@lists.digium.com > Subject: [asterisk-users] Re: Asterisk 'Hosting' > > > >>>>> "JM" == Jeremy McNamara <jj@nufone.net> writes: > > JM> Why do you need multiple instances? Just setup your Asterisk > JM> configuration to separate the various 'customers' or 'tenants'. > > The configuration files balloon to unmanageable sizes, and changing > them means that you risk breaking telephony for all customers -- not > just the customer you were trying to please with the change. > > There is also the lovely little callgroup/pickupgroup limit of 64. > > We run our customer PBX's in linux-vserver. It works quite well.Awesome. How many instances are you running on a single system? Doug.