Category:DSI 3.0 - XML Scripting

From Skip2PBX-WIKI

Jump to: navigation, search

Introduction

Skip2PBX version 3.0 supports XML scripting to customize the functions.

The XML scripting mechanism is based on events and actions. In other words you can define the Skip2PBX reaction to a predefined set of events.
One event can be a Skype event, a PBX event or a user defined event and one action can be for example to run a script, to answer a call or to send a chat message.

In a standard Skip2PBX 3.0 installation the base XML file is: /s2papps/igx/config/actions.xml.

This file is basically composed by two sections: skype-events and chan-events. As you can immagine skype-events contains the list of actions that must be executed on certain Skype events and chan-events contains the list of actions that must be executed on certain PBX events.

In order to make the actions.xml file smaller and well organized it contains special tags for external files inclusion.

File: /s2papps/igx/config/actions.xml

<?xml version="1.0" encoding="UTF-8"?>
<config>
   <skype-events>
      <?include actions-skype.xml ?>
   </skype-events>

   <chan-events>
      <?include actions-chan.xml ?>
   </chan-events>
</config>

This simple and self-explaining code shows you that actions-skype.xml file contains the skype-events and actions-chan.xml file contains the chan-events.

Both the files are included in the same /s2papps/igx/config path.

Pages in category "DSI 3.0 - XML Scripting"

There is one page in this category.

S

Personal tools