hi,
i have kamailio with TLS i dont have homer and voipmonitor with TLS decryption doesnt work
how can i check final SIP INVITE (after all rewrites/modifications) before is send to the peer?
tried onsend_route { if ($rm == "INVITE") { xlog("L_INFO", "Final SIP Message before Sending: $mbu\n"); } }
but record-route/via are different than reality (checked with sngrep with TLS disabled)
kamailio log Record-Route: <sip:;r2=on;lr;ftag=b0d1d4ce-... Record-Route: <sip:10.10.10.10;r2=on;lr;ftag=b0d1d4.. Via: SIP/2.0/UDP 30.30.30.30:5080;TH=div;rport;branch=z9hG4bK
sngrep Record-Route: <sip:9.9.9.9;r2=on;lr;ftag=246bdf1c... Record-Route: <sip:9.9.9.9;line=sr-Jf7BrWSBdWSzrD Via: SIP/2.0/UDP 9.9.9.9;branch=z9hG4bKdb73.0735168f3e5f.... Via: SIP/2.0/UDP 9.9.9.9;branch=z9hG4bKsr-2y7Ud3XCMD4N6Vi8M-iCM-XGdWSBMDGzuhJZu-iGMh9ztEu7q.....
10.10.10.10 - private kamailio ip (fictional) 30.30.30.30 - ip of SIP PBX (caller) 9.9.9.9 - public kamailio ip
Marek
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