Asterisk Module Documentation for the yencap Agent Release: ASTERISK-yencap-1.0.0



Similar documents
VoIP Security Management

NCClient: A Python Library for NETCONF Client Applications

IceWarp Server Upgrade

SyncML Device Management

HDFS Cluster Installation Automation for TupleWare

Table of Contents. Overview Features Applications Hardware requirement Card dimensions Software Installation...

Install Guide Housatonic Project Plan for Web. Housatonic Software - Project Plan 365 App

Installing (1.8.7) 9/2/ Installing jgrasp

ARIS Education Package Process Design & Analysis Installation Guide. Version 7.2. Installation Guide

NaviCell Data Visualization Python API

Magento OpenERP Integration Documentation

Toolbox 3.3 Client-Server Configuration. Quick configuration guide. User manual. For the latest news. and the most up-todate.

TEL 500. Voice Communications. Week 1 Write Up. Session Initiation Protocol Lab. Submitted To: Prof Ronny Bull. By: Sai Sharan Korvi

TCB No September Technical Bulletin. GS FLX+ System & GS FLX System. Installation of 454 Sequencing System Software v2.

EMC Documentum Connector for Microsoft SharePoint

Easy configuration of NETCONF devices

CafePilot has 3 components: the Client, Server and Service Request Monitor (or SRM for short).

Outbreak questionnaires and data entry using the new EpiData modules

IBM WebSphere Application Server Version 7.0

Copyright 2014, SafeNet, Inc. All rights reserved.

Global TAC Secure FTP Site Customer User Guide

Installing & Customizing the OHMS Viewer Eric Weig

MarkLogic Server. Connector for SharePoint Administrator s Guide. MarkLogic 8 February, 2015

MOODLE Installation on Windows Platform

With this document you will be able to download and install all of the components needed for a full installation of PCRASTER for windows.

ALERT installation setup

Installing and Using the Zimbra Reporting Tool

Web Developer Toolkit for IBM Digital Experience

Quick Start Guide Joomla!: Guidelines for installation and setup. Why Joomla!

IBM WebSphere Application Server V8.5 lab Basic Liberty profile administration using the job manager

Cisco Enhanced Device Interface 2.2

Installation Guide: Delta Module Manager Launcher

Security Correlation Server Backup and Recovery Guide

How To Install Storegrid Server On Linux On A Microsoft Ubuntu 7.5 (Amd64) Or Ubuntu (Amd86) (Amd77) (Orchestra) (For Ubuntu) (Permanent) (Powerpoint

ultimo theme Update Guide Copyright Infortis All rights reserved

User Replicator USER S GUIDE

Web Services for Management Perl Library VMware ESX Server 3.5, VMware ESX Server 3i version 3.5, and VMware VirtualCenter 2.5

McAfee VirusScan Enterprise for Linux Software

Volume SYSLOG JUNCTION. User s Guide. User s Guide

Smartphone Pentest Framework v0.1. User Guide

LABORATORIUM 1 Setup and basic configuration of Asterisk BPX on Linux

Installation Guide for Basler pylon 2.3.x for Linux

Configuring Secure Socket Layer (SSL) for use with BPM 7.5.x

Installing GFI LANguard Network Security Scanner

Enterprise Historian 3BUF D1 Version 3.2/1 Hot Fix 1 for Patch 4 Release Notes

Installation, Configuration, and Usage

How To Install Linux Titan

NovaBACKUP Remote Workforce Version 12.5 Cloud Restore

Code Estimation Tools Directions for a Services Engagement

Amadeus Selling Platform 3.1 P120

Connect to an SSL-Enabled Microsoft SQL Server Database from PowerCenter on UNIX/Linux

IMPLEMENTING DIRECTORY SERVICES INTEGRATION WITH HELIX MEDIA LIBRARY Revision Date: September 2014

How-to configure Auditing for IDENTIKEY Authentication Server 3.2 to a remote Oracle Database on a standalone Microsoft machine.

How to - Install EventTracker and Change Audit Agent

DocAve Website Migrator 2.2 for Microsoft SharePoint

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

Planning, Implementing and Managing a Microsoft SharePoint 2003 Infrastructure

Lexia Network Installation Instructions

Compiere ERP & CRM Installation Instructions Linux System - EnterpriseDB

Installation Guide for the Intel Server Control

ultimo theme Update Guide Copyright Infortis All rights reserved

IBM SPSS Statistics for Linux Installation Instructions (Single User)

Linux Extension for AIDA64

Automatic updates for Websense data endpoints

AlphaCard ID Suite Small Business Server Installation Guide

Operate Backup Data. This how-to document will walk you through how to acquire and view your (M)SDS collection from the backup we send you.

WORKFLOW INTEGRATOR INSTALLATION GUIDE

IISADMPWD. Replacement Tool v1.2. Installation and Configuration Guide. Instructions to Install and Configure IISADMPWD. Web Active Directory, LLC

Implementing Existing Management Protocols on Constrained Devices. IETF 81, Quebec,

Mercury User Guide v1.1

3D Restoration (Kine3D -3)

How To Backup In Cisco Uk Central And Cisco Cusd (Cisco) Cusm (Custodian) (Cusd) (Uk) (Usd).Com) (Ucs) (Cyse

Media Exchange really puts the power in the hands of our creative users, enabling them to collaborate globally regardless of location and file size.

Using the Synchronization Client

HP Server Automation. Software Versions: 7.8x, 9.0x, 9.1x. Software Discovery Reference Guide

TUTORIAL ECLIPSE CLASSIC VERSION: ON SETTING UP OPENERP 6.1 SOURCE CODE UNDER WINDOWS PLATFORM. by Pir Khurram Rashdi

Bubble Code Review for Magento

LT Auditor+ for Windows

Dell Repository Manager Tutorial

SBOP Repository Explorer. Installation and Configuration Guide v (2014)

Installation and Usage Guide

Kaltura Extension for IBM Connections Deployment Guide. Version: 1.0

Shop by Manufacturer Custom Module for Magento

Department of Veterans Affairs VistA Integration Adapter Release Enhancement Manual

X-POS GUIDE. v3.4 INSTALLATION SmartOSC and X-POS

Apache and Tomcat Clustering Configuration Table of Contents

How To Install The Snow Active Directory Discovery Service On Windows (Windows) (Windows 7) (Powerbook) (For Windows) (Amd64) (Apple) (Macintosh) (Netbook) And (Windows

D83167 Oracle Data Integrator 12c: Integration and Administration

Signiant Agent installation

darkstat - a network traffic analyzer Introduction Installation LinuxFocus article number by Mario M.

Working with YANG Data Models and Instances Using (Mainly) pyang

Web Enabled Software for 8614xB-series Optical Spectrum Analyzers. Installation Guide

GAUSS 9.0. Quick-Start Guide

Installing Microsoft SQL Server Linux ODBC Driver For Use With Kognitio Analytical Platform

2. Installation Instructions - Windows (Download)

PayPac - Web module ASP.Net Installation procedure

Oracle Database. Products Available on the Oracle Database Examples Media. Oracle Database Examples. Examples Installation Guide 11g Release 2 (11.

Transcription:

Asterisk Module Documentation for the yencap Agent Release: ASTERISK-yencap-1.0.0 Bourdellon Jerome, Bourdellon.Jerome@loria.fr Radu STATE, state@loria.fr Madynes Research team LORIA-INRIA Lorraine rue du jardin botanique Villers-les-Nancy FRANCE 1

Contents 1 Installation 3 1.1 System Requirements........................ 3 1.2 Installation.............................. 3 1.3 Launching the Module........................ 3 2 Usage 4 2.1 Presentation.............................. 4 2.2 Netconf operations.......................... 4 2.3 Examples............................... 4 2.3.1 Get-config........................... 4 2.3.2 Get.............................. 5 2.3.3 Edit-config.......................... 5 2.3.4 Copy-config.......................... 5 2

1 Installation 1.1 System Requirements Python: 2.3.0 or newer. The whole implementation of the Module is done in Python so, check the appropriate Python package for your distribution or download the sources from www.python.org. 4Suite: 1.0 alpha 4 or newer. The XML processing is done entirely via this library. Check the package for your distribution or download the sources from it webpage. In the later case you should untar the sources and invoke python setup.py install in the top-level source directory. Yapps: version 2 or newer. The parser of the data from the device is done by a class generated by this parser generator. Download the zip file from the YAPPS webpage. The files included in the zip don t need to be compiled. Unzip them in your library folder or any place you consider. Add the path of the folder you decided to the $PYTHONPATH environment variable. Asterisk:Asterisk is a software Pbx, it runs in Linux. Check the package for your distribution or download the sources from it webpage. NetConf Agent[?]: Check in our page the last release of it. 1.2 Installation We provide the source code of the ASTERISK Module, to install is quite easy, copy the main folder ASTERISK Module to the folder Module in the Server Agent and execute python setup.py. In order to the Agent to register this module, a node like the one show next should be added to the modules.xml file. For more information check the documentation of the Agent. <module> <name>asteriskmodule</name> <mainfilename>asteriskmodule</mainfilename> <classname>asteriskmodule</classname> <xpath>/netconf/asterisk</xpath> <xsdfile>asterisk.xsd</xsdfile> </module> 1.3 Launching the Module As the ASTERISK implementation is a module of the NetConf agent yencap, it will automatically launch it self if the step specified in the installation were followed. Minimal requirements : Pentium III with 256 Mb Root access privileges 3

2 Usage 2.1 Presentation THe ASTERISK Module is responsible for the configuration of the Asterisk Pbx. As the NetConf protcol uses XML configuration, the Module had to translate the several plain text configuration files of Asterisk into one single XML configuration Document. The resulting XML configuration is as follows <asterisk> <file name="asterisk.conf"> <section name="global"> <attribute name="astetcdir">/etc/asterisk</attribute> <attribute name="astvarlibdir">/var/lib/asterisk</attribute> <attribute name="astrundir">/var/run/asterisk</attribute> </section> </file> <file name="sip.conf"> <section name="cisco1"> <attribute name="username">cisco</attribute> <attribute name="secret">blah</attribute> <attribute name="qualify">200</attribute> <attribute name="type">friend</attribute> </section> </file> </asterisk> 2.2 Netconf operations The Aterisk Module is able to perform every NetConf Operations ( get-config, copy-config, edit-config, etc...). get-config / get : When a get request is received, the Module generates the XML configuration Document by mapping every configuration files in /etc/asterisk into a XML node, then the module return the resulting Document to the agent. copy-config : When the Module receive a copy-config, it s able to re-generates the configruation files from the received XML Document. edit-config : The edit-config is made by the agent, it s a combination of a get-config and a copy-config. Others : The Module is not responsible for the others operations which are managed by the agent itself. 2.3 Examples 2.3.1 Get-config The get-config operation allows the manager to retrieve all or only a specific part of the configuration of the device. <rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <get-config> <source> <running> 4

</rpc> </source> <filter type="xpath"> /netconf/asterisk/file[@name="sip.conf"] </filter> </et-config> 2.3.2 Get The get operation is almost like the get-config operation except that it returns informations on the device. The informations are not implemented so the get returns the same configuration Document than the get-config. <rpc message-id="2" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <get> <filter type="xpath"> /netconf/asterisk/file[@name="sip.conf"] </filter> </get> </rpc> 2.3.3 Edit-config The edit-config operation allows the manager to make modification(s) to the Asterisk Configuration, such as add a new user in the sip.conf file. <rpc message-id="3" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> <netconf> <asterisk> <file name="sip.conf"> <section name="new_user" xc:operation="create"> <attribute name="username">new</attribute> <attribute name="secret">password</attribute> <attribute name="qualify">200</attribute> <attribute name="type">friend</attribute> </section> </file> </asterisk> </netconf> </config> </edit-config> </rpc> 2.3.4 Copy-config The copy-config operation allows the user to replace, for instance, the running configuration by the candidate configuration. <rpc message-id="4" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <copy-config> <source> <candidate/> </source> <target> <running/> 5

</rpc> </target> </copy-config> 6