Integrating a new service into sipX

From SIPfoundry sipx, The Open Source SIP PBX for Linux - Calivia

Jump to: navigation, search

Image:Ver3.6.png TODO: Clean this page up

This is so sipXpbx will start and stop your service along with all other services

Create a file in

File: /etc/sipxpbx/process.d/<my process name>.process.xml

<?xml version="1.0"?>
 <watchdog-process xmlns="http://www.sipfoundry.org/sipX/schema/xml/watchdogprocess-00-00">
  <process_definitions>
    <group name="MyGroup" >
        <process name="MyProcessName">
            <dependentdelay wait="0" />
            <stdout file="/dev/null" />
            <stderr file="/dev/null" />
            <stdin  file="" />

            <start control="true">
                <execute command="my-startup-command"
                         parameters=""
                         defaultdir="my-startup-working-directory" />
            </start>

            <!-- If no execute, then kill -->
            <stop control="true" />

            <!-- If no execute, then stop-start -->
            <restart control="true" />

        </process>
    </group>
  </process_definitions>
  <watchdog>
   <monitor>
      <monitor-process name="MyProcessName" restart="enable" max_restarts="3" report="enable" max_reports="3">
         <failure_contact method="email">admin-email-address@example.org</failure_contact>
      </monitor-process>
   </monitor>
  </watchdog>
</watchdog-process>

Personal tools