User Tools

Site Tools


install:upgrade:4.4.x-to-5.0.0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
install:upgrade:4.4.x-to-5.0.0 [2017/02/26 23:51]
miconda created
install:upgrade:4.4.x-to-5.0.0 [2018/03/09 09:11] (current)
marco.capetta [Removed Modules]
Line 37: Line 37:
 The **pua_rpc** module can be used instead to trigger presence PUBLISH or SUBSCRIBE requests via RPC commands. The **pua_rpc** module can be used instead to trigger presence PUBLISH or SUBSCRIBE requests via RPC commands.
  
 +=== purple ===
 +
 +It is no longer working, not being updated to use latest libs for a very long time
 +
 +=== iptrtpproxy ===
 +
 +It is no longer working, not being updated to use latest libs for a very long time
 ==== Renamed Modules ==== ==== Renamed Modules ====
  
Line 42: Line 49:
  
   * cpl-c => cplc   * cpl-c => cplc
-  * janssonrpc-c => jsonrpcc+  * janssonrpc-c => janssonrpcc
   * jsonrpc-c => jsonrpcc   * jsonrpc-c => jsonrpcc
   * jsonrpc-s => jsonrpcs   * jsonrpc-s => jsonrpcs
 +
 +==== Impacted Modules ====
 +
 +=== jsonrpcs ===
 +
 +  * the default transports are set to FIFO file and unixsocket file, allowing to be used with kamctl and kamacmd via default kamailio.cfg
 +  * if you use it together with **xhttp** module (json-rpc via http), then you have to set the **transport** parameter accordingly
 +
 +=== utils ===
 +
 +  * http_query() function has been removed, use http_client module instead
 ===== Internal Libraries ===== ===== Internal Libraries =====
  
Line 98: Line 116:
  
 </code> </code>
 +
 +===== Tools =====
 +
 +==== kamctl ====
 +
 +By default, kamctl uses now JSONRPC protocol over FIFO file, instead of the old MI protocol. The commands are more or less the same, but the output is now in JSON format, incompatible with the old output.
 +
 +===== Config Snippets =====
 +
 +This section collects configuration file snippets that can help migrating to v5.0.
 +
 +==== Replace MI With RPC ====
 +
 +The default configuration file for v4.4 has following snippets using MI components:
 +
 +<code c>
 +...
 +loadmodule "mi_fifo.so"
 +...
 +loadmodule "mi_rpc.so"
 +...
 +# ----- mi_fifo params -----
 +#modparam("mi_fifo", "fifo_name", "/var/run/kamailio/kamailio_fifo")
 +...
 +</code>
 +
 +Replace them with next snippets to upgrade to v5.0:
 +
 +<code c>
 +...
 +loadmodule "jsonrpcs.so"
 +...
 +# ----- jsonrpcs params -----
 +modparam("jsonrpcs", "pretty_format", 1)
 +/* set the path to RPC fifo control file */
 +# modparam("jsonrpcs", "fifo_name", "/var/run/kamailio/kamailio_rpc.fifo")
 +/* set the path to RPC unix socket control file */
 +# modparam("jsonrpcs", "dgram_socket", "/var/run/kamailio/kamailio_rpc.sock")
 +...
 +</code>
 +
install/upgrade/4.4.x-to-5.0.0.1488149499.txt.gz ยท Last modified: 2017/02/26 23:51 by miconda