# RPC Exports for core

## system.listMethods

Lists all RPC methods supported by the server.

Returns an array.

## system.methodSignature

Returns signature of given method.

## system.methodHelp

Print the help string for given method.

## core.prints

Returns the strings given as parameters.

Returns an array.

## core.printi

Returns the integers given as parameters.

Returns an array.

## core.echo

Returns back its parameters.

Returns an array.

## core.version

Returns the version string of the server.

## core.flags

Returns the compile flags.

## core.info

Verbose info, including version number, compile flags, compiler, repository hash a.s.o.

## core.uptime

Returns uptime of SIP server.

## core.ps

Returns the description of running processes.

Returns an array.

## core.psx

Returns the detailed description of running processes.

Returns an array.

## core.pwd

Returns the working directory of server.

Returns an array.

## core.arg

Returns the list of command line arguments used on startup.

Returns an array.

## core.kill

Sends the given signal to server.

## core.shmmem

Returns shared memory info. It has an optional parameter that specifies the measuring unit: b - bytes (default), k or kb, m or mb, g or gb. Note: when using something different from bytes, the value is truncated.

## core.tcp_info

Returns tcp related info.

## core.tcp_options

Returns active tcp options.

## core.tcp_list

Returns tcp connections details.

## core.udp4_raw_info

Returns udp4_raw related info.

## core.aliases_list

List local SIP server host aliases

## core.sockets_list

List local SIP server listen sockets

## dns.mem_info

dns cache memory info.

## dns.debug

dns debug info.

## dns.debug_all

complete dns debug dump

## dns.view

dns cache dump in a human-readable format

## dns.lookup

perform a dns lookup

## dns.delete_all

deletes all the non-permanent entries from the DNS cache

## dns.delete_all_force

deletes all the entries from the DNS cache including the permanent ones

## dns.add_a

adds an A record to the DNS cache

## dns.add_aaaa

adds an AAAA record to the DNS cache

## dns.add_srv

adds an SRV record to the DNS cache

## dns.delete_a

deletes an A record from the DNS cache

## dns.delete_aaaa

deletes an AAAA record from the DNS cache

## dns.delete_srv

deletes an SRV record from the DNS cache

## dns.delete_naptr

deletes a NAPTR record from the DNS cache

## dns.delete_cname

deletes a CNAME record from the DNS cache

## dns.delete_txt

deletes a TXT record from the DNS cache

## dns.delete_ebl

deletes an EBL record from the DNS cache

## dns.delete_ptr

deletes an PTR record from the DNS cache

## dst_blocklist.mem_info

dst blocklist memory usage info.

## dst_blocklist.debug

dst blocklist debug info.

## dst_blocklist.view

dst blocklist dump in human-readable format.

## dst_blocklist.delete_all

Deletes all the entries from the dst blocklist except the permanent ones.

## dst_blocklist.add

Adds a new entry to the dst blocklist.