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
--
Daniel-Constantin Mierla
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) -
www.asipto.com
Kamailio World Conference - May 8-10, 2017 -
www.kamailioworld.com