management_api.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Management API's in Kamailio
  2. ------------------------------
  3. Kamailio has an API based on RPC. This allows modules and core to expose commands that can be
  4. issued by external applications. Commands can change states, read status variables or expose
  5. internal structures.
  6. There are multiple ways to integrate your application to this interface. By adding modules,
  7. you can adapt the interface to one of several protocols supported:
  8. - XML-rpc
  9. - binrpc over various transports
  10. - Kamailio's MI - the management interface
  11. The MI interfaces can often run over Unix fifo sockets, UDP or TCP connections.
  12. The "kamcmd" application is the command line tool used to connect to Kamailio
  13. over the command line. Use it to discover available commands.
  14. For backwards compatibilty, the kamctrl and kamdbctrl commands are still supported.
  15. Detailed information about these interfaces are to be found on the main sip-router.org
  16. web site in the wiki section.
  17. Modules
  18. -------
  19. mi_rpc Exports Kamailio's MI interface over Kamailio's RPC interface
  20. xmlrpc Exports the RPC interface using XML-rpc
  21. ctl Implements the binrpc transport interface for SER rpcs
  22. Also implements the old SER fifo-based management interface.
  23. Kamailio modules (modules_k)
  24. ----------------------------
  25. mi_datagram Kamailio MI interface- UDP version
  26. mi_fifo Kamailio MI interface- FIFO version
  27. mi_xmlrpc Kamailio MI interface- XML-rpc version
  28. The Kamailio MI interface is considered deprecated and will be supported
  29. only for backwards compatibility. New development is encouraged to use the
  30. RPC interface through one of the modules used to connect to it.
  31. The modules that currently only has MI interfaces will be changed to support
  32. the RPC interface in a coming release.