Results 1 to 1 of 1

Thread: Interconnecting Multiple Warps through FreePBX

  1. #1
    agauthier Guest

    Default Interconnecting Multiple Warps through FreePBX

    Requirement

    - Customer wishes to have multiple warps deployed in several locations but wishes interconnect them. He needs to do this through FreePBX.
    - Each Warp has 8 FXOs connected to it.
    - The IVRs will handle incoming calls and access to the warps can be done through this. The main reason for this is that directories only contain entries for it's own Asterisk instance. Another way to do this would be to have only one Warp have all the SIP entries, the other warps would directly access the main IVR.

    Implementation
    The obvious choice to interconnect Asterisk instances is to use IAX. For simplicity, we will define only 2 instances.

    IAX2 Configuration
    Add a IAX2 trunk for each Asterisk instance.

    Asterisk A IP AAA.AAA.AAA.AAA

    Outgoing Settings

    Trunk Name: Intraoffice

    Peer Details:
    host=BBB.BBB.BBB.BBB
    qualify=yes
    type=peer
    username=pbx
    ;secret=password # for simplicity don't use right now

    Incoming Settings

    User Context: pbx

    User Details :
    type =user
    context=from-trunk
    host = BBB.BBB.BBB.BBB
    ;secret=password # for simplicity don't use right now

    Register String : Leave Blank



    Asterisk B IP BBB.BBB.BBB.BBB

    Outgoing Settings:

    Trunk Name: Intraoffice

    Peer Details:
    host=AAA.AAA.AAA.AAA
    qualify=yes
    type=peer
    username=pbx
    ;secret=password # for simplicity don't use right now

    Incoming Settings:

    User Context: pbx

    User Details :
    type =user
    context=from-trunk
    host = AAA.AAA.AAA.AAA
    ;secret=password # for simplicity don't use right now

    Register String : Leave Blank

    Add extensions to each Warp
    In Asterisk A, add extension 4XXX.
    In Asterisk B, add extension 5XXX.
    Beware that you can set the CallerID for Directory purposes. Then if you enable VM and update the name for each extensions, the directory application will play the name instead of spelling out each letter of the name.

    Add FXO Group to each Warp
    For each Warp, you can add FXO trunks as:
    PIKA/fxo/g0/$OUTNUM$

    Add Incoming Routes
    For any DID/ any CID point to IVR menu.

    Add Outgoing Routes
    For Instance A, add 5XXX to point to IAX/Intraoffice.
    For Instance B, add 4XXX to point to IAX/Intraoffice.


    Add Custom Destinations
    Under Tools->Custom Destinations -> Add Custom Destination.
    So for Asterisk A instance, add
    Custom Destination: pbxb,s,1
    Description: pbxb
    Note: pbxb

    In /etc/asterisk/extensions_custom.conf add:
    [pbxb]
    exten => s,1,Dial(IAX2/pbx@BBB.BBB.BBB.BBB/s)

    For Asterisk B instance, add
    Custom Destination: pbxa,s,1
    Description: pbxa
    Note: pbxa

    In /etc/asterisk/extensions_custom.conf add:
    [pbxa]
    exten => s,1,Dial(IAX2/pbx@AAA.AAA.AAA.AAA/s)

    Add Misc Destinations
    In Setup -> Misc Destinations add the Directory so that the IVR Menu can see it.

    Add the IVR menus
    Add each IVR menu including the Directory and Custom Destinations to point to the other Asterisk instance.
    Last edited by agauthier; 11-11-09 at 05:10 PM. Reason: Change context for turnk. Be more explicit.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •