Apparently setting the trace flag is required before trace_dialog() contrary to
the docs. I've set that and am seeing packets egress (although I don't think
I'm seeing the full dialog trace. Only 3 packets on a call setup) It looks like
i'm not getting the replys. Do I need to arm trace_dialog() again in the
on_reply route? My understanding was that you only have to set it once.
Issue 2: SIP traffic goes across eth0, my public facing interface. I want the
siptrace module to shoot trace data out of eth1, my private interface. The
kernel has a static route that says to get to my duplicate_uri host, use eth1.
Which works at the kernel level. I can issue a ping to the duplicate_uri host
and I see requests going out the private and replys, etc.
However, when running tcpdump and placing a call via this opensips box, I see
that eth0 is the egress interface that is being used to try to reach the
duplicate_uri host. I've tried adding a separate listen statement for that
private interface, but that didn't do anything. I thought perhaps the
trace_local_ip parameter controlled, this but was informed by Liviu that this
was not the case. Any idea on how to solve this problem or the problem with
missing replys when using trace_dialog()?
Thanks in advance! (I'm on IRC if anyone has any more detailed questions...or
just ask here.)
On Wednesday, March 30, 2016 11:49 AM, Kneeoh <[email protected]> wrote:
Hi Liviu, I did confirm that trace_on was already set to 1. I did define the
trace flag as you suggested and tried it with both trace_dialog() and
sip_trace() but am still not seeing any packets egress from the source host to
the dest host. Here's what I have set up. I had to fill in a bogus DB (not
using it anyway) because it wouldn't let me start opensips if it wasn't
defined. My goal is to have this sip_trace node send captures to a sipcapture
(homer) node.
#### SIP Trace module
loadmodule "siptrace.so"
modparam("siptrace", "db_url", "mysql://user:passwd@host/dbname")
modparam("siptrace", "duplicate_uri", "sip:192.168.2.142:9060")
modparam("siptrace", "duplicate_with_hep", 1)
modparam("siptrace", "trace_to_database", 0)
modparam("siptrace", "trace_on", 1)
modparam("siptrace", "trace_flag", "TRACE_FLAG")
modparam("siptrace", "hep_version", 2)
INSIDE MAIN ROUTE BLOCK:
# create dialog with timeout and hide topology
if ( !create_dialog("B") ) {
xlog("L_INFO", "Unable to create dialog \n");
send_reply("500","Internal Server Error");
exit;
} else {
# We have a dialog, Lets hide the topology from where the call
originated
topology_hiding();
}
# Trace this dialog
setflag(TRACE_FLAG);
sip_trace();
#trace_dialog();
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users