Custom-Contexts Module Upgrade - Updated Info

As I have mentioned in earlier posts, the original coder of the Custom-Contexts module has left it orphaned. It was incompatible with FreePBX 2.7 until we were able to get some changes made. A version 0.3.6 of the module will be released shortly. This will bring it into compliance with FreePBX 2.7 and below.
Since it is known that FreePBX 2.8 and the Custom-Contexts module will not be compatible, Philippe has researched what is required to update the module. It will cost $4,000 in analysis, planning and coding to bring the module up to speed with FreePBX 2.8. This will hold it for a couple of years until FreePBX 3.0 becomes fully mature.
So many of you have said that it is vital that we keep the Custom-Contexts module alive to support business users that I hope you will all step up and make a donation. We now ask that you all put your money where your mouth is and step up.
Philippe has created a web page which allows donations of $50 up to $500 to fund this work. We will set a limit of 60 days to get sufficient funding to engage a programmer for the changes. The payments will be via PayPal and donors will be listed on the page along with progress towards the goal.
Here is the web page to make donations and check progress:
http://www.freepbx.org/bounties/custom-context
Please jump to that page and make your donation now.
Should we not receive sufficient funding within 60 days, the bounties will be returned to the original donor.



Not very quick on listing
Not very quick on listing the donations.
I would hope I am not the only one who has joined at Platinum level (pledged two $300 commitments already paid one).
With the number of people that use and request support is very high the interest in pledging funds seems low.
You wondering why attitudes develop when users demand features and don't attempt to understand and read documentation before requesting support. This lack of financial support is exactly the reason.
Mention money and you guys run like cockroaches in a light.
If just a few of us have to pay for it then the whole community suffers.
there are a few which I am
there are a few which I am posting today, unfortunately there is no way to do it automatically...
I was just hoping that other than the few of you whose names I typically immediately recognize, there would be others coming forward. Of course I understand that many users out there don't monitor the site on a daily basis so probably need to give it at least a little time...
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
Yeah, I jumped the gun a
Yeah, I jumped the gun a bit, however when the Ken first posted to get a feel for who was using it the response was quick.
I know money is tight and not many folks actually make money with their Open Source telephony ventures but even $50.00 goes a long way.
A Roaring Start
After just a few days, we're 1/4 of the way there. Keep it coming folks!
I'll pledge $200 out of my
I'll pledge $200 out of my pocket for this project. And by purchasing from my store below, I'll increase that amount!
If you're interested, go to my store below...when checking out, use the coupon code "Custom" without the quotes and you'll get an extra 10% off of your order and in addition I'll add $10 to this project for each order using that coupon code above my $200 pledged.
kenn10, I'll make payment Monday 5/3 for the total accumulated.
http://www.bullzeyenetworks.biz
Check us out for a full line of OpenVox analog and digital cards for your Asterisk systems!!!
Adam Huebener
OpenVox distributor
1/3 of the way there is nice
1/3 of the way there is nice but means there is a long way to go. I think the efforts that kenn10 has done to coordinate this campaign are commendable, especially given that he does not have a "for profit" business that is depending on it.
However, there are a lot of you out there who do have such a business, many of whom were quick to speak up on the other threads on this subject about the importance of this module. However, given the number of contributors it would seem that when it comes to helping to make this a reality, you are not very quick to see it happen.
If the effort of kenn10's is going to be a success, we are going to need you to step up and "put your money where your mouth is" and help make this "campaign" a success. Remember, the rest of the software would cost you anywhere from thousands to tens of thousands of dollars in a non-open-source world. Given that, even the $500 Platinum contribution level is a very small price to pay to help a component that has been deemed important to your business to move forward and continue to be available to you.
So please show kenn10 you appreciate for what he has spear headed and go visit the Custom Context bounty page to make this happen.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
Corporate view of Opensource
I have to admit I haven't donated BUT that is because.
1: I don't use the module.
2: Work uses Asterisk/FreePBX (and I have tried to get them to donate).
We switched to asterisk now about a year ago and in about 3 months we will have reached the payoff for having switched away from our proprietary rented PBX system. Unfortunately getting the company to donate money for anything tech related (the company actually gives very generously to the community we are in), is pulling teeth.
So much so that I have long come to the conclusion the only way we can support open source is through support contracts. On our PBX we currently have a support contract from the vendor who sold the physical system and installed it. I am not sure when he will say all future support is going to cost us (as I say we are hitting the year mark) and at that point I will probably explore instead giving to FreePBX (the question is will they provide a complete support package (including the distro we are running, DAHDI issues etc).
I would suggest that possibly it would be worth it to have support contracts that can optionally include some bucket of funds that is used for future development etc, that the customer can apply when they need. I could include this in support but not do it separately due to the corporate environment...
My firm offers exactly the
My firm offers exactly the type of support contract that you are describing.
When we committed to supporting Open Source Telephony that included giving back to the community.
Unfortunately we only offer these services in Northeast Ohio. If you happen to be here then providence really shined on us.
All that being said I know from the years of support I have offered to the community that many folks are making money off of this module. The face that so few have donated so little is more than a bit distressing.
Unfortunately, no one took
Unfortunately, no one took advantage of the great deal I was offering. I added my $200 Paypal payment this morning.
I have decided to run this offer to through the entire month of May to help get this important project funded!
If you're interested, please check out my store at www.bullzeyenetworks.biz
Check us out for a full line of OpenVox analog and digital cards for your Asterisk systems!!!
Adam Huebener
OpenVox distributor
Thanks for the donation
Thanks for the donation and the offer to add more once the community supports you.
A list of supporting dealers
Philippe,
Is there any way we could put together a list on the website of system dealers that actively support FreePBX. Either by donating money or time (for example Scmoozecom donates tons of time which should be enough, although they donate money as well...).
This way when purchasing we could attempt to purchase a system from those people who give back to the community.
nsumner, We will look into
nsumner,
We will look into how we might go ahead and do that.
Especially with the work on the v3 front that we want to do and the places that we will need help, it will be worth trying to create some sort of Sponsors page.
For now, I've published Custom Contexts with some changes that were sitting in SVN, plus added a notice posted to the Notification Panel about this current dilemma, along with a few other updates that were needed due to stale links to the old aussie web site that is no longer active.
Let's see what sort of exposure the update process will provide since, hopefully it will alert module users who keep their systems up-to-date but don't have time to read the forums or blogs on a regular basis.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
We're 3/4 Of The Way There !!!!
We've got about 3/4 of the required funding to go. We need another $1,300 to make this happen! Please consider jumping to the web link in the first post and making your donation now!
Many, many thanks to all who have contributed so far!!!
trying to contribute..
I am trying to contribute but the Paypal link does not work from my cell phone. What is the Paypal email address so I can send over $50?
If you want to send the
If you want to send the contribution directly, it should be sent to paypal @ freepbx.org, or you can just wait until you get a chance to be in front of a computer.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
Sent!
Thank you for everything you do! I may not be a very good coder but I know how to use Paypal. :-) All of us have our talents..
We donated $200 but I feel
We donated $200 but I feel bad that the project is only funded by a few.
How about only providing the "fixed" custom context module only to people that contributed to the project? That would get donations up quickly as there must be hundreds of users of this module. Make it a paid module and ask users to pay for the upgrade. That will solve the funding issue forever.
dcitelecom, I understand
dcitelecom,
I understand where you are coming from but, no-can-do - it's GPL.
The original author could decide to do that given that it's 100% his code for all practical purposes, but that's about the only one who could do something like this.
Playing in this Open Source space involves understanding the reality of the dynamics that are going to happen out there. There are hundreds of thousands of installs out that use FreePBX. A large portion of them don't necessarily even know they are using FreePBX, most of them never even look at the FreePBX site and the one's that do, come looking for specific information. Even on the 'Upgrade' front, most PBXs are installed and then 'forgotten.' They do not check for updates or anything.
Then amongst those who are aware, only a small percentage are going to be willing to help out in situations like this. When it comes to a module like this, you are now dealing with a very small subset of the FreePBX population because in reality, most installations either don't have any need for it or are not sophisticated to the point of understanding that there may be things of interest that they could do with it, they are content with what they have.
Your frustrations are surely felt by many others in this space who do contribute in all their different ways but at the end, it's the reality of the situation. On the positive side, I'm glad to see that this effort of kenn10 is well on its way. I think by shaking a few branches you'll see the rest of it come together. I would suggest finding the threads in this and other forums that relate to this subject and either spurring them back to life and/or PMing the various parties individually to prod them along and we'll probably see the goal met fairly soon. (The suggestion is not just for dcitelecom, it's for any of you who feel the same way as he does...)
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
Great Work Kenn10!
Thanks to all the very generous donations I see you have hit your goal! $4,000 has now been raised!
I did want to comment in response to the hole open source discussion. That while I certainly appreciate the frustration (and I didn't donate on this simply because I don't use the module and the company is at the best of times not into donating to these types of causes (a "charity" they'll give to and do very generously but to appreciate that open source isn't necessarily really giving they don't appreciate).
However the power of open source is you guys just got together $4,000 to hopefully get the Custom-Contexts module back up to par. While many people might reap the benefit of that without having contributed they might well be contributing to other open source projects (asterisks or non-asterisk related). For example through a service contract my company does support Vyatta (an open-source router project).
Great going Kenn and all the donators!
I know "OPEN SOURCE" means
I know "OPEN SOURCE" means free software but nothing is really free in business. I would urge all users to contribute to the community from time to time, e.g. FreePBX, trixbox, a2billing as all these projects are important to VoIP users and money does help the development process. Just because a project is open source does not mean the development cycle did not cost anything.
Thanks To Everyone!
Our goal of $4,000 has been met. Many thanks to all who dug deep to give what they could. Stay tuned for more information on how the module upgrade is going.
Again, thanks to both individuals and resellers who put up the funding to keep this module alive!
Rework of Custom-Contexts Is Under Way!
A programmer is currently working on the rewrite of the custom-contexts module. The new module will not be backwards compatible with 2.7 and below. The existing v0.3.6 module will work for those versions of FreePBX.
I'm told to expect an alpha version of the rewrite for select people to begin testing (with FreePBX 2.8) as early as sometime next week. I'm happy to hear this since I can't do serious testing of 2.8 under load until I can utilize the new custom-contexts module.
So in short, work has begun on the upgrade and we should see preliminary results shortly. With luck, this module will be completed in time for an official release of FreePBX 2.8.
Many thanks to Philippe for coordinating a programmer to get this done!
Apology
I am sorry I have been out of this... As I have mentioned before to those involved, I simply haven't had time. I understand it may be rude of me to do the work now.
That said, I mistakenly pulled up this link http://geekhut.org/2010/02/freepbx-custom-context-module-delegating-outb... on the first page of a Google search yesterday, and got the impression from there that it was worth the effort to make time, if people are still finding it that useful.
It took me longer to get a virtual machine set up and install FreePBX 2.8 than to fix the module to bring it up to date. I understand that there was a bounty collected, that I passed on the offer, and that someone else apparently is already working on a rewrite. I don't mean to step on anyone's toes (or collect someone else's bounty), and I am sure that the rewrite (for $4000!!) will likely be far superior to the original module. This was partly to patch it for the interim just to fix what was broken (I didn't even integrate into the TimeGroups module even though that was the purpose of the TimeGroups module originally), and partly because I guess I bumped into one too many people upset that it will soon be gone.
For now, I updated the source at contributed_modules/modules/customcontexts/ (r9817) and I will let phillipe package a new release if he approves.
naftali5
P.S. I should have made the time a long time ago to look at it. I was told that outbound routing was changed quite drastically, which would break my module, but little did I figure that it actually was changed to remove a serious flaw in design which had cost me dozens of extra lines of code originally. Most of the change was deleting now obsolete code!
Nafteli5 - I'm happy you
Nafteli5 -
I'm happy you have returned to the foreground and looked at the module. Philippe has been handling the rewrite and I'm not sure where it stands now. The update of the module is only a temporary fix for the new architecture of FreePBX 2.8 and will still need to be ported to the FreePBX v3 framework as that version of the product is finalized and rolled out.
I have been active in the FreePBX, PBXinaFlash, Trixbox and Elastix forums and there remains terrific demand for the Custom-Contexts module. Many consider it a vital part of FreePBX for multi-site installations on a core system. The biggest plus is the ability to route 911 or other calls to the trunk at the particular location.
I hope you are conversing with Philippe to discuss your latest updates with whomever is working on the module.
If you are able to make time, it would be fantastic if you could take the module back "under your wing." Once the v2.8 updates are done, we need someone to work with the module so it can be integrated into FreePBX v3. Since multi-tenant capability will be more readily programmable in the FreePBX v3 architecture, this module should be able to flourish with more features and flexibility in that framework.
Thanks for the note. I have not had a chance to look at your patched version yet. Philippe had fixed a couple of issues and thus Custom-Contexts v0.3.5 and v0.3.6 were released as updates for FreePBX 2.7 and below.
The community will look forward to hearing from Philippe and you on how this will be worked out.
Just a quick note (and sorry
Just a quick note (and sorry for the delay, I just got off a plane...)
I've had Moshe working on the changes and he has been doing such for a couple weeks. I was glad to be able to convince Moshe to do the work as opposed to some random developer somewhere that does nothing otherwise for the FreePBX community. (For those who don't know, Moshe has donated hundreds of hours (if not thousands) to FreePBX over the last few years and continues to do such now). Moshe was my second choice after Naftali who, as he pointed out above, I had contacted when all of this kicked off but had no time to work on custom context, for pay or free.
Moshe started doing the work a couple weeks ago. He reverted the changes that naftali checked in in preparation for getting the changes he has been working on into the system. I'm guessing that sundown of the Sabath beat him to getting his changes in or they would have been there by now. They should be in later this weekend.
The changes that Moshe has been working on not only include some similar work that Naftali did, but they also include all of the migration code to take you from 2.7 to 2.8, they include some additional work that makes sure the default context sequencing for some of the selections are consistent with the intended default when no priorities are specified (which was not there in the recent check-ins), there are some functions not present in custom context that are being added to help it interact properly with some aspects of the framework. Moshe is also on the hook to follow-up with once this gets out to beta and production making sure that everything works properly and there is quick turn around as issues are identified. There is also work on the module infrastructure. Unlike the 'core' modules, the Extended Repository, on the server side, is currently not designed to have different module versions for different FreePBX versions. Since we did not want to break 'pre-2.8' systems with the new fixes, this has to also be addressed.
So ... you should be seeing this work hitting the system for testing within the next few days, hopefully sooner.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
2.8 version looking good...
I've upgraded my system to FreePBX 2.8 on Asterisk 1.6.2.7 with absolutely no issues. I used the extended repository to update my Custom-Contexts module to the 2.8 version which also upgraded with no issues.
I went to each of my custom contexts and did notice that in the ones where I had used "Deny All Routes" and had selected specific allows, the allows were all turned to "Deny." I changed the required routes back to "Allow" and all is well.
I will continue testing but it all looks really good right now.
Where is "extended repository"?
Sorry but where can I download the new custom context beta module?
Thanks in advance.
M4BIz
kenn10, can you file a bug
kenn10,
can you file a bug on this migration issue where you had Deny All Routes and then some specific one's allowed resulting in those denied?
That should be looked into. Thanks.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
A couple minor bugs
A couple days ago I pulled the trigger to go to 2.8. Everything seemed to be working fine, until a remote office of ours called to tell me they can't make any outbound calls. Since I know the people who installed our PBX created a custom context manually for that office, I immediately suspected I knew where to look. I decided to remove all the hard work they had done setting things up manually and instead installed the new custom_contexts module. I recreated the custom context needed and all was well. But on the way I found a couple minor bugs.
I found a couple bugs, or perhaps to be more accurate buglets (actually I would call 1 a bug, and 1 a buglet).
The first buglet, is that ALL OUTBOUND ROUTES is given a priority of 96 which is great. However if you disable that and are selecting specific outbound routes they start at a priority of 50 which is low than most other things including internal extensions. The end result is that internal extensions break. This isn't really a bug but it seems to me those should be starting at something like 100 say.
The bug, is that if you change the Context of a custom context (not the description), than go and look a the extensions anything that had that context selected is now blank. Presumably if I can change the name, then the name change should carry through everything else (just like if I change the alias).
Please Post a Bug Report
NSummer -
Thanks for the feedback. Manually entered custom contexts could well be an issue after the upgrade to 2.8 because of the substantial change in the way routing is handled. It isn't surprising that you encountered a problem. That is the reason the Custom-Contexts module had to be updated.
Please post a bug report in the FreePBX Bug/Feature request section regarding your issue. I'm not sure there are any hours left in the original rewrite for which we collected the bounty, but I'm sure Philippe will at least look at it once a report is posted.
I believe a bug was entered
I believe a bug was entered the other day on this.
There is an open question on the ticket system wrt to the priorities. If the behavior is something that worked priornto 2.8 and now has issues then it is a bug and should be fixed as part of the work done. Someone with a pre 2.8 system needs to provide feedback on that ticket.
Concerning the context name change, that behavior remains the same as previously and would be a bit of a hack to try and address.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
the final version is in the
the final version is in the extended repository.
there was a glitch and it was not showing up but that was reported and corrected this morning. Just use Module Admin to load it from there on 2.8.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
I think there is a bug when
I think there is a bug when the dial patterns are formatted as
20127[4-678-9]XXXX as we get the following error with custom contexts
[2010-10-05 13:25:05] WARNING[4174] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected $end, expecting ',' or ')'; Input:?(null)((null)))
0 = 1]?Set(TARGET_FLP42=0998715141234567
^
[2010-10-05 13:25:05] WARNING[4174] ast_expr2.fl: If you have questions, please refer to doc/tex/channelvariables.tex.
[2010-10-05 13:25:05] WARNING[4174] app_exec.c: Deprecated syntax found. Please upgrade to using ExecIf(
[2010-10-05 13:25:05] WARNING[4174] pbx.c: Error in extension logic (missing ']')
[2010-10-05 13:25:05] WARNING[4174] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected $end, expecting ',' or ')'; Input:
0 = 1]?Set(TARGET_FLP42=0998715141234567
^
[2010-10-05 13:25:05] WARNING[4174] ast_expr2.fl: If you have questions, please refer to doc/tex/channelvariables.tex.
[2010-10-05 13:25:19] WARNING[17769] chan_sip.c: Maximum retries exceeded on transmission MTQ2MWU3N2RmMDg0ODJjMDIxMTE4ZWU0MDE2MWZhMzQ. for seqno 2 (Critical Response) -- See doc/sip-retransmit.txt.
[2010-10-05 13:25:19] WARNING[17769] chan_sip.c: Hanging up call MTQ2MWU3N2RmMDg0ODJjMDIxMTE4ZWU0MDE2MWZhMzQ. - no reply to our critical packet (see doc/sip-retransmit.txt).
dcitelecom, the errors look
dcitelecom,
the errors look like they are coming from core functionality (the TARTET_FLP42=… stuff is generated by core to address trunk dial patterns).
So … first off, please upgrade core and make sure it is up-to-date as I do recall some syntax errors occurring some time ago in that part of the code.
Once you have done that, if you are still getting a syntax error, please file a bug ticket and make sure you include the Asterisk version you are using.
If possible, please try to paste in the subroutine that is being called, it will be called sub-flp-[trunk_id] where [trunk_id] is the trunk id number. If that subroutine is really really long (like you have dozens to hundreds of trunk patterns (not route patterns but trunk patterns) then try to locate the specific dialplan segment that is generating that error and include that section so we can identify it.
And of course, if you want to have a look at what the syntax pattern is and find the issue, that's also welcome :)
Lastly, the following error:
leads me to be suspicious that FreePBX is mi-intgerpreting your version number and thus generating the wrong syntax for ExecIf. If that is the case, then for some reason it is not detecting your version number properly. Can you type "show version" at the CLI as well as "asterisk -V" at the command line and let us see how the version is being presented so can see if it is mis-interpreting the version number. (Since - there is no reason in any of auto-generated code that ExecIf should be formatted wrong if it is properly detecting the version).
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
Thanks for the comments.
Thanks for the comments. We'll look into that. I uninstalled custom contexts and the errors are still there so I was wrong there. I think we may have copied some settings over from trixbox during the migration which are causing the errors. I'll post a seperate messg in the forum once we know more.
BTW I do have the new custom
BTW I do have the new custom contexts module installed and all "internal calls" i.e. extension to extension use external outbound routes and trunks. Did I configure this wrong or is there a problem?
turns out you need to assign
turns out you need to assign priority 50 to ext-local which is not done by default. While not a real bug I consider this a problem since no documentation exists for the module.
dcitelecom, the
dcitelecom,
the custom-context module is a very powerful but yet very confusing module that is hard to use without really understanding what it does.
Ultimately, the way to understand it is to have a look at the dialplan that is generated and more than anything, to really understand how Asterisk processes information.
There are multiple reasons why it is not part of the FreePBX core and remains a third party module, the complexity and difficulty to understand it being one of them, the fact that it ultimately presents a 'false sense' of the context separation being another.
As far as the priorities though, I thought that when you created a new custom context, by default it still put the outbound routes at the end so if you didn't manually change things, all the internal contexts would come before. Is that not the case?
Anahow, if you feel like sprucing up the documentation that does exist for this module on the website, just let me know and I'll be glad to change your user type so you are able to edit the page and add what you think might help others.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
While ultimately you make me
While ultimately you make me getting what you want with custom contexts you would be far better off with the loop around trunk. It solves this problem and insures your subscriber-subscriber call stay on net.
Simply move the loop around route to the top of the outbound router.
I am afraid I lack the
I am afraid I lack the understanding to write the documentation. Anyways the default internal context is is set at priority 50. The internal dialplan starts by default at priority 51 and the outbound routes also start at priority 51 so the ext-local context is not prioritized over outbound routes by default. Setting it to 50 fixes the problem.
ok, giving it a test shot I
ok,
giving it a test shot I see what you are saying, it does by default make for a bit of a mess when you simply create a brand new context setting everything to allow at first.
For those of you who used this prior to the port from 2.7 to 2.8, is this how it always acted or was it previously a bit better behaved? In other words, on earlier releases, if you were to create a new custom context, and did nothing more then choose allow all, did you end up with your outbound routes all at the end or were they all intermixed like it does now since it starts the priority numbering at 50 for each section?
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
I still have a test system
I still have a test system running trixbox and custom contexts v0.3.6 and there the default internal context and internal dial plan both get priority 50 when a custom context is created. Outbound routes start at 51 so the internal calls have priority over the outbound dial plan. I also never experienced this problem prior to switching to the new version of custom contexts but it was difficult to debug because we had also changed to Asterisk 1.6, PIAF 1.755, etc...
With v0.3.6 when I click "allow all" the priorities stay the same, i.e. internal context and internal dial plan all = 50 and outbound routes go from 51 to 71
I am curious as to why you
I am curious as to why you won't even validate my loop around trunk suggestion.
It solves the problem you have, solves another problem (internal users calling each other) and is generally a cleaner way that does not get "in the way" of the custom context module.
I apologize for not
I apologize for not commenting on your suggestion earlier but you blasted my setup and biz practices in an earlier post so much that I did not think it's wise to put myself in the line of fire again.
You make of course a valid point with the loop around trunks but I only use them when needed and don't believe in fixing what is not broken. When users dial an internal extension correctly (in my case 10-digit telephone numbers) then a properly designed system should process these calls as internal and not use outside trunks.
However, if a user dials the 10 digit extension as 11 digits then the use of a loop around trunk would make sense if it happens often but personally I find it cumbersome to create an outbound route for all extensions in a system that changes users all the time and it's not really a big problem for us.
If we'd really need it (and I know you'll hate this too :-) I would put a loop around trunk into every outbound route so that every call is first looped back into the system and then fails over to the outbound trunk. I find it does not cause much overhead and needs zero upkeep. We use the same system for enum and it works quite well. I know it's not clean but it works and we set it and forget it.
I won't make any sweeping
I won't make any sweeping comments. My only observation is the great lengths that you go to in order to try and make FreePBX conform to something the lead developer admits it is not intended for. I know recreating a system seems like a daunting task.
Kamailio with SIREMIS tames the mystery of SER. It is more flexible than a Nextone switch and almost as good as Sonus ASX.
One of the reasons I am so passionate about this issue is business processes can degrade when the core platform does not support the business mission. I have looked over your website and have an understanding of the offerings, not talking out my a**.
Certainly FreePBX can be used to put together voice products that offer great value to the client.
Philippe was lukewarm to custom contexts because it drives FreePBX further into spaces it was never meant to play in. Custom contexts was meant to fill a feature gap, lack of class of service definitions. It was never designed to create secure dial plans and service offerings.
With your immediate problems solved I would spend the time looking at the next steps in your platform evolution.
As always I am around to comment <>.
A new thread would be in order.
Yes. Thanks. I appreciate
Yes. Thanks. I appreciate your comments and we are always evaluating other platforms. I was going to look at FreeSwitch next but maybe we'll look now at Kamailio but I don't want to discuss the advantages of another system over FreePBX in this forum as this would not be fair. I know you do consulting so maybe I'll contact you about this one day in your professional capacity.
This thread would not be
This thread would not be appropriate however an open discussion on FreePBX as a service provider platform and alternatives would be very interesting.
Take care....
dcitelecom, If creating a
dcitelecom,
If creating a new custom context on the pre-2.8 version of custom-context results in a "reasonable" default dialplan choosing "allow all" and doing so in 2.8 is significantly different (e.g. all the outbound routes being inter-mixed with the internal dialplan priorities) then you should file a bug in the trac-er and ask moshe to have a look.
The port to custom-context to 2.8 should be reasonably consistent with the earlier versions and if it is rally this different then I would consider it a bug to be looked at. I suspect is fairly straight forward to address once looked at.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
I use the previous version
I use the previous version of custom contexts for 3 separate small firms in our building (company A, B & C), all works well, except for 1 issue. All 3 firms use the directory for calls to search by name, and if they don't know who they are looking for and hit '0', it dumps them to company A's operator extension, even if they were in company B or C's directory. Does this version fix that (or have I been using it wrong all along)?
Thanks.
This version simply makes
This version simply makes what worked before work on 2.8.
The issue you describe is because you are trying to create a multi-tenant setup on a PBX which is not designed for that.
Although Custom Context can do a lot of things that you might wan to do for a multi-tenant setup, it still comes short in a lot lot of subtle areas of which what you described is one of those areas.
For your specific Directory issue though, you may want to have a look at the 2.8 Directory module, you may be able to get closer to what you want to do with some of it's flexibility.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here