"Fossies" - the Fresh Open Source Software Archive

Member "opensips-3.0.1/net/proto_udp/README" (16 Apr 2019, 2301 Bytes) of package /linux/misc/opensips-3.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 proto_udp Module
    2 
    3 OpenSIPS Project
    4 
    5 Edited by
    6 
    7 Liviu Chircu
    8 
    9    Copyright © 2015 OpenSIPS Project
   10      __________________________________________________________
   11 
   12    Table of Contents
   13 
   14    1. Admin Guide
   15 
   16         1.1. Overview
   17         1.2. Dependencies
   18 
   19               1.2.1. OpenSIPS Modules
   20               1.2.2. External Libraries or Applications
   21 
   22         1.3. Exported Parameters
   23 
   24               1.3.1. udp_port (integer)
   25 
   26    2. Frequently Asked Questions
   27 
   28    List of Examples
   29 
   30    1.1. Set udp_port parameter
   31 
   32 Chapter 1. Admin Guide
   33 
   34 1.1. Overview
   35 
   36    The proto_udp module is a built-in transport module which
   37    exports the required logic in order to handle UDP-based
   38    communication. (socket initialization and send/recv primitives
   39    to be used by higher-level network layers)
   40 
   41    Once loaded, you will be able to define "udp:" listeners in
   42    your script.
   43 
   44 1.2. Dependencies
   45 
   46 1.2.1. OpenSIPS Modules
   47 
   48    The following modules must be loaded before this module:
   49      * None.
   50 
   51 1.2.2. External Libraries or Applications
   52 
   53    The following libraries or applications must be installed
   54    before running OpenSIPS with this module loaded:
   55      * None.
   56 
   57 1.3. Exported Parameters
   58 
   59 1.3.1. udp_port (integer)
   60 
   61    The default port to be used for all UDP related operation. Be
   62    careful as the default port impacts both the SIP listening part
   63    (if no port is defined in the UDP listeners) and the SIP
   64    sending part (if the destination URI has no explicit port).
   65 
   66    If you want to change only the listening port for UDP, use the
   67    port option in the SIP listener defintion.
   68 
   69    Default value is 5060.
   70 
   71    Example 1.1. Set udp_port parameter
   72 ...
   73 modparam("proto_udp", "udp_port", 5070)
   74 ...
   75 
   76 Chapter 2. Frequently Asked Questions
   77 
   78    2.1.
   79 
   80        After switching to OpenSIPS 2.1, I'm getting this error:
   81        "listeners found for protocol udp, but no module can handle it"
   82 
   83        You need to load the "proto_udp" module. In your script, make
   84        sure you do a loadmodule "proto_udp.so" after setting the
   85        mpath.
   86 
   87    2.2.
   88 
   89        I cannot locate "proto_udp.so". Where is it?
   90 
   91        The "proto_udp" and "proto_tcp" modules are simply built into
   92        the opensips binary by default. They are not available as
   93        shared libraries, but look like modules for code consistency
   94        reasons.