Kamailio 3.0 provides a command line interface: sercmd. Sercmd allows to connect to running instance of Kamailio, either on same or remote system.
If we like to use it, we have to first enable the ctl module in kamailio.cfg.
Module’s readme is available at: http://kamailio.org/docs/modules/3.0.x/modules/ctl.html
To use it just type
sercmd
To see the list of available options type
sercmd -h
Examples of usage at
http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=blob;f=utils/sercmd/EXAMPLES