[Kamailio-Users] new: interactive debugger for config

Daniel-Constantin Mierla miconda at gmail.com
Thu Feb 4 21:35:52 CET 2010


Hello,

the new debugger module can be used to do runtime debugging of SIP 
Router config file, in similar manner of gdb. The module is controlled 
via the RPC interface, therefore investigation can be done from a remote 
site. That makes it very handy to use with sercmd as well.

One features is to print a log message for each action executed in the 
config for a SIP message, showing the execution path. The option can be 
enabled/disabled per process.

The other one is step by step execution of config file. When a SIP 
message message comes it, SIP Router process will stop at first action 
and wait for commands, like: execute the action, evaluate a 
pseduo-variable, print to syslog a pseudo-variable, remove the 
breakpoints and continue execution without interruption, ... See the 
readme for more:
http://sip-router.org/docbook/sip-router/branch/master/modules/debugger/debugger.html 


It is still some stuff to complete, some known issues to remove, but the 
module is usable and may help some of you to troubleshoot migrations 
from older versions to 3.0 (use master branch until your config is 
updated and running fine, then use it with stable 3.0).

Hope is going to be useful and waiting for feedback to improve. Of 
course, contributions are most welcome!

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
eLearning class for Kamailio 3.0.0
Starting Feb 8, 2010
* http://www.asipto.com/





More information about the sr-users mailing list