Hello,
On 20/01/2017 23:27, Pranathi Venkatayogi wrote:
Hi,
What is the best way to get a complete dump of incoming/outgoing SIP messages of Kamailio server?
I encountered “SIPTrace” module, but it writes to database. Is there a way we can write to syslog instead?
for incoming: use xlog to print $mb inside request_route{} for SIP requests and inside reply_route{} for SIP responses.
for outgoing: use xlog to print $snd(buf) inside onsend_route{} -- you have to enable a parameter to catch the SIP responses:
https://www.kamailio.org/wiki/cookbooks/4.4.x/core#onsend_route_reply
Cheers, Daniel