Fine tuning gateway routing

By default, the Video Gateway uses the gateway.ccxml application to route calls. This application uses the information found in the gateway routing table to route incoming calls. If there is no route in the gateway routing table that matches the To and From fields of an inbound call, the call is automatically rejected.

The gateway.ccxml application is defined in the CCXML Application Configuration page on the Provisioning menu of the Vision Console. The Number Range field shows .* which represents a wild card that matches all dialed numbers. The Initial URI field shows file:///opt/nms/vx/callserver/www/ccxml/gateway.ccxml.

If you need routing functionality that goes beyond what gateway.ccxml provides, you can do any combination of the following:

Creating a new gateway application for routing

To create a new CCXML application that uses the gateway routing table, follow these steps:

Step

Action

1

Copy the gateway.ccxml application to use as an application template.

2

Modify the logic of the new application, as needed.

3

Define the new application to the Vision Console, as described in Managing CCXML applications. When you define the new application, add it to the Gateway section of the CCXML Application Configuration page.

Creating a custom application for routing

To create a custom CCXML application for routing, follow these steps:

Step

Action

1

Write the new application in CCXML, and include the desired routing functionality in the application.

2

Add the application to the Vision Console as described in Managing CCXML applications. When you define the new application, add it to the Custom section of the CCXML Application Configuration page.

Example

The following example shows the application definition for a new gateway application. In this example, calls whose dialed numbers match 333 use the newgateway.ccxml application for routing. All other calls use gateway.ccxml. Both applications reference the gateway routing table.

Gateway applications:

Number Range   Initial URI
333            file:///opt/nms/vx/callserver/www/ccxml/newgateway.ccxml
.*             file:///opt/nms/vx/callserver/www/ccxml/gateway.ccxml
 

The following example shows the application definition for a new custom application. In this example, calls whose dialed numbers match 222 use dialog server 127:0.0.1:5070 and are routed to route 2.

Custom applications:

Number Range  Initial URI                            Dialog Servers        Outbound Routes
222           file:///opt/nms/vx/callserver/www/     127.0.0.1:5070[0]     route-2[0]  
               ccxml/customapp.ccxml