Skip to content

PROTO_UDP module

The proto_udp module is a built-in transport module which exports the required logic in order to handle UDP-based communication. (socket initialization and send/recv primitives to be used by higher-level network layers)

Once loaded, you will be able to define “udp:” listeners in your script.

The following modules must be loaded before this module:

  • None.

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

  • None.

The default port to be used for all UDP related operation. Be careful as the default port impacts both the SIP listening part (if no port is defined in the UDP listeners) and the SIP sending part (if the destination URI has no explicit port).

If you want to change only the listening port for UDP, use the port option in the SIP listener defintion.

Default value is 5060.

Set udp_port parameter
...
modparam("proto_udp", "udp_port", 5070)
...

Q: After switching to OpenSIPS 2.1, I’m getting this error: “listeners found for protocol udp, but no module can handle it”

You need to load the “proto_udp” module. In your script, make sure you do a loadmodule “proto_udp.so” after setting the mpath.

Q: I cannot locate “proto_udp.so”. Where is it?

The “proto_udp” and “proto_tcp” modules are simply built into the opensips binary by default. They are not available as shared libraries, but look like modules for code consistency reasons.

Top contributors by DevScore(1), authored commits(2) and lines added/removed(3)

#NameDevScoreCommitsLines++Lines—
1.Bogdan-Andrei Iancu (@bogdan-iancu)151036616
2.Razvan Crainea (@razvancrainea)14123150
3.Liviu Chircu (@liviuchircu)631601
4.Stefan Darius (@dariusstefan)5310215
5.Maksym Sobolyev (@sobomax)4299
6.Vlad Patrascu (@rvlad-patrascu)4232
7.Zero King (@l2dy)3111
8.Peter Lemenkov (@lemenkov)3111
9.Ionut Ionita (@ionutrazvanionita)3111

(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

#NameCommit Activity
1.Razvan Crainea (@razvancrainea)Feb 2015 - Jul 2026
2.Stefan Darius (@dariusstefan)Jun 2026 - Jul 2026
3.Maksym Sobolyev (@sobomax)Feb 2023 - Nov 2023
4.Bogdan-Andrei Iancu (@bogdan-iancu)Feb 2015 - Apr 2021
5.Liviu Chircu (@liviuchircu)Mar 2015 - Jul 2020
6.Zero King (@l2dy)Mar 2020 - Mar 2020
7.Vlad Patrascu (@rvlad-patrascu)May 2017 - Feb 2019
8.Peter Lemenkov (@lemenkov)Jun 2018 - Jun 2018
9.Ionut Ionita (@ionutrazvanionita)Feb 2016 - Feb 2016

(1) including any documentation-related commits, excluding merge commits

Last edited by: Razvan Crainea (@razvancrainea), Zero King (@l2dy), Peter Lemenkov (@lemenkov), Bogdan-Andrei Iancu (@bogdan-iancu), Liviu Chircu (@liviuchircu).

All documentation files (i.e. .md extension) are licensed under the Creative Common License 4.0