ChangeLog 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. Release: Kamcli v3.0.0 (Feb 21, 2026)
  2. New features:
  3. * cmd_acc: added command to reset missed calls table structure
  4. * cmd_acc: added command to reset acc table structure
  5. * cmd_pstrap: open subprocess output in text mode
  6. * cmd_acc: added report for most active source IP addresses
  7. * cmd_acc: rename variable used for query field
  8. * ioutils: array for table values of ioutils_dict_print()
  9. * cmd_acc: new command method-stats
  10. * ioutils: helper function to print a dictionary with different formats
  11. * cmd_acc: added report top-odst
  12. * cmd_acc: added report for top dst
  13. * cmd_acc: check if interval is greater than 0
  14. * cmd_acc: added time interval cli option for acc report
  15. * cmd_acc: adde command to print acc reports
  16. * cmd_acc: added command to list missed calls records
  17. * cli.py: replace deprecated SafeConfigParser() with ConfigParser()
  18. * iorpc.py: replace deprecated isAlive() with is_alive()
  19. * cmd_acc: use short_help for command description
  20. * cmd_acc: provide rate_group parameter for rates generate command
  21. * cmd_acc: explicit sql transaction begin for cdrs and rates generation
  22. * cmd_acc: set default value for table names cli parameters
  23. * cmd_db: proper user create for localhost for remote db
  24. * cmd_acc: proper name for rates generate function
  25. * cmd_acc: use connection to commit call of stored procedures
  26. * cmd_acc: explicit commit after store procedure call to go around implicit sqlachemy rollback
  27. * cmd_acc: fix use of % inside store procedure create statement
  28. * requirements/base: simplify sqlalchemy version condition
  29. * requirements: SQLAlchemy version has to be < 2.0.0
  30. * kamcli.ini: sample tcp socket for jsonrpc
  31. * iorpc: initial support for tcp transport
  32. * cmd_pipelimit: update help message for list command
  33. * cmd_pipelimit: proper help message for set pipe command
  34. * cmd_pipelimit: command to reset the pipe
  35. * cmd_apiban: log message with options to set the key
  36. * cmd_pstrap: option to print ps line for each pid
  37. * cmd_trap: option to print system ps for each pid from rpc ps result
  38. * cmd_trap: renaemd option --no-ps to --no-rpc-ps
  39. * cmd_trap: option to skip rpc command to get the list of processes
  40. * cmd_jsonrpc: use shorter alias command in help message
  41. * cmd_jsonrpc: cli option to set store path for rpc commands
  42. * iorpc: option to set store path for udp and fifo rpc commands
  43. * cmd_srv: reimplemented cmd runinfo to execute rpc core.runinfo
  44. * cmd_srv: renamed runinfo to rundetails
  45. * cmd_srv: added runinfo command
  46. * cmd_htable: added commands for rpc setxs and setxi
  47. * kamcli: aliased acl to command group
  48. * cmd_speedial: added cli options to set fname and lname
  49. * kamcli.ini: added mt command alias to mtree
  50. * cmd_db: format the code with black
  51. * cmd_acc: no limit condition for cdrs list
  52. * cmd_acc: list prints all acc records if --limit=0
  53. * cmd_acc: formatted code
  54. * cmd_acc: added rates-generate command
  55. * cmd_acc: added rates-proc-create command
  56. * cmd_acc: renamed rating-table-create to rates-table-create
  57. * cmd_acc: added rates-rm command
  58. * cmd_acc: added rates-add command
  59. * cmd_acc: added cdrs-list command
  60. * cmd_acc: added cdrs-generate command
  61. * cmd_db: added create-table-like command
  62. * cmd_db: updates to grant and revoke commands
  63. * cmd_shell: display sip server uptime on start
  64. * cmd_htable: added command to set expire
  65. * kamcli.ini: sample config and docs for shell options
  66. * cmd_shell: get nohistory and nosyntax also from config
  67. * kamcli.ini: renamed section to shell.cmdremap
  68. * cmd_shell: updates to get the entries for shell.cmdremap
  69. * kamcli.ini: config section for shell command
  70. * cmd_shell: check the options for no connect and no rpc autocomplete in config
  71. * cmd_shell: connect on starting to running kamailio and display its version
  72. * cmd_shell: auto-complete options for srv rpchelp
  73. * cmd_apiban: try also to get apiban.org key from env variable $APIBANKEY
  74. * cmd_shell: info message if it cannot fetch the list of rpc commands
  75. * cmd_apiban: added option to set expire for loaded item in htable
  76. * cmd_shell: check length of output fetching rpc commands
  77. * cmd_sell: set timeout for popen() operations to fetch rpc commands
  78. * cmd_shell: option to siable rpc command auto complete
  79. * cmd_shell: load the list of rpc commands at init for completion
  80. * cmd_jsonrpc: option for not printing log message
  81. * cmd_apiban: added check subcommand
  82. * kamcli.ini: section for apiban command
  83. * cmd_apiban: added command for apiban records management
  84. * tls: added subcommand to generate self signed certs using openssl
  85. * cmd_acc: added list command
  86. * cmd_acc: create cdr_id column for acc and cdrs tables
  87. * requirements: set requirement to Click~=7.0
  88. * ioutils: convert rows to dict for tabulate output of db result
  89. * cmd_subscriber: added cli parameter to specify database table name
  90. * cmd_subscriber: use string format to build sql queries
  91. * ioutils: add fallback options for getting config outformat and outstyle
  92. * cmd_db: list userblocklist module
  93. * dbutils: cope with sql files of renamed modules
  94. * cmd_srv: added debug subcommand
  95. * ioutils: read outstyle db config option
  96. * kamcli.ini: config option outstyle for db section
  97. * cmd_sipreq: skip adding Contact header if --curi=none
  98. * cmd_sipreq: added option to set additional headers
  99. * kamcli.ini: added outformat attribute to db section
  100. * ioutils: support yaml output for db results
  101. * cli: overwrite [jsonrpc/outformat] config value with -F parameter
  102. * cmd_sipreq: send SIP request via RPC command
  103. * cmd_ping: fix rpc command for nowait option
  104. * cmd_ping: --nowait cli option to skip waiting for sip response
  105. * cmd_ping: added option to set from uri
  106. * kamcli: added ping subcommand
  107. * cmd_htable: option to ask confirmation for remove commands
  108. * cmd_subscriber: ask confirmation when removing user
  109. * cmd_mtree: ask confirmation when removing prefix
  110. * cmd_pipelimit: ask confirmation when removing a pipe
  111. * cmd_pipelimit: added db-rm command
  112. * mtree: db-show with many prefixes
  113. * cmd_pipelimit: set type to int for limit argument in set pipe command
  114. * cmd_pipelimit: added db add and show commands
  115. * kamcli.ini: aliased pl to pipelimit
  116. * cmd_pipelimit: added commands for rpc stats and set pipe
  117. * cmd_pipelimit: added command for pipelimit management
  118. * cmd_db: fix invalid syntax error and some typos
  119. * cmd_db: get the scriptsdirectory cfg attribute if not provided as argument
  120. * cmd_db: use scripts directory name instead of sql directory
  121. * kamcli.ini: scriptsdirectory - new option to set path to db tables create scripts
  122. * cmd_db: use psql tool to create database
  123. * cmd_db: create subcommand for postgresql, additional options
  124. * cmd_db: option to create all tables without interactive confirmation
  125. * cmd_db: create functionality for sqlite
  126. * cmd_db: option to confirm dropping database
  127. * cmd_db: drop for sqlite
  128. * cmd_db: no-grant option for create command
  129. * cmd_db: postgres support for create-dbonly and drop
  130. * cmd_db: use rwurl for version subcommands
  131. * cmd_db: show create for postgres and sqlite
  132. * cmd_db: slite support for cli subcommands
  133. * kamcli.ini: added comments with sqlite options
  134. * cmd_db: remove use of CMD_BASE for mysql cli commands
  135. * cmd_db: postgresql support for clirun, clishow and clishowg
  136. * kamcli: restore default database type to mysql
  137. * cmd_db: connect subcommand for postgresql
  138. * cmd_db: move CMD_BASE per db dtriver handling
  139. * kamcli.ini: showing postgres settings
  140. * cmd_shell: create ~/.kamcli folder if not exists and history is enabled
  141. * cmd_shm: added subcommand for shm related rpc commands
  142. * cmd_pike: removed unused import
  143. * cmd_pkg: added subcommand for pkg related rpc commands
  144. * Fix small typo on cmd_srv.py comments
  145. * README.md: details about the order of how configuration files are loaded
  146. * cli: reorder loading paths for config files
  147. * cmd_shell: internal command ':c' to print command remapping associations
  148. * kamcli.ini: new section [cmd_shell.cmdremap]
  149. * cmd_shell: support for commands remapping
  150. * cmd_uacreg: added group short help
  151. * cmd_tcp: added group short help
  152. * cmd_ul: added group short help
  153. * cmd_config: print subcommand aliases as an ordered json document
  154. * cli: read config at startup and update command aliases
  155. * kamcli.ini: section for command aliases
  156. * cmd_subscriber: added group short help
  157. * cmd_shell: option -S to disable command line syntax highlighting
  158. * added pygments to requirements
  159. * cmd_shell: bash syntax highlighting for command line using pygments
  160. * cmd_shell: added auto suggest from history
  161. * cmd_speeddial: added group short help
  162. * cmd_shv: added group short help
  163. * added -h as option to print help message
  164. * cmd_db: added query subcommand
  165. * cmd_rtpengine: added group short help
  166. * cmd_avp: added db rm and show subcommands
  167. * cmd_avp: new command to mange avp records in usr preferences
  168. * cmd_trap: reorganize help messages
  169. * cmd_pstrap: reorganized help messages
  170. * cmd_pike: added group short help
  171. * cmd_mtree: added group short help
  172. * cmd_jsonrpc: small adjustment to the help text
  173. * cmd_htable: added group short help
  174. * cmd_group: added group short help
  175. * cmd_config: added group short help
  176. * cmd_alias: added group short help
  177. * cmd_address: added group short help
  178. * cmd_domain: added group short help
  179. * cmd_dlgs: added group short help
  180. * cmd_dialplan: added group short help
  181. * cmd_dialog: added group short help
  182. * cmd_dispatcher: added group short help
  183. * cmd_acc: added group short help
  184. * cmd_db: added group short help
  185. * cmd_shell: make the prompt bold style
  186. * cmd_shell: option to run without saving commands history
  187. * cmd_config: option to install config in user directory
  188. * added prompt-toolkit to setup requirements
  189. * cmd_shell: interactive shell subcommand
  190. * cmd_htable: option to set the type for value in db-add
  191. * iorpc: allow write to temporary response unixsocket file
  192. * cmd_mtree: renamed commands for db operations
  193. * cmd_htable: decode database table name value
  194. * cmd_htable: added db-show subcommand
  195. * cmd_htable: dbtname is now option
  196. * cmd_htable: added db-add and db-rm subcommands
  197. * iorpc: decode() on read from file
  198. * iorpc: encode() on fifo command string
  199. * cmd_pike: subcommand to manage the pike module
  200. * cmd_dlgs: added briefieng and getall subcommands
  201. * cmd_dlgs: update function name to match the command
  202. * cmd_dlgs: added dlgs subcommand
  203. * cmd_htable: added store subcommand
  204. * commands: added pstrap command
  205. * cmd_tap: decode() on rpc command response
  206. * cmd_trap: option to print more runtime details to output file
  207. * cmd_trap: use bytes decode() for string conversion
  208. * cmd_trap: convert json reponse to string for writing to file
  209. * cmd_trap: print output of core.psx in the trap file
  210. * cmd_trap: output file name computed in the main function
  211. * cmd_config: command to install config file to /etc/kamcli/kamcli.ini
  212. * cmd_htable: command to print htable stats
  213. * cmd_htable: command to list the hash tables
  214. * ioutils: handle context output format
  215. * kamcli: added output format (-F) generic cli option
  216. * cmd_htable: added reload subcommand
  217. * kamcli: aliased sht to htable command
  218. * kamcli: cli - look for kamcli.ini in current directory and ./kamcli/ subfolder
  219. * cmd_htable: command to remove an item from hash table
  220. * cmd_htable: added flush command to remove all the content from an hash table
  221. * cmd_htable: command to manage htable items
  222. * cmd_srv: subcommand to manage shared value variables - $shv(name)
  223. * cmd_address: fixed mode option name for list command
  224. * cmd_stats: option to fetch stats with numeric values
  225. * cmd_stats: replaced stats.get_statistics with stats.fetch
  226. * iorpc: decode response from the server
  227. * iorpc - encode string to be sent on inet sockets
  228. * cmd_db: fix version table management
  229. * cmd_db: added command to get version number for a table structure
  230. * cmd_db: added command to set version number for specific table
  231. * cmd_db: added command to revoke access to database
  232. * cmd_db: added database drop command
  233. * cmd_db: add users in create full database command
  234. * cmd_db: use short_help attribute when defining command
  235. * cmd_db: added command to create a specific extension group of tables
  236. * cmd_db: added commands to create specific group of database tables
  237. * cmd_db: added command to create users and grant privileges
  238. * kamcli.ini: added db accesshost option
  239. * cmd_db: added subcommand to create database only
  240. * cmd_db: added subcommand to create database structure
  241. * kamcli.ini: add db admin access attributes
  242. * cmd_acc: added command to create rating table
  243. * cmd_acc: use sql execute to create tables and procedures
  244. * cmd_acc: add subcommand to create cdrs stored procedure
  245. * cmd_acc: added subcommand to create the cdrs table
  246. * cmd_acc: separate commands to update acc or missed_calls tables structures
  247. * cmd_acc: command for accounting management
  248. * dbutils.py - added file to collect common functions for db operations
  249. * cmd_db: run pre-commit hooks for black formatting
  250. * cmd_db: added subcommand to update acc and missed calls table structure
  251. * cmd_trap: added the gdb trap command
  252. * added ctx function to print without new line
  253. * cmd_srv: subscommand to print rpc method help
  254. * cmd_uacreg: proper function name to match command scope
  255. * added srv shm subcommand
  256. * requirements strcuture update (#10)
  257. * iorpc: remove variables not used
  258. * ioutils: remove variable not used
  259. * cmd_db: add missing import
  260. * cmd_dialplan: fix dialplan_translate cmd
  261. * cmd_srv: match function names with commands
  262. * cmd_srv: subcommand to print pre-processor defines
  263. * cmd_dispatcher: aded subcommands for add/remove in memory records
  264. * cmd_dialog: added match subcommand
  265. * cmd_dialog: fix terminate function name
  266. * add kamgroup config to set group ownership of the file created at path
  267. Release: Kamcli v2.0.0 (Sep 30, 2019)
  268. New features:
  269. * support for Python 3.x
  270. * run sql statements from a file
  271. * print command aliases
  272. * cmd uacreg: management of uacreg records
  273. * cmd srv: server info
  274. * cmd rtpengine: management of rtpengine module
  275. * cmd tcp: management of tcp connections
  276. Release: Kamcli v1.1.0 (Oct 16, 2018)
  277. For more detailed list of changes, see the git log.