This shows you the differences between two versions of the page.
— |
devel:how-to:source-tree-run [2012/10/16 10:31] (current) miconda created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== How to Run Kamailio from Source Tree Directory ====== | ||
+ | As a developer (and not only), it is convenient many times to do short testing sessions without the need to completely install Kamailio. | ||
+ | |||
+ | You can run it from the top directory where you keep Kamailio' | ||
+ | |||
+ | Compile as usual: | ||
+ | |||
+ | < | ||
+ | make FLAVOUR=kamailio cfg | ||
+ | make all | ||
+ | </ | ||
+ | |||
+ | Then set **mpath** in your configuration file to be: | ||
+ | |||
+ | <code c> | ||
+ | mpath=" | ||
+ | </ | ||
+ | |||
+ | And run Kamailio: | ||
+ | |||
+ | < | ||
+ | ./kamailio -f / | ||
+ | </ | ||
+ | |||
+ | Default configuration file has a define switch that allows to run from source tree directory, the command is: | ||
+ | |||
+ | < | ||
+ | ./kamailio -f etc/ | ||
+ | </ | ||
+ | |||
+ | If you want to run it in debugging mode (print logs to terminal and be verbose), you can use: | ||
+ | |||
+ | < | ||
+ | ./kamailio -f etc/ | ||
+ | </ |