EVENT_DATAGRAM module
Admin Guide
Section titled “Admin Guide”Overview
Section titled “Overview”This is a module which provides a UNIX/UDP SOCKET transport layer implementation for the Event Interface.
DATAGRAM events syntax
Section titled “DATAGRAM events syntax”The raised events will follow the following grammar:
- event = event_name (argument ‘\n’)*
- event_name = non-quoted_string’\n’
- argument = ((arg_name ’::’)? arg_value)? | (arg_value)
- arg_name = not-quoted_string
- arg_value = not-quoted_string | ’”’ string ’”’
- not-quoted_string = string - {’,”,\n,\r}
The event name can contain any non-quoted string character, but it is recommended to follow the syntax: E_MODULE_NAME_EXTRA_NAME
DATAGRAM socket syntax
Section titled “DATAGRAM socket syntax”There are two types of sockets used by this module, based on the sockets type. An UNIX socket should follow this syntax: [‘unix:’] unix_socket_path
An UDP socket should follow this syntax: ‘udp:’ address ’:’ port
Dependencies
Section titled “Dependencies”OpenSIPS Modules
Section titled “OpenSIPS Modules”The following modules must be loaded before this module:
- No dependencies on other OpenSIPS modules.
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”No parameter exported by this module.
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:
E_PIKE_BLOCKEDip::192.168.2.11unix:/tmp/opensips_event.sockudp:127.0.0.1:8081Frequently Asked Questions
Section titled “Frequently Asked Questions”Q: Both UNIX and UDP type of socket can be used to notify the events?
Yes, you can use the both types.
Q: What is the maximum lenght of a datagram event?
The maximum length of a datagram event is 65457 bytes.
Q: Where can I find more about OpenSIPS?
Take a look at http://www.opensips.org/.
Q: Where can I post a question about this module?
First at all check if your question was already answered on one of our mailing lists:
E-mails regarding any stable OpenSIPS release should be sent to users@lists.opensips.org and e-mails regarding development versions should be sent to devel@lists.opensips.org.
If you want to keep the mail private, send it to users@lists.opensips.org.
Q: How can I report a bug?
Please follow the guidelines provided at: https://github.com/OpenSIPS/opensips/issues.
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) | 21 | 12 | 844 | 34 |
| 2. | Stefan Darius (@dariusstefan) | 5 | 2 | 163 | 14 |
(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 2011 - Jun 2026 |
(1) including any documentation-related commits, excluding merge commits
Documentation
Section titled “Documentation”Contributors
Section titled “Contributors”Last edited by: Razvan Crainea (@razvancrainea).
License
Section titled “License”All documentation files (i.e. .md extension) are licensed under the Creative Common License 4.0