[SR-Users] Best way to log incoming/outgoing sip messages?

Daniel-Constantin Mierla miconda at gmail.com
Mon Jan 23 10:09:30 CET 2017


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170123/da9814f6/attachment.html>


More information about the sr-users mailing list