event_xmlrpc Module

Razvan Crainea

OpenSIPS Solutions

Edited by

Razvan Crainea

Table of Contents

1. Admin Guide
1.1. Overview
1.2. XMLRPC socket syntax
1.3. Dependencies
1.3.1. OpenSIPS Modules
1.3.2. External Libraries or Applications
1.4. Exported Parameters
1.5. Exported Functions
1.6. Example

List of Examples

1.1. E_PIKE_BLOCKED event
1.2. XMLRPC socket

Chapter 1. Admin Guide

1.1. Overview

This module is an implementation of an XMLRPC client used to notify XMLRPC servers whenever certain notifications are raised by OpenSIPS. It acts as a transport layer for the Event Notification Interface.

Basicly, the module executes a remote procedure call when an event is raised from OpenSIPS's script, core or modules using the Event Interface.

In order to be notified, an XMLRPC server has to subscribe for a certain event provided by OpenSIPS. This can be done using the generic MI Interface (event_subscribe function) or from OpenSIPS script (subscribe_event core function).

1.2. XMLRPC socket syntax

'xmlrpc:' host ':' port ':' method


  • 'xmlrpc:' - informs the Event Interface that the events sent to this subscriber should be handled by the event_xmlrpc module.

  • host - host name of the XMLRPC server.

  • port - port of the XMLRPC server.

  • method - method called remotely by the XMLRPC client.

    NOTE: the client does not wait for a response from the XMLRPC server.

1.3. Dependencies

1.3.1. OpenSIPS Modules

The following modules must be loaded before this module:

  • none.

1.3.2. External Libraries or Applications

The following libraries or applications must be installed before running OpenSIPS with this module loaded:

  • none

1.4. Exported Parameters

No parameter exported by this module.

1.5. Exported Functions

No function exported to be used from configuration file.

1.6. Example

This is an example of an event raised by the pike module when it decides an ip should be blocked:

Example 1.1. E_PIKE_BLOCKED event

Connection: close.
User-Agent: OpenSIPS XMLRPC Notifier.
Content-type: text/xml.
Content-length: 240.
<?xml version="1.0"?>

Example 1.2. XMLRPC socket

	# calls the 'block_ip' function