ShirazOnline
نمایش نتایج: از شماره 1 تا 2 , از مجموع 2

موضوع: Interoffice Trunking with Elastix & IAX

  1. #1
    Super Moderator patris_70 آواتار ها
    تاریخ عضویت
    Jan 1970
    نوشته ها
    6,863
    تشکرها / پسندها

    پیش فرض Interoffice Trunking with Elastix & IAX

    کد:
    http://blogs.elastix.org/en/2009/11/interoffice-trunking-with-elastix-iax/

    PART-1




    Introduction
    =========

    As a business grows, it is necessary to open further offices, usually in separate locations, or due to geographic requirements, they need a warehouse or distribution center that is separate to the head office.
    One of the issues that occurs is the isolation of the two or more offices, almost as though they are two separate businesses. This occurs due the geographic isolation, but also in many cases isolation as they are using separate systems. Even the necessity, when dialling the other office, to dial a full phone number, continues to enforce this isolation.
    It is surprising, especially in an office culture, how a simple change of dialling other office extensions directly, makes a change to the mentality of how the other office(s) are perceived. Add a few other functions such as the receptionist console providing visibility of the other office extensions (and their visibility of yours), and even an internal Instant Messaging/Presence ability that works across the two offices, and the culture changes. Further add in the ability for any staff to call the person that they need direct, knowing that there is no cost for the call.
    I have seen it on many occasions, and I have had discussions with company directors who will categorically state that it has had a huge impact on their business efficiency and co-operation between branches due to a more homogenous single business. They also know that calls between all their offices have no call costs, and even if they wish to, they could stretch it further to include video between the various offices, either in a single room at each site, or at key staff desktops.
    This document is not going to cover how to implement instant messaging, or the receptionist console, or how to setup video as these are generally covered by other tutorials on this site. Like all good systems, it is best implemented one building block at a time, test, and then move to the next phase, unless you are very experienced in which case, you generally don’t require this tutorial .
    So the purpose of this guide is to provide you with the step by step guide on how to connect two offices together utilising an Elastix system in both offices.
    Planning
    ======

    Connecting two offices or sites with Elastix is relatively simple, but like all good things a bit of planning ahead of implementation is a good investment. I have seen many mistakes made, not from not understanding the concepts, but actually becoming confused with setup details and not putting the basic building blocks in place first. Some do start with the basic building blocks, but part way through they make a leap feeling confident, making changes on the fly, and then it ends up not working.
    So it is important to write out what you are trying to do, it will make it easier in the long run. Even printing the configs from this tutorial, making changes to the names to suit your setup, will keep you on the right track.
    This planning also extends to making sure that each site is using a separate set of Extension numbers e.g. 200 range in Sydney and the 500 range in Melbourne. This simplifies your routing rules. If you are setting up the two Elastix systems for the first time, then this is worth considering the particular numbering separation to make it easy for both yourself and the business. It may not always possible, especially if the two systems are already in existence and already using a common extension numbering scheme, and this is covered quickly at the end of this tutorial.
    The Scenario
    ===========

    This is scenario and configurations are taken from a production system, so you know that they work.
    The company has two offices one in Sydney and one in Melbourne. The office in Sydney has 60 staff and the one Melbourne has 20 staff
    The two offices have a Virtual Private Network (VPN) between them which will generally be the case with most businesses that need to share or access data between their offices.
    Elastix IP Address & IP Ranges used by each office
    The Sydney office has a 192.168.0.0/255.255.255.0 ip address range
    The Sydney Elastix system has an ip address of 192.168.0.100
    The Melbourne office as a 192.168.1.0/255.255.255.0 ip address range
    The Melbourne Elastix system has an ip address of 192.168.1.100
    Extensions setup on Elastix at each Office
    Sydney : Extensions 201 – 260
    Melbourne : Extensions 501 – 521

    IAX Trunk Setup
    ==============

    On the Sydney Elastix system
    Add an IAX Trunk
    Leave all other options until you reach Trunk Name as default. I know it hurts to leave fields blank, resist the temptation until you have a working trunk, then come back and tweak these options. Enter all the details below listed under the Sydney Elastix System.
    On the Melbourne Elastix System, Add an IAX Trunk, and enter the information listed under the Melbourne Elastix System







    And similarly on the Melbourne system

    So what have we done in the configurations that we have completed so far?
    The Peer Details on the Sydney Elastix system, we have setup under Trunk Name Melbourne the details which include how to contact the Melbourne System, what password to use, the context to use, the codec to use, and we have also told it to trunk the calls. You can omit the Trunk=yes if you want, but it needs to be removed from both sides. Trunk=yes reduces the overhead a little especially if you have a number of calls being handled by that trunk.
    The User Details on the Sydney System, are basically the authentication information for the Melbourne system when it tries to make contact with the Sydney system. The Sydney system will match the authentication being provided by the Melbourne system with the information here. If it matches then it will let the call come through.
    The reverse is the same on the Melbourne Elastix System
    It is as simple as this, you have setup a trunk between two offices. Now we need to get the Elastix systems on both ends to use this trunk because as it stands now, other than a but of authentication traffic, it doesn’t do much else. That’s where the next part of this tutorial comes into play.On both systems, we need to setup an outbound route to tell it what to do when a caller in Sydney wants to call an extension in Melbourne.
    So on the Sydney Elastix system, setup an outbound route called MelbourneExts

    So, what we have completed here is an outbound route that tells the Sydney Elastix system, when a user calls any three digit extension that starts with a five(5) that it is to be directed to the IAX2/melbourne Trunk.
    We have also ticked the Intra Company Route option which tells the system to preserve the CID information when transferring the call to the Melbourne system.
    On the Melbourne System, setup basically a mirror image of the Sydney outbound route.

    As you will note, the route name is called SydneyExts, again Intra Company Route is ticked, and the other main difference is that we are telling the Melbourne Elastix system to handle any Melbourne users that dial 2xx and redirect the call to the IAX2/sydney Trunk.
    That is it. The best way to test it is to dial a Melbourne extension from the Sydney office. There is no other science needed, no magic potions. The main reason for failure for many is usually the failure of the IAX trunk. There are many configurations on websites, some that contain lines using the G729 codec only (which is common), but on freshly installed Elastix systems, you are generally not going to have the G729 codec loaded. My recommendation is leave the codec setting as GSM until you have completed basic testing.
    What to do if the same extension numbers exist at both branches
    ================================================

    For staff sanity, it is better to plan for a change on one of the branches so that the extensions are unique to each branch. However, if this is not possible, then you can implement a slightly different way of calling extensions in each office.
    The IAX Trunk setup remains exactly the same, however the difference is in the outbound routing for each system.
    Since the company wants to maintain their extensions as they are, this means as an example, Sydney has extensions 201 – 260 and Melbourne has extensions 201-220, after discussion with the business, we decided that to call and Melbourne extension from Sydney, they will place a 3 in front of an extension number. Likewise Melbourne to call Sydney extensions they would place a 2 in front of the three digit extension they wanted to call.
    So if Melbourne wanted to call Sydney Ext 201 they would call 2201
    If Sydney wanted to call Melbourne Ext 203 they would call 3203
    So the only change to implement this is in the outbound route in the examples shown previously of the outbound routes. In the Sydney Elastix system, I change the outbound route Dial Pattern from 5xx to 3|2xx and on the Melbourne Elastix system, I change the outbound route Dial Pattern from 2xx to 2|2xx
    So you can see it visually, the following is the change to the Sydney System

    And the following diagram is the changes to the Melbourne system

    In a nutshell, from the Sydney Elastix System, if we just dialled 201 hoping to reach Melbourne it will never happen. it will always ring the Sydney 201 extension. By adding the digit, e.g. 3201, Elastix will not see it as a local extension number and will look at the outbound routes for a match. Now as soon as it makes a match (which is the 3|2xx), it will strip off the 3 digit, and pass 201 down the IAX Trunk to Melbourne. The Elastix System in Melbourne will recognise that it has an extension 201 and will connect the call
    داخل انجمن سوال کنید تا دیگران هم اگر مشکل شما را دارند یا برایشان در آینده پیش بیاید استفاده کنند. پیغام خصوصی برای جواب دادن به سوال نیست.

  2. # ADS
    Circuit advertisement
    تاریخ عضویت
    Always
    نوشته ها
    Many
    مودم LTE بیرونی
     

  3. #2
    Super Moderator patris_70 آواتار ها
    تاریخ عضویت
    Jan 1970
    نوشته ها
    6,863
    تشکرها / پسندها

    پیش فرض

    کد:
    http://blogs.elastix.org/en/2009/11/interoffice-trunking-with-elastix-iax-part-2/

    PART-2




    Thanks to a comment from Alonso Gordillo on Inter-Office Trunking using Elastix, I have decided that it warranted a second part describing how to use your new Inter-Office trunk to have calls routed through the other office’s Elastix PBX. If you havent already, first please read [فقط اعضا می توانند لینک ها را مشاهده کنند برای ثبت نام اینجا را کلیک کنید]
    Lets start with the original diagram

    Now as you will note, I have used two Australian Cities called Sydney and Melbourne, but this could just as easily been Australia and New Zealand, or Australia and U.S.
    In Sydney, they have an area code of 02 that prefixes the numbers, and in Melbourne they have 03 prefix.
    To save further costs, instead of just using the trunk for internal calls, you want to route any calls made to landlines from either PBX to originate from the PBX that is closest to that charging district and naturally lower the cost.
    So the example is, Jenny resides in the Sydney Office. She dials a Melbourne number say (03)55544555. What we want is the Elastix system in Sydney to recognise that this is a Melbourne number and automatically route this call via the Melbourne Elastix box and out through either their standard carrier lines (E1 or PSTN) or via their VoIP Service provider.
    So before you do anything else, make sure that you have successfully completed Inter Office Trunking Part 1. It is crucial that this is in place and working. Like all well implemented systems, break it down and build and test each part or build on and test each stage as you finish.
    In reality to complete this next stage it is actually quite simple.
    In the Elastix PBX GUI or via the Freepbx GUI on the Sydney Elastix system add the following outbound route

    So to make this clear again, this diagram above shows the Outbound route on the Sydney Elastix system. You will note that we have ticked the Intra Company Route hopefully preserving the Caller ID information between the two systems.
    In the Dial Patterns, you will note that I have told it to match any Melbourne Number being dialled on the Sydney system and send it to the trunk sequence listed below. All Melbourne’s numbers start with 03 and always have 8 digits after the prefix. In this example the dial pattern is easy, but you can continue to add dial patterns to match. For instance, say Adelaide is closer to Melbourne and a lower cost from the Melbourne system, I would add 08XXXXXXXX to the GUI above as well forcing any number with 08 to go out via the Melbourne system.
    In the trunk sequence, you will note that the primary trunk is the Inter office Trunk, but I still have set an alternative trunk in the event that the call fails on the Inter Office Trunk. In this case it goes out via the standard carrier lines if the Interoffice Trunk fails due to Internet line failure or the Melbourne PBX system is offline. If this eventuates, then the call will drop down and dial out the PSTN/E1/ISDN just like a normal call.
    Finally you will note that on the right hand side, I have moved it up the “ladder”. The reason for this is that the LocalSTD route that is standard on all our Australian systems, contains a dial pattern for 03XXXXXXXX as well. I could just remove the dial pattern from the LocalSTD, but I leave it there, so if I ever delete the MelbviaMelbPBX route (e.g. office closes down, major internet issues), It will automatically be handled by the LocalSTD route like a normal call.
    and on the Melbourne Elastix system do likewise

    That is about it…nothing else….start testing.
    Now, as mentioned, the example was very easy to work with. Sometimes there are advantages even to route calls between two Elastix boxes in the same city. We have several of these, where the main office actually has an E1 that provides lower call costs on Mobiles than the warehouse office which has PSTN. So we have a dial pattern on the Warehouse Elastix system that matches all mobile calls and sends them out via the main office E1 connection.
    To make sure things in simpler for the business, we make those warehouse originated calls go out with a particular CID (Caller ID). So if the callee misses the call, and like most Mobile phone users, they just dial the number of the call that they missed, we have set an incoming route on the main office Elastix box for any calls coming in on that DID, we route them back to the warehouse via the IAX Trunk. This way the main office doesn’t end up with callers saying that they just had a call from their office and the main office asking everyone in the office whether they made a call, or worst still, guessing and telling the caller that it might have been the warehouse. Sure you can transfer them, but it doesn’t look professional.
    The same can be done for standard calls that we send out via Melbourne in the example. Have the CID set to one particular number in the Melbourne (ISDN), and when the calls are returned back to the Melbourne office, they automatically go straight back to Sydney
    داخل انجمن سوال کنید تا دیگران هم اگر مشکل شما را دارند یا برایشان در آینده پیش بیاید استفاده کنند. پیغام خصوصی برای جواب دادن به سوال نیست.

اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

علاقه مندی ها (Bookmarks)

علاقه مندی ها (Bookmarks)

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •