Skip to content

Commit cc9309c

Browse files
committed
Rework Datagram Socket parameters
- Add UDS specific timeout. - Add buffer size option. - Default to UDP (do not define default socket).
1 parent 1953ab0 commit cc9309c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ fifo used for the reply from OpenSIPS (Default: `/tmp`)
133133
(Default: `http://127.0.0.1:8888/mi`).
134134
* `datagram_ip`: The default IP used when `datagram` `communication_type` is used (Default: `127.0.0.1`)
135135
* `datagram_port`: The default port used when `datagram` `communication_type` is used (Default: `8080`)
136-
* `datagram_unix_socket`: The default unix socket used when `datagram` `communication_type` is used (Default: `/tmp/opensips.sock`)
136+
* `datagram_timeout`: Timeout for Datagram Socket.
137+
* `datagram_buffer_size`: Buffer size for Datagram Socket.
138+
* `datagram_unix_socket`: Unix Domain Socket to use instead of UDP.
137139

138140
Each module can use each of the parameters above, but can also declare their
139141
own. You can find in each module's documentation page the parameters that they

opensipscli/defaults.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767
"url": "http://127.0.0.1:8888/mi",
6868
"datagram_ip": "127.0.0.1",
6969
"datagram_port": "8080",
70-
"datagram_unix_socket": "/tmp/opensips.sock",
70+
"datagram_timeout": "1",
71+
"datagram_buffer_size": "65535",
7172

7273
# database module
7374
"database_url": "mysql://opensips:opensipsrw@localhost",

opensipscli/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
## along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
##
1919

20-
__version__ = '0.3.2'
20+
__version__ = '0.3.3'
2121

2222
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4

0 commit comments

Comments
 (0)