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

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
install:upgrade:4.4.x-to-5.0.0 [2017/03/18 08:03]
miconda [Impacted Modules]
install:upgrade:4.4.x-to-5.0.0 [2018/03/09 09:11]
marco.capetta [Removed Modules]
Line 42: Line 42:
  
   * cpl-c => cplc   * cpl-c => cplc
-  * janssonrpc-c => jsonrpcc+  * janssonrpc-c => janssonrpcc
   * jsonrpc-c => jsonrpcc   * jsonrpc-c => jsonrpcc
   * jsonrpc-s => jsonrpcs   * jsonrpc-s => jsonrpcs
Line 115: Line 115:
  
 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. 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.txt ยท Last modified: 2018/03/09 09:11 by marco.capetta