O'Reilly logo

Practical VoIP Using VOCAL by Luan Dang, Cullen Jennings, David Kelly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Voice Mail Feature Server

The FSVM is basically a proxy server running a unique CPL script that enables it to redirect calls to available UAVMs. The <vmredirect> tag is proprietary and used to

Voice Mail application architecture example

Figure 14-1. Voice Mail application architecture example

perform the tasks specific to FSVM . See the upcoming "Call Processing" section for more information. Here is the CPL script used by the FSVM:

    <?xml version='1.0' ?>
    <!DOCTYPE cpl SYSTEM 'cpl.dtd'>
    <cpl>
        <incoming>
             <vmredirect/>
         </incoming>
    </cpl>

The FSVM uses many of the classes associated with the Feature server, including FsFeature, FsConfigFile, and FsUsers. See Chapter 13 for more information about those classes.

Initialization

Initializing the FSVM involves provisioning the server and instantiating the VmBuilder and VmBasicProxy classes.

Provisioning

The FSVM configuration, stored in the file Features/<IP of FSVM>:<Port>.xml, normally looks like the following:

    <featureServer host="192.168.16.229" port="5070"><type value="Voice Mail"></type>
    <group value="Voice mailGroup"></group>
    <uaVMServers firstPort="6396" host="192.168.16.229" lastPort="6399"></uaVMServers</ featureServer>

Data structures

The FSVM uses the class structures found in the Feature server code including the following:

VmBasicProxy

Derived from the base class BasicProxy.

VmBuilder

Derived from the base Builder class.

VmPortContainer

Contains a queue of UAVMs (IP ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required