Difference between revisions of "Kamailio kamctl"

From 탱이의 잡동사니
Jump to: navigation, search
(Created page with "== Overview == Kamailio's kamctl 내용 정리 category:telephony")
 
(Overview)
Line 2: Line 2:
 
Kamailio's kamctl 내용 정리
 
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 ====
 +
<pre>
 +
$ 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
 +
</pre>
 +
 +
=== ping ===
 +
Ping <uri> with SIP OPTIONS.
 +
<pre>
 +
ping <uri>
 +
</pre>
 +
 +
==== Example ====
 +
<pre>
 +
$ sudo kamctl ping sip:test@pchero21.com:5060
 +
401
 +
</pre>
 
[[category:telephony]]
 
[[category:telephony]]

Revision as of 10:10, 7 June 2019

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