First, you have to load the ctl module in your config, see module's readme:
http://kamailio.org/docs/modules/3.0.x/modules/ctl.html
If you use default configuration in the ctl module and sercmd, with kamailio on the same system, then just launch sercmd.
Among features:
- command history
- connection or single command mode
- tab completion
- double tab to list available options
- execute all MI commands from Kamailio core and modules (module mi_rpc must be loaded)
- execute RPC commands (core, tm and other modules)
- over one hundred commands available from core and modules
- change config variables during runtime (module cfg_rpc must be loaded)
- option to format the output
- connection to Kamailio via udp, tcp or unix sockets
- help message for each command
Screenshots:
- show available commands
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiw_r1Efk7To7OTDoNpoLtF1clOfYsZi7QpXSb245TGIj6Y0MoQdyYs8VOpUt15a2RUQ6uXMy7ERc2Yw_Yhxjw-x1nuYHLXyufdacNJRp0Nwn1wG43n-bnXi7J2j2MquJvtM584RHnMpXME/s320/Screen+shot+2009-12-20+at+9.31.27+PM.png)
- list registered phones via MI
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCRRUTdwU45kB5EwQafI6XwbnwoMpB9ZUHEgajTCRA-6rLD9RulfvgF6r7kVuKOjUJEiKFdTdzMfMBqlajAm7k__QyYOYw2LA5u8BxY4kYox7SuUincNZRG2-mRyfFPn0SdRNMq7A10O8r/s320/Screen+shot+2009-12-20+at+9.33.36+PM.png)
- list TCP options via RPC
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhULikJtocuIUTNC1HnofUZHzGl_2fpukZXdI6lOhHTHwPa46zI7JFon5D2CGIqePbLMKvfEq4_UuvXHK8nmheC842WbaTKreRtN-2NHGjnWZwKzKG6ZezJ81gRc2xyAEpSc9mXDWZ2cImS/s320/Screen+shot+2009-12-20+at+9.36.00+PM.png)
Next post to be about asynchronous tcp.
No comments:
Post a Comment