Page tree
Skip to end of metadata
Go to start of metadata

Overview

This page details the steps necessary to configure an SBC to work properly with D-Series phones and Switchvox.  These same steps can also be applied to D-Series phones operating outside of Switchvox, in a DPMA environment.

It is recommended that your SBC be reset to factory default configuration, and that the default internal SIP profile be deleted before undertaking these steps. Note that factory defaulting your SBC configuration will remove all existing configurations and settings you may have made.

Below is a diagram showing example D-Series phones, an SBC, and a Switchvox system:

 Click here to expand...

SBC_Switchvox

The specific configuration steps and examples will be provided below.

Create SIP MESSAGE Routing Plans

D-Series phones have out-of-dialog communication with Switchvox using SIP MESSAGE packets.  These SIP MESSAGE packets are used to provision telephones as well as to exchange application specific information such as presence and parking lot information.  In order to ensure that these SIP MESSAGE packets are marshaled properly between the telephones and Switchvox, we need to create SIP MESSAGE Routing plans.

We will create two Routing Plans: External_swvx and Internal_swvx

It is recommended to save after completing each step, and then apply the configuration after all parameters have been set.

Create and edit External SIP MESSAGE Routing Plan:

From the SBC's Web UI Configuration/Routing/SIP Message Routing:

Routing for External_swvx:

 Click here to expand...
<extension name=“matchAnything”>
    <condition break=“on-true” regex=“all”>
        <regex field=“${sip_unsolicited_message}” expression=“MESSAGE”/>
        <regex field=“destination_number” expression=“(.*)”/>
        <action application=“export” data=“sip_h_X-Origination-Network=${network_addr}:${sip_network_port}”/>
        <action application=“log” data=“sip_h_X-Origination-Network=${network_addr}:${sip_network_port}”/>
        <action application=“sip_relay” data=“sofia/gateway/swvx_trunk/$1”/>
    </condition>
    <condition field=“destination_number” expression=“(.*)”>
        <action application=“respond” data=“200 OK”/>
    </condition>
</extension>

as seen here:

Create and edit Internal SIP MESSAGE Routing Plan:

From the SBC's Web UI Configuration/Routing/SIP Message Routing:

Routing for Internal_swvx:

 Click here to expand...
<extension name=“matchAnything”>
    <condition break=“on-true” regex=“all”>
        <regex field=“${sip_unsolicited_message}” expression=“MESSAGE”/>
        <regex field=“${sip_h_X-Origination-Network}” expression=“(.*:.*)”/>
        <action application=“sip_relay” data=“sofia/External_swvx/${sip_req_user}@{sip_h_X-Origination-Network}”/>
    </condition>
    <condition field=“destination_number” expression=“(.*)”>
        <action application=“respond” data=“200 OK”/>
    </condition>
</extension>

as seen here:


Create SIP Advanced Call Routing Plans

Having create routing plans for the SIP MESSAGE packets, we also need routing plans for the calls to/from the phones and Switchvox.  First, we will create an Internal-to-External routing plan, and then we will create an External-to-Internal routing plan.

Create and Edit Internal to External Routing Plan

From the SBC's Web UI Configuration/Routing/Call Routing:

Routing for advanced_internal_to_swvx:

 Click here to expand...
<extension name=“main” continue=“true”>
    <condition field=“${sip_req_uri}” expression=“^(.+)$”>
        <action application=“bridge” data=“${sofia_contact(External_Swvx/${destination_number}@10.27.75.121”/>
</extension>

as seen here:

Create and Edit External to Internal Routing Plan

From the SBC's Web UI Configuration/Routing/Call Routing:

Routing for advanced_external_to_swvx:

 Click here to expand...
<extension name=“main” continue=“true”>
    <condition field=“${sip_req_uri}” expression=“^(.+)$”>
        <action application=“bridge” data=“sofia/gateway/swvx_trunk/${sip_req_uri}”/>
    </condition>
</extension>

as seen here:

Create SIP Profiles and assign SIP MESSAGE and Call Routing Plans

Now that we have created the SIP MESSAGE and Call Routing plans, we need to create SIP Profiles and assign these routing plans to them.  We will first create an external SIP profile for remote telephones to connect externally, and then an internal SIP profile for telephones to connect internally.

Create and Edit the External profile

From the SBC's Web UI Configuration/Signaling/SIP Profiles:

Summary of external profile:

Assign SIP IP Address in General Section

Set Network Validation ACL to "IP Address" in Authentication section

Assign Call Routing Plan, enable and SIP Message routing plan and set Siprelay Allow Method to Message 

Create and Edit the Internal profile

From the SBC's Web UI Configuration/Signaling/SIP Profiles:

Summary of internal profile:

Assign SIP IP Address in General section

Assign Call Routing Plan, enable and SIP Message routing plan and set Siprelay Allow Method to Message 

Create Trunk

Now that SIP MESSAGE and Call Routing and SIP Profiles have ben built, we need to create a SIP Trunk between the SBC and Switchvox.  To do this, we will first set some SIP trunk parameters, and we will then assign the Internal SIP Profile to use this new Trunk.

From the SBC's Web UI Configuration/Signaling/SIP Trunks:

Create and Edit Domain(s)

Having created the Trunk, we now need to create a Domain for the trunk - swvx_trunk.

From the SBC's Web UI Configuration/Signaling/Domains:

In the Domain's configuration, we need to perform three actions:

  1. Enable Forward Registration / Authentication
  2. Set Forward SIP Profile to "Internal_swvx"
  3. Move swvx_trunk to the Used Trunk List



Bind Domain

Next, we need to bind the domain to the External_swvx SIP Profile.

Apply Configuration Changes and Start the SBC

Having completed the above steps, you may now apply the configuration changes and start the SBC.  The SBC is now configured.

Next, you will need to configure the phones from within Switchvox.

Configure Outbound Proxy in Phone Configuration

Within Switchvox, the D-Series phones need to be told to relay their traffic through the SBC. To accomplish this, the phones are configured with an Outbound Proxy which is the address of the SBC.  From within Switchvox, this can be found in Server/Phone Networks.

Local and Internally connected phones do not need the Outbound Proxy definition as they can reach Switchvox directly

For information on configuring the Outbound Proxy setting for phones that aren't attached to Switchvox, please see phone configuration documentation at https://www.wiki.asterisk.org

For this specific example, one might apply:

<outbound_proxy network_id="1" server="10.27.69.101" port="5060" />

to a phone's account element.

Verify Phones Connection via SBC to Switchvox

To verify that the phones are connected to Switchvox correctly, view Server>Connection Status> SIP Phones

From within this screen, you should see successful connection of phones to Switchvox.  Note that phones registering through the SBC will all appear to be registered via the SBC's internal address.






  • No labels