EVENT_XMLRPC module
Admin Guide
Section titled “Admin Guide”Overview
Section titled “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).
XMLRPC socket syntax
Section titled “XMLRPC socket syntax”‘xmlrpc:’ host ’:’ port ’:’ method
Meanings:
- ‘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.
Dependencies
Section titled “Dependencies”OpenSIPS Modules
Section titled “OpenSIPS Modules”The following modules must be loaded before this module:
- none.
External Libraries or Applications
Section titled “External Libraries or Applications”The following libraries or applications must be installed before running OpenSIPS with this module loaded:
- none
Exported Parameters
Section titled “Exported Parameters”use_struct_param (integer)
Section titled “use_struct_param (integer)”When raising an event, pack the name and value of the parameters in a XMLRPC structure. This provides an easier way for some XMLRPC server implementations to interpret the parameters. Set it to zero to disable or to non-zero to enable it.
Default value is “0 (disabled)“.
...modparam("event_xmlrpc", "use_struct_param", 1)...sync_mode (integer)
Section titled “sync_mode (integer)”Specifies whether an event raise operates synchronous or asynchronous relative to the process where the raise is triggered.In synchronous mode the process waits for the status of the raise from the actual worker process.In asynchronous mode the process continues its operation without receiving any confirmation.
Default value is “0 (asynchronous)”.
...modparam("event_xmlrpc", "sync_mode", 1)...Exported Functions
Section titled “Exported Functions”No function exported to be used from configuration file.
Example
Section titled “Example”This is an example of an event raised by the pike module when it decides an ip should be blocked:
POST /RPC2 HTTP/1.1.Host: 127.0.0.1:8081.Connection: close.User-Agent: OpenSIPS XMLRPC Notifier.Content-type: text/xml.Content-length: 240. .<?xml version="1.0"?><methodCall> <methodName>e_dummy_h</methodName> <params> <param> <value><string>E_MY_EVENT</string></value> </param> <param> <name>ip</name> <value><string>192.168.2.11</string></value> </param> </params></methodCall># calls the 'block_ip' functionxmlrpc:127.0.0.1:8080:block_ipdoc copyrights:
Contributors
Section titled “Contributors”By Commit Statistics
Section titled “By Commit Statistics”Top contributors by DevScore(1), authored commits(2) and lines added/removed(3)
| # | Name | DevScore | Commits | Lines++ | Lines— |
|---|---|---|---|---|---|
| 1. | Razvan Crainea (@razvancrainea) | 32 | 20 | 1240 | 47 |
| 2. | Liviu Chircu (@liviuchircu) | 9 | 7 | 70 | 38 |
| 3. | Stefan Darius (@dariusstefan) | 7 | 4 | 180 | 23 |
| 4. | Vlad Patrascu (@rvlad-patrascu) | 6 | 3 | 156 | 13 |
| 5. | Bogdan-Andrei Iancu (@bogdan-iancu) | 4 | 2 | 2 | 1 |
| 6. | Ionut Ionita (@ionutrazvanionita) | 3 | 1 | 106 | 31 |
| 7. | Ryan Bullock (@rrb3942) | 2 | 1 | 8 | 0 |
| 8. | Maksym Sobolyev (@sobomax) | 2 | 1 | 1 | 0 |
(1) DevScore = author_commits + author_lines_added / (project_lines_added / project_commits) + author_lines_deleted / (project_lines_deleted / project_commits)
(2) including any documentation-related commits, excluding merge commits
(3) ignoring whitespace edits, renamed files and auto-generated files
By Commit Activity
Section titled “By Commit Activity”| # | Name | Commit Activity |
|---|---|---|
| 1. | Stefan Darius (@dariusstefan) | Jun 2026 - Jul 2026 |
| 2. | Razvan Crainea (@razvancrainea) | May 2012 - Jun 2026 |
| 3. | Liviu Chircu (@liviuchircu) | Oct 2013 - Nov 2018 |
| 4. | Bogdan-Andrei Iancu (@bogdan-iancu) | Oct 2014 - Jun 2018 |
| 5. | Vlad Patrascu (@rvlad-patrascu) | Jul 2015 - May 2017 |
| 6. | Maksym Sobolyev (@sobomax) | Feb 2017 - Feb 2017 |
| 7. | Ionut Ionita (@ionutrazvanionita) | Jan 2016 - Jan 2016 |
| 8. | Ryan Bullock (@rrb3942) | Jan 2013 - Jan 2013 |
(1) including any documentation-related commits, excluding merge commits
Documentation
Section titled “Documentation”Contributors
Section titled “Contributors”Last edited by: Razvan Crainea (@razvancrainea), Bogdan-Andrei Iancu (@bogdan-iancu), Liviu Chircu (@liviuchircu), Vlad Patrascu (@rvlad-patrascu).
License
Section titled “License”All documentation files (i.e. .md extension) are licensed under the Creative Common License 4.0