Kamailio kamctl

From 탱이의 잡동사니
Revision as of 15:13, 4 July 2019 by Pchero (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

Kamailio's kamctl 내용 정리

Basic

kamctl is a shell script to control Kamailio SIP server It can be used to manage users, domains, aliases and other server options.

Daemon commands

start

Start kamailio.

restart

Restart Kamailio.

stop

Stop Kamailio.

online

Display online users.

monitor

Show server's internal status.

Example

$ sudo kamctl monitor

[cycle #: 1; if constant make sure server lives]
Server:: kamailio (4.4.7 (x86_64/linux))
Build:: mi_core.c compiled on 12:17:57 Mar 22 2018 with gcc 4.9.2
Flags:: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
GIT:: 35d8ab
Now:: Fri Jun  7 10:05:39 2019
Up since:: Fri Apr 12 12:54:12 2019
Up time:: 4828287 [sec]

Transaction Statistics:
tmx:UAS_transactions = 61
tmx:UAC_transactions = 0
tmx:inuse_transactions = 0

Stateless Server Statistics:
sl:sent_replies = 7574
sl:sent_err_replies = 0
sl:received_ACKs = 423

UsrLoc Stats:
usrloc:registered_users = 0

ping

Ping <uri> with SIP OPTIONS.

ping <uri>

Example

$ sudo kamctl ping sip:test@pchero21.com:5060
401

Access control list (acl) management commands

acl show

Show user memebership.

acl show [<username>]

See also